Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

gui
Class CClientArea

   in GUIbase.h
   in GUIbase.cpp

class CClientArea

Client Area is a rectangle relative to a parent rectangle You can input the whole value of the Client Area by string. Like used in the GUI.


Field Summary
 CRect percent
          
 CRect pixel
          Percent modifiers
 
Constructor Summary
CClientArea( const CStr& Value )
          Pixel modifiers
CClientArea()
          
 
Method Summary
 CRect GetClientArea( const CRect& parent ) const
          Get client area rectangle when the parent is given
 bool SetClientArea( const CStr& Value )
          The ClientArea can be set from a string looking like: "0 0 100% 100%" "50%-10 50%-10 50%+10 50%+10" i.
 

Field Detail

percent

public CRect percent;

pixel

public CRect pixel;
Percent modifiers


Constructor Detail

CClientArea

public CClientArea( const CStr& Value );
Pixel modifiers

CClientArea

public CClientArea();


Method Detail

GetClientArea

public CRect GetClientArea( const CRect& parent ) const;
Get client area rectangle when the parent is given

SetClientArea

public bool SetClientArea( const CStr& Value );
The ClientArea can be set from a string looking like: "0 0 100% 100%" "50%-10 50%-10 50%+10 50%+10" i.e. First percent modifier, then + or - and the pixel modifier. Although you can use just the percent or the pixel modifier. Notice though that the percent modifier must always be the first when both modifiers are inputted.
Returns:
true if success, false if failure. If false then the client area will be unchanged.

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD