Project Alice
Loading...
Searching...
No Matches
ui::element_data Struct Reference

#include <gui_graphics.hpp>

Collaboration diagram for ui::element_data:

Classes

union  internal_data
 

Public Member Functions

 element_data ()
 
element_type get_element_type () const
 
rotation get_rotation () const
 
orientation get_orientation () const
 
bool is_top_level () const
 

Public Attributes

xy_pair position
 
xy_pair size
 
dcon::text_key name
 
union ui::element_data::internal_data data
 
uint8_t flags = 0
 
uint8_t ex_flags = 0
 
uint8_t padding [2] = { 0, 0 }
 

Static Public Attributes

static constexpr uint8_t type_mask = 0x07
 
static constexpr uint8_t rotation_mask = (0x03 << rotation_bit_offset)
 
static constexpr uint8_t orientation_mask = (0x07 << orientation_bit_offset)
 
static constexpr uint8_t ex_is_top_level = 0x01
 

Detailed Description

Definition at line 275 of file gui_graphics.hpp.

Constructor & Destructor Documentation

◆ element_data()

ui::element_data::element_data ( )
inline

Definition at line 308 of file gui_graphics.hpp.

Member Function Documentation

◆ get_element_type()

element_type ui::element_data::get_element_type ( ) const
inline

Definition at line 312 of file gui_graphics.hpp.

Here is the caller graph for this function:

◆ get_orientation()

orientation ui::element_data::get_orientation ( ) const
inline

Definition at line 318 of file gui_graphics.hpp.

Here is the caller graph for this function:

◆ get_rotation()

rotation ui::element_data::get_rotation ( ) const
inline

Definition at line 315 of file gui_graphics.hpp.

Here is the caller graph for this function:

◆ is_top_level()

bool ui::element_data::is_top_level ( ) const
inline

Definition at line 321 of file gui_graphics.hpp.

Member Data Documentation

◆ data

union ui::element_data::internal_data ui::element_data::data

◆ ex_flags

uint8_t ui::element_data::ex_flags = 0

Definition at line 305 of file gui_graphics.hpp.

◆ ex_is_top_level

constexpr uint8_t ui::element_data::ex_is_top_level = 0x01
staticconstexpr

Definition at line 280 of file gui_graphics.hpp.

◆ flags

uint8_t ui::element_data::flags = 0

Definition at line 304 of file gui_graphics.hpp.

◆ name

dcon::text_key ui::element_data::name

Definition at line 284 of file gui_graphics.hpp.

◆ orientation_mask

constexpr uint8_t ui::element_data::orientation_mask = (0x07 << orientation_bit_offset)
staticconstexpr

Definition at line 278 of file gui_graphics.hpp.

◆ padding

uint8_t ui::element_data::padding[2] = { 0, 0 }

Definition at line 306 of file gui_graphics.hpp.

◆ position

xy_pair ui::element_data::position

Definition at line 282 of file gui_graphics.hpp.

◆ rotation_mask

constexpr uint8_t ui::element_data::rotation_mask = (0x03 << rotation_bit_offset)
staticconstexpr

Definition at line 277 of file gui_graphics.hpp.

◆ size

xy_pair ui::element_data::size

Definition at line 283 of file gui_graphics.hpp.

◆ type_mask

constexpr uint8_t ui::element_data::type_mask = 0x07
staticconstexpr

Definition at line 276 of file gui_graphics.hpp.


The documentation for this struct was generated from the following file: