![]() |
Iridescence 1.00
Embedded Graphic Framework
|
DsAlignment is a class representing both horizontal and vertical alignment type. More...
#include <ds_types.h>
Public Types | |
enum | Alignment : uint8_t { NONE = 0 , TOP = 1 , LEFT = 1 , BOTTOM = 2 , RIGHT = 2 , CENTER = 3 } |
Alignment is an enumeration of all alignment types. | |
Public Member Functions | |
DsAlignment () | |
Creates a DsAlignment object specifying no orientation. | |
DsAlignment (Alignment horizontal, Alignment vertical) | |
Creates a DsAlignment object using the specified horizontal / vertical orientation. The "fit" flag is set to false. | |
DsAlignment (Alignment horizontal, Alignment vertical, bool fit_in_parent) | |
Creates a DsAlignment object using the specified horizontal / vertical orientation. | |
DsAlignment & | fit (void) |
Sets the "fit" flag. | |
bool | isLeft (void) const |
Is the horizontal alignment left? | |
bool | isCenterH (void) const |
Is the horizontal alignment center? | |
bool | isRight (void) const |
Is the horizontal alignment right? | |
bool | isTop (void) const |
Is the vertical alignment top? | |
bool | isCenterV (void) const |
Is the vertical alignment center? | |
bool | isBottom (void) const |
Is the vertical alignment bottom? | |
bool | fitInParent (void) const |
Will fit in parent? | |
DsAlignment is a class representing both horizontal and vertical alignment type.
The class also contains the "fit" flag. This is used in some cases to specify that a view will be expanded to fit its parent.
Creates a DsAlignment object using the specified horizontal / vertical orientation. The "fit" flag is set to false.
horizontal | Horizontal alignment |
vertical | Vertical alignment |
Creates a DsAlignment object using the specified horizontal / vertical orientation.
horizontal | Horizontal alignment |
vertical | Vertical alignment |
fit_in_parent | The "fit" flag value |
|
inline |
Sets the "fit" flag.
|
inline |
Will fit in parent?
|
inline |
Is the vertical alignment bottom?
|
inline |
Is the horizontal alignment center?
|
inline |
Is the vertical alignment center?
|
inline |
Is the horizontal alignment left?
|
inline |
Is the horizontal alignment right?
|
inline |
Is the vertical alignment top?