TMargins8 Class Reference
Detailed Description
A set of margins stored as 8 bit integer values which can represent either pixels or twips between -128 and +127.
Member Attribute Documentation
iBottom
Bottom margin in twips or pixels.
iLeft
Left margin in twips or pixels.
iRight
Right margin in twips or pixels.
iTop
Top margin in twips or pixels.
Constructor & Destructor Documentation
TMargins8 ( )
The constructor initialises all four margins to zero.
TMargins8 ( TInt8, TInt8, TInt8, TInt8 )
Constructor setting the left, top, right, and bottom margins.
Parameter | Description | aLeft | Left margin (between -128 and +127) |
aTop | Top margin (between -128 and +127) |
aRight | Right margin (between -128 and +127) |
aBottom | Bottom margin (between -128 and +127) |
Member Function Documentation
InnerRect ( const TRect & )
IMPORT_C TRect | InnerRect | ( | const TRect & | aOuterRect | ) | const |
Calculates and returns an inner rectangle by applying the margins to the specified outer rectangle.
Parameter | Description | aOuterRect | The coordinates of the outer rectangle from which the inner rectangle is calculated. |
Returns: Inner rectangle.
OuterRect ( const TRect & )
IMPORT_C TRect | OuterRect | ( | const TRect & | aInnerRect | ) | const |
Calculates and returns an outer rectangle by applying the margins to the specified inner rectangle.
Parameter | Description | aInnerRect | The coordinates of the inner rectangle from which the outer rectangle is calculated. |
Returns: Outer rectangle.
SetAllValuesTo ( TInt )
IMPORT_C void | SetAllValuesTo | ( | TInt | aCommonValue | ) | |
Sets all four margins to a common value (between -128 and +127).
Parameter | Description | aCommonValue | The new value for all margins. |
SizeDelta ( )
IMPORT_C TSize | SizeDelta | ( | ) | const |
Calculates and returns the difference in size between the outer and inner rectangles.
Returns: Size difference between outer and inner rectangles.