Margin of widget's in point.
More...
#include <UILayoutParameter.h>
|
| Margin () |
| Default constructor.
|
|
| Margin (float l, float t, float r, float b) |
| Construct a Margin instance with left, top, right and bottom margins.
|
|
| Margin (const Margin &other) |
| Copy constructor.
|
|
Margin & | operator= (const Margin &other) |
| Copy assignment operator.
|
|
void | setMargin (float l, float t, float r, float b) |
| Change margin with left, top, right and bottom margin.
|
|
bool | equals (const Margin &target) const |
| Test equality of two margins.
|
|
|
float | left |
| Left margin.
|
|
float | top |
| Top margin.
|
|
float | right |
| Right margin.
|
|
float | bottom |
| Bottom margin.
|
|
|
static const Margin | ZERO |
| A margin constant with all margins equal zero.
|
|
Margin of widget's in point.
Margin value should be positive. @lua NA
◆ Margin()
Margin |
( |
float | l, |
|
|
float | t, |
|
|
float | r, |
|
|
float | b ) |
Construct a Margin instance with left, top, right and bottom margins.
- Parameters
-
l | Left margin in float. |
t | Top margin in float. |
r | Right margin in float. |
b | Bottom margin in float. |
◆ setMargin()
void setMargin |
( |
float | l, |
|
|
float | t, |
|
|
float | r, |
|
|
float | b ) |
Change margin with left, top, right and bottom margin.
- Parameters
-
l | Left margin in float. |
t | Top margin in float. |
r | Right margin in float. |
b | Bottom margin in float. |
◆ equals()
bool equals |
( |
const Margin & | target | ) |
const |
Test equality of two margins.
- Parameters
-
- Returns
- True if two margins are equal, false otherwise.
The documentation for this class was generated from the following file: