SO3Engine
|
#include <Position.h>
Public Member Functions | |
Position () | |
Position (const RelativePosition &relPosition, short offsetLeft=0, short offsetTop=0) | |
Position (short absoluteLeft, short absoluteTop) | |
Public Attributes | ||
bool | usingRelative | |
union { | ||
struct { | ||
RelativePosition position | ||
short x | ||
short y | ||
} rel | ||
struct { | ||
short left | ||
short top | ||
} abs | ||
} | data | |
Used by HikariManager::createFlashOverlay to define the position of the overlay.
Definition at line 50 of file Position.h.
Position::Position | ( | ) |
Creates a default Position object (absolute, top-left corner).
Definition at line 26 of file Position.cpp.
Position::Position | ( | const RelativePosition & | relPosition, |
short | offsetLeft = 0 , |
||
short | offsetTop = 0 |
||
) |
Creates a relatively-positioned Position object.
relPosition | The position of the Object in relation to the Viewport |
offsetLeft | How many pixels from the left to offset the Object from the relative position. |
offsetTop | How many pixels from the top to offset the Object from the relative position. |
Definition at line 33 of file Position.cpp.
Position::Position | ( | short | absoluteLeft, |
short | absoluteTop | ||
) |
Creates an absolutely-positioned Position object.
absoluteLeft | The number of pixels from the left of the Render Window. |
absoluteTop | The number of pixels from the top of the Render Window. |
Definition at line 41 of file Position.cpp.
struct { ... } Hikari::Position::abs |
union { ... } Hikari::Position::data |
short Hikari::Position::left |
Definition at line 55 of file Position.h.
RelativePosition Hikari::Position::position |
Definition at line 54 of file Position.h.
struct { ... } Hikari::Position::rel |
short Hikari::Position::top |
Definition at line 55 of file Position.h.
bool Hikari::Position::usingRelative |
Definition at line 52 of file Position.h.
short Hikari::Position::x |
Definition at line 54 of file Position.h.
short Hikari::Position::y |
Definition at line 54 of file Position.h.