Location:
gulalign.h
Link against: egul.lib
TGulAlignment
Supported from 6.0
Provides a convenient way to describe horizontal and vertical layouts of rectangular objects and to enquire how they occupy an area given their alignment.
Defined in TGulAlignment
:
HAlignment()
, InnerRect()
, InnerTopLeft()
, SetHAlignment()
, SetVAlignment()
, TGulAlignment()
, TGulAlignmentValue()
, TextAlign()
, VAlignment()
TGulAlignment(TGulAlignmentValue aValue);
Constructor initialising the object with an alignment value.
|
operator TGulAlignmentValue() const;
Gets the object's alignment value
(TGulAlignmentValue
).
TGulVAlignment VAlignment() const;
Gets the vertical alignment.
|
TGulHAlignment HAlignment() const;
Gets the horizontal alignment.
|
CGraphicsContext::TTextAlign TextAlign() const;
Gets the horizontal text alignment.
|
void SetVAlignment(TGulVAlignment aVAlign);
Sets the vertical alignment.
|
void SetHAlignment(TGulHAlignment aHAlign);
Sets the horizontal alignment.
|
TPoint InnerTopLeft(const TRect& aOuter,const TSize& aInnerSize) const;
Gets the co-ordinates of the top left corner of an object of
size aInnerSize
, which is placed in the area of the rectangle
aOuter
according to the current alignment.
|
|
TRect InnerRect(const TRect& aOuter,const TSize& aInnerSize) const;
Gets the rectangle occupied by an object of size
aInnerSize
, which is placed in the area of the rectangle
aOuter
according to the current alignment.
|
|