ROOT logo
ROOT » GUI » GUI » TGPosition

class TGPosition


TGDimension, TGPosition, TGLongPosition, TGInsets and TGRectangle

Several small geometry classes that implement dimensions
(width and height), positions (x and y), insets and rectangles.
They are trivial and their members are public.


Function Members (Methods)

public:
TGPosition()
TGPosition(const TGPosition& p)
TGPosition(Int_t xc, Int_t yc)
virtual~TGPosition()
static TClass*Class()
virtual TClass*IsA() const
TGPositionoperator+(const TGPosition& b) const
TGPositionoperator-(const TGPosition& b) const
TGPosition&operator=(const TGPosition&)
Bool_toperator==(const TGPosition& b) const
virtual voidShowMembers(TMemberInspector& insp)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

public:
Int_tfXx position
Int_tfYy position

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Bool_t operator==(const TGPosition& b) const
{ return ((fWidth == b.fWidth) && (fHeight == b.fHeight)); }
TGDimension operator-(const TGPosition& b) const
{ return TGDimension(fWidth - b.fWidth, fHeight - b.fHeight); }
TGDimension operator+(const TGPosition& b) const
{ return TGDimension(fWidth + b.fWidth, fHeight + b.fHeight); }
TGPosition()
{ }
TGPosition(Int_t xc, Int_t yc)
{ }
TGPosition(const TGPosition& p)
{ }
virtual ~TGPosition()
{ }