ROOT logo
ROOT » GUI » GUI » TGDimension

class TGDimension


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:
TGDimension()
TGDimension(const TGDimension& d)
TGDimension(UInt_t width, UInt_t height)
virtual~TGDimension()
static TClass*Class()
virtual TClass*IsA() const
TGDimensionoperator+(const TGDimension& b) const
TGDimensionoperator-(const TGDimension& b) const
TGDimension&operator=(const TGDimension&)
Bool_toperator==(const TGDimension& b) const
virtual voidShowMembers(TMemberInspector& insp)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

public:
UInt_tfHeightheight
UInt_tfWidthwidth

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGDimension()
{ }
TGDimension(UInt_t width, UInt_t height)
{ }
TGDimension(const TGDimension& d)
{ }
virtual ~TGDimension()
{ }
Bool_t operator==(const TGDimension& b) const
{ return ((fWidth == b.fWidth) && (fHeight == b.fHeight)); }
TGDimension operator-(const TGDimension& b) const
{ return TGDimension(fWidth - b.fWidth, fHeight - b.fHeight); }
TGDimension operator+(const TGDimension& b) const
{ return TGDimension(fWidth + b.fWidth, fHeight + b.fHeight); }