ROOT logo
ROOT » GUI » GUI » TGLongPosition

class TGLongPosition


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:
TGLongPosition()
TGLongPosition(const TGLongPosition& p)
TGLongPosition(Long_t xc, Long_t yc)
virtual~TGLongPosition()
static TClass*Class()
virtual TClass*IsA() const
TGLongPositionoperator+(const TGLongPosition& b) const
TGLongPositionoperator-(const TGLongPosition& b) const
TGLongPosition&operator=(const TGLongPosition&)
Bool_toperator==(const TGLongPosition& b) const
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)

Data Members

public:
Long_tfXx position
Long_tfYy position

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

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