Location:
gulutil.h
Link against: egul.lib
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()
, OuterRect()
, SetAllValuesTo()
, SizeDelta()
, TMargins8()
, TMargins8()
, iBottom
, iLeft
, iRight
, iTop
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.