library: libGui
#include "TGDimension.h"

TGDimension


class description - header file - source file
viewCVS header - viewCVS source

class TGDimension

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
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, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

public:
UInt_tfWidthwidth
UInt_tfHeightheight

Class Description

                                                                      
 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.                       
                                                                      

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

Author: Fons Rademakers 02/01/98
Last update: root/gui:$Name: $:$Id: TGDimension.cxx,v 1.3 2004/09/01 14:34:58 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.