![]() |
CRM64Pro GDK v0.19.0
A free cross-platform game development kit built on top of SDL 3.0
|
Absolute coordinate or helper-relative position used by layout APIs. More...
Absolute coordinate or helper-relative position used by layout APIs.
Public Member Functions | |
| Position (float f=0.0f) | |
| Construct an absolute position. | |
| Position (ePositionHelper ph, float offset=0.0f) | |
| Construct a helper-relative position. | |
| Position (ePositionHelper ph, Sint32 offset) | |
| Construct a helper-relative position with an integer offset. | |
| bool | isAbsolute () const |
| Check whether this is an absolute position. | |
| bool | isRelative () const |
| Check whether this position uses a layout helper. | |
Public Attributes | |
| float | fValue = 0.0f |
| Absolute coordinate or offset applied to the selected helper. | |
| ePositionHelper | eHelper = PH_NONE |
| Position helper, or ::PH_NONE for absolute positioning. | |
|
inline |
Construct an absolute position.
| f | Absolute coordinate value. |
|
inline |
Construct a helper-relative position.
| ph | Layout helper used to resolve the position. |
| offset | Offset applied to the resolved helper position. |
|
inline |
Construct a helper-relative position with an integer offset.
| ph | Layout helper used to resolve the position. |
| offset | Integer offset converted to a floating-point value. |
|
inline |
Check whether this is an absolute position.
|
inline |
Check whether this position uses a layout helper.