Stores a position for a UI region.
More...
#include <gui_anchor.hpp>
Stores a position for a UI region.
Definition at line 97 of file gui_anchor.hpp.
◆ anchor() [1/3]
Constructor.
- Parameters
-
object | The object to which this anchor belongs |
data | The data about the anchor |
Definition at line 15 of file gui_anchor.cpp.
◆ anchor() [2/3]
lxgui::gui::anchor::anchor |
( |
const anchor & |
| ) |
|
|
delete |
◆ anchor() [3/3]
lxgui::gui::anchor::anchor |
( |
anchor && |
| ) |
|
|
delete |
◆ get_data()
const anchor_data & lxgui::gui::anchor::get_data |
( |
| ) |
const |
|
inline |
Returns the raw data used for this anchor.
- Returns
- The raw data used for this anchor
Definition at line 151 of file gui_anchor.hpp.
◆ get_parent() [1/2]
const utils::observer_ptr< region > & lxgui::gui::anchor::get_parent |
( |
| ) |
|
|
inline |
Returns this anchor's parent region.
- Returns
- This anchor's parent region
Definition at line 128 of file gui_anchor.hpp.
◆ get_parent() [2/2]
utils::observer_ptr< const region > lxgui::gui::anchor::get_parent |
( |
| ) |
const |
|
inline |
Returns this anchor's parent region.
- Returns
- This anchor's parent region
Definition at line 136 of file gui_anchor.hpp.
◆ get_point()
Returns this anchor's absolute coordinates (in pixels).
- Parameters
-
object | The object owning this anchor |
- Returns
- The absolute coordinates of this anchor.
Definition at line 55 of file gui_anchor.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ serialize()
std::string lxgui::gui::anchor::serialize |
( |
const std::string & |
tab | ) |
const |
Prints all relevant information about this anchor in a string.
- Parameters
-
tab | The offset to give to all lines |
- Returns
- All relevant information about this anchor
Definition at line 113 of file gui_anchor.cpp.
◆ object_point
point lxgui::gui::anchor_data::object_point |
◆ offset
vector2f lxgui::gui::anchor_data::offset |
◆ parent_point
point lxgui::gui::anchor_data::parent_point |
◆ type
The documentation for this class was generated from the following files: