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

#include <gui_graphics.hpp>

Collaboration diagram for ui::gfx_object:

Public Member Functions

object_type get_object_type () const
 
bool is_always_transparent () const
 
bool is_vertically_flipped () const
 
bool is_clicky () const
 
bool is_partially_transparent () const
 

Public Attributes

xy_pair size
 
dcon::texture_id primary_texture_handle
 
uint16_t type_dependent = 0
 
uint8_t flags = 0
 
uint8_t number_of_frames = 1
 

Static Public Attributes

static constexpr uint8_t always_transparent = 0x10
 
static constexpr uint8_t flip_v = 0x20
 
static constexpr uint8_t has_click_sound = 0x40
 
static constexpr uint8_t do_transparency_check = 0x80
 
static constexpr uint8_t type_mask = 0x0F
 

Detailed Description

Definition at line 37 of file gui_graphics.hpp.

Member Function Documentation

◆ get_object_type()

object_type ui::gfx_object::get_object_type ( ) const
inline

Definition at line 51 of file gui_graphics.hpp.

◆ is_always_transparent()

bool ui::gfx_object::is_always_transparent ( ) const
inline

Definition at line 54 of file gui_graphics.hpp.

◆ is_clicky()

bool ui::gfx_object::is_clicky ( ) const
inline

Definition at line 60 of file gui_graphics.hpp.

◆ is_partially_transparent()

bool ui::gfx_object::is_partially_transparent ( ) const
inline

Definition at line 63 of file gui_graphics.hpp.

◆ is_vertically_flipped()

bool ui::gfx_object::is_vertically_flipped ( ) const
inline

Definition at line 57 of file gui_graphics.hpp.

Member Data Documentation

◆ always_transparent

constexpr uint8_t ui::gfx_object::always_transparent = 0x10
staticconstexpr

Definition at line 38 of file gui_graphics.hpp.

◆ do_transparency_check

constexpr uint8_t ui::gfx_object::do_transparency_check = 0x80
staticconstexpr

Definition at line 41 of file gui_graphics.hpp.

◆ flags

uint8_t ui::gfx_object::flags = 0

Definition at line 48 of file gui_graphics.hpp.

◆ flip_v

constexpr uint8_t ui::gfx_object::flip_v = 0x20
staticconstexpr

Definition at line 39 of file gui_graphics.hpp.

◆ has_click_sound

constexpr uint8_t ui::gfx_object::has_click_sound = 0x40
staticconstexpr

Definition at line 40 of file gui_graphics.hpp.

◆ number_of_frames

uint8_t ui::gfx_object::number_of_frames = 1

Definition at line 49 of file gui_graphics.hpp.

◆ primary_texture_handle

dcon::texture_id ui::gfx_object::primary_texture_handle

Definition at line 46 of file gui_graphics.hpp.

◆ size

xy_pair ui::gfx_object::size

Definition at line 45 of file gui_graphics.hpp.

◆ type_dependent

uint16_t ui::gfx_object::type_dependent = 0

Definition at line 47 of file gui_graphics.hpp.

◆ type_mask

constexpr uint8_t ui::gfx_object::type_mask = 0x0F
staticconstexpr

Definition at line 43 of file gui_graphics.hpp.


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