| class TMargins8 |
A set of margins stored as 8 bit integer values which can represent either pixels or twips between -128 and +127.
| Public Member Functions | |
|---|---|
| TMargins8 () | |
| TMargins8 ( TInt8 , TInt8 , TInt8 , TInt8 ) | |
| IMPORT_C TRect | InnerRect (const TRect &) |
| IMPORT_C TRect | OuterRect (const TRect &) |
| IMPORT_C void | SetAllValuesTo ( TInt ) |
| IMPORT_C TSize | SizeDelta () |
| Public Attributes | |
|---|---|
| TInt8 | iBottom |
| TInt8 | iLeft |
| TInt8 | iRight |
| TInt8 | iTop |
| IMPORT_C | TMargins8 | ( | TInt8 | aLeft, |
| TInt8 | aTop, | |||
| TInt8 | aRight, | |||
| TInt8 | aBottom | |||
| ) | ||||
Constructor setting the left, top, right, and bottom margins.
| IMPORT_C TRect | InnerRect | ( | const TRect & | aOuterRect | ) | const |
Calculates and returns an inner rectangle by applying the margins to the specified outer rectangle.
| const TRect & aOuterRect | The coordinates of the outer rectangle from which the inner rectangle is calculated. |
| IMPORT_C TRect | OuterRect | ( | const TRect & | aInnerRect | ) | const |
Calculates and returns an outer rectangle by applying the margins to the specified inner rectangle.
| const TRect & aInnerRect | The coordinates of the inner rectangle from which the outer rectangle is calculated. |
| IMPORT_C void | SetAllValuesTo | ( | TInt | aCommonValue | ) |
Sets all four margins to a common value (between -128 and +127).
| TInt aCommonValue | The new value for all margins. |
| IMPORT_C TSize | SizeDelta | ( | ) | const |
Calculates and returns the difference in size between the outer and inner rectangles.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.