|
||
class TMargins8;
A set of margins stored as 8 bit integer values which can represent either pixels or twips between -128 and +127.
Defined in TMargins8
:
InnerRect(const TRect &)const
Calculates and returns an inner rectangle by applying the margins to the specifi...OuterRect(const TRect &)const
Calculates and returns an outer rectangle by applying the margins to the specifi...SetAllValuesTo(TInt)
Sets all four margins to a common value (between -128 and +127).SizeDelta()const
Calculates and returns the difference in size between the outer and inner rectan...TMargins8()
The constructor initialises all four margins to zero. TMargins8(TInt8,TInt8,TInt8,TInt8)
Constructor setting the left, top, right, and bottom margins.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. IMPORT_C TMargins8(TInt8 aLeft, TInt8 aTop, TInt8 aRight, TInt8 aBottom);
Constructor setting the left, top, right, and bottom margins.
|
IMPORT_C void SetAllValuesTo(TInt aCommonValue);
Sets all four margins to a common value (between -128 and +127).
|
IMPORT_C TRect InnerRect(const TRect &aOuterRect) const;
Calculates and returns an inner rectangle by applying the margins to the specified outer rectangle.
|
|
IMPORT_C TRect OuterRect(const TRect &aInnerRect) const;
Calculates and returns an outer rectangle by applying the margins to the specified inner rectangle.
|
|
IMPORT_C TSize SizeDelta() const;
Calculates and returns the difference in size between the outer and inner rectangles.
|
TInt8 iBottom;
Bottom margin in twips or pixels.