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