#include <mw/gulutil.h>
Link against: egul.lib
| class TMargins8 |
| Public Attributes | |
|---|---|
| TInt8 | iBottom |
| TInt8 | iLeft |
| TInt8 | iRight |
| TInt8 | iTop |
| 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() |
A set of margins stored as 8 bit integer values which can represent either pixels or twips between -128 and +127.
Constructor setting the left, top, right, and bottom margins.
| Parameters | |
|---|---|
| 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) |
| IMPORT_C void | SetAllValuesTo | ( | TInt | aCommonValue | ) |
Sets all four margins to a common value (between -128 and +127).
| Parameters | |
|---|---|
| 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.