SDOM - Simple SDL Document Object Model
A lightweight, extensible Document Object Model for SDL-based applications.
Loading...
Searching...
No Matches
SDOM::TriStateCheckbox Class Reference

#include <SDOM_TriStateCheckbox.hpp>

Inheritance diagram for SDOM::TriStateCheckbox:
SDOM::IPanelObject SDOM::IDisplayObject SDOM::IDataObject SDOM::IUnitTest

Classes

struct  InitStruct
 

Public Types

enum class  OrphanRetentionPolicy : int { RetainUntilManual , AutoDestroy , GracePeriod }
 

Public Member Functions

 TriStateCheckbox ()=default
 
virtual ~TriStateCheckbox ()=default
 
virtual bool onInit () override
 
virtual void onRender () override
 
virtual void onQuit () override
 
virtual void onUpdate (float fElapsedTime) override
 
virtual void onEvent (const Event &event) override
 
DisplayHandle getLabelObject () const
 
std::string getText () const
 
void setText (const std::string &newText)
 
DisplayHandle getIconButtonObject () const
 
TriState getState () const
 
void setState (TriState state)
 
void renderPanel ()
 
AssetHandle getSpriteSheet () const
 
AssetHandle getFontAsset () const
 
std::string getIconResourceName () const
 
std::string getFontResourceName () const
 
int getIconWidth () const
 
int getIconHeight () const
 
int getFontWidth () const
 
int getFontHeight () const
 
PanelBaseIndex getBaseIndex () const
 
OrphanRetentionPolicy getOrphanRetentionPolicy () const
 
IDisplayObjectsetOrphanRetentionPolicy (OrphanRetentionPolicy policy)
 
std::chrono::milliseconds getOrphanGrace () const
 
IDisplayObjectsetOrphanGrace (std::chrono::milliseconds grace)
 
bool operator== (const IDisplayObject &other) const
 
bool operator< (const IDisplayObject &other) const
 
bool operator!= (const IDisplayObject &other) const
 
bool operator> (const IDisplayObject &other) const
 
bool operator<= (const IDisplayObject &other) const
 
bool operator>= (const IDisplayObject &other) const
 
virtual bool onUnitTest ()
 Runs unit tests for this object.
 
void cleanAll ()
 
bool getDirty () const
 
IDisplayObjectsetDirty ()
 
IDisplayObjectsetDirty (bool grime)
 
bool isDirty () const
 
void printTree (int depth=0, bool isLast=true, const std::vector< bool > &hasMoreSiblings={}) const
 
void addEventListener (EventType &type, std::function< void(Event &)> listener, bool useCapture=false, int priority=0)
 
void removeEventListener (EventType &type, std::function< void(Event &)> listener, bool useCapture=false)
 
void triggerEventListeners (Event &event, bool useCapture)
 
bool hasEventListeners (const EventType &type, bool useCapture) const
 
void queue_event (const EventType &type, std::function< void(Event &)> init_payload)
 
void addChild (DisplayHandle child, bool useWorld=false, int worldX=0, int worldY=0)
 
DisplayHandle getChild (std::string name) const
 
bool removeChild (DisplayHandle child)
 
bool removeChild (const std::string &name)
 
const std::vector< DisplayHandle > & getChildren () const
 
DisplayHandle getParent () const
 
IDisplayObjectsetParent (const DisplayHandle &parent)
 
bool hasChild (DisplayHandle child) const
 
bool isAncestorOf (DisplayHandle descendant) const
 
bool isAncestorOf (const std::string &name) const
 
bool isDescendantOf (DisplayHandle ancestor) const
 
bool isDescendantOf (const std::string &name) const
 
bool removeFromParent ()
 
bool removeDescendant (DisplayHandle descendant)
 
bool removeDescendant (const std::string &descendantName)
 
std::string getType () const
 
IDisplayObjectsetType (const std::string &newType)
 
Bounds getBounds () const
 
IDisplayObjectsetBounds (const Bounds &b)
 
SDL_Color getColor () const
 
IDisplayObjectsetColor (const SDL_Color &color)
 
int getMaxPriority () const
 
int getMinPriority () const
 
int getPriority () const
 
IDisplayObjectsetToHighestPriority ()
 
IDisplayObjectsetToLowestPriority ()
 
IDisplayObjectsortChildrenByPriority ()
 
IDisplayObjectsetPriority (int priority)
 
std::vector< int > getChildrenPriorities () const
 
IDisplayObjectmoveToTop ()
 
int getZOrder () const
 
IDisplayObjectsetZOrder (int z_order)
 
void setKeyboardFocus ()
 
bool isKeyboardFocused () const
 
bool isMouseHovered () const
 
bool isClickable () const
 
IDisplayObjectsetClickable (bool clickable)
 
bool isEnabled () const
 
IDisplayObjectsetEnabled (bool enabled)
 
bool isHidden () const
 
IDisplayObjectsetHidden (bool hidden)
 
bool isVisible () const
 
IDisplayObjectsetVisible (bool visible)
 
int getTabPriority () const
 
IDisplayObjectsetTabPriority (int index)
 
bool isTabEnabled () const
 
IDisplayObjectsetTabEnabled (bool enabled)
 
int getX () const
 
int getY () const
 
int getWidth () const
 
int getHeight () const
 
IDisplayObjectsetX (int p_x)
 
IDisplayObjectsetY (int p_y)
 
IDisplayObjectsetWidth (int width)
 
IDisplayObjectsetHeight (int height)
 
AnchorPoint getAnchorTop () const
 
AnchorPoint getAnchorLeft () const
 
AnchorPoint getAnchorBottom () const
 
AnchorPoint getAnchorRight () const
 
void setAnchorTop (AnchorPoint ap)
 
void setAnchorLeft (AnchorPoint ap)
 
void setAnchorBottom (AnchorPoint ap)
 
void setAnchorRight (AnchorPoint ap)
 
float getLeft () const
 
float getRight () const
 
float getTop () const
 
float getBottom () const
 
IDisplayObjectsetLeft (float p_left)
 
IDisplayObjectsetRight (float p_right)
 
IDisplayObjectsetTop (float p_top)
 
IDisplayObjectsetBottom (float p_bottom)
 
float getLocalX () const
 
float getLocalY () const
 
float getLocalWidth () const
 
float getLocalHeight () const
 
float getLocalLeft () const
 
float getLocalRight () const
 
float getLocalTop () const
 
float getLocalBottom () const
 
IDisplayObjectsetLocalLeft (float value)
 
IDisplayObjectsetLocalRight (float value)
 
IDisplayObjectsetLocalTop (float value)
 
IDisplayObjectsetLocalBottom (float value)
 
std::string getName () const
 
void setName (const std::string &newName)
 
void registerLuaBindings (const std::string &typeName, sol::state_view lua)
 

Static Public Member Functions

static std::unique_ptr< IDisplayObjectCreateFromLua (const sol::table &config)
 
static std::unique_ptr< IDisplayObjectCreateFromInitStruct (const IDisplayObject::InitStruct &baseInit)
 
template<typename T >
static T lua_value_case_insensitive (const sol::table &tbl, const std::string &key, const T &default_value)
 

Static Public Attributes

static constexpr const char * TypeName = "TriStateCheckbox"
 

Protected Member Functions

 TriStateCheckbox (const InitStruct &init)
 
 TriStateCheckbox (const sol::table &config)
 
virtual void _registerLuaBindings (const std::string &typeName, sol::state_view lua)
 
void attachChild_ (DisplayHandle child, DisplayHandle parent, bool useWorld=false, int worldX=0, int worldY=0)
 
void removeOrphan_ (const DisplayHandle &orphan)
 

Protected Attributes

DisplayHandle labelObject_
 
std::string text_
 
std::string font_resource_ = "internal_font_8x8"
 
std::string icon_resource_ = "internal_icon_8x8"
 
int font_size_ = 8
 
int font_width_ = 8
 
int font_height_ = 8
 
bool use_border_ = false
 
TriState state_ = TriState::Indeterminate
 
SDL_Color label_color_ = {255, 255, 255, 255}
 
SDL_Color border_color_ = {0, 0, 0, 128}
 
DisplayHandle iconButtonObject_
 
IconIndex icon_index_ = IconIndex::Checkbox_X
 
int icon_width_ = 8
 
int icon_height_ = 8
 
AssetHandle spriteSheetAsset_
 
AssetHandle fontAsset_
 
PanelBaseIndex base_index_ = PanelBaseIndex::ButtonUp
 
PanelBaseIndex last_base_index_ = PanelBaseIndex::ButtonUp
 
float left_ = 0.0f
 
float top_ = 0.0f
 
float right_ = 0.0f
 
float bottom_ = 0.0f
 
std::string type_
 
bool bIsDirty_ = false
 
SDL_Color color_ = {255, 255, 255, 255}
 
SDL_Color foregroundColor_ = {255, 255, 255, 255}
 
SDL_Color backgroundColor_ = {255, 255, 255, 128}
 
SDL_Color borderColor_ = {0, 0, 0, 128}
 
SDL_Color outlineColor_ = {0, 0, 0, 255}
 
SDL_Color dropshadowColor_ = {0, 0, 0, 128}
 
AnchorPoint anchorTop_ = AnchorPoint::TOP_LEFT
 
AnchorPoint anchorLeft_ = AnchorPoint::TOP_LEFT
 
AnchorPoint anchorBottom_ = AnchorPoint::TOP_LEFT
 
AnchorPoint anchorRight_ = AnchorPoint::TOP_LEFT
 
int z_order_ = 0
 
int priority_ = 0
 
bool isClickable_ = false
 
bool isEnabled_ = true
 
bool isHidden_ = false
 
int tabPriority_ = -1
 
bool tabEnabled_ = false
 
DisplayHandle parent_
 
std::vector< DisplayHandlechildren_
 
std::unordered_map< EventType, std::vector< ListenerEntry >, EventTypeHashcaptureEventListeners
 
std::unordered_map< EventType, std::vector< ListenerEntry >, EventTypeHashbubblingEventListeners
 
sol::usertype< IDisplayObjectobjHandleType_
 
std::string name_ = "IDataObject"
 

Member Enumeration Documentation

◆ OrphanRetentionPolicy

enum class SDOM::IDisplayObject::OrphanRetentionPolicy : int
stronginherited
Enumerator
RetainUntilManual 
AutoDestroy 
GracePeriod 

Constructor & Destructor Documentation

◆ TriStateCheckbox() [1/3]

SDOM::TriStateCheckbox::TriStateCheckbox ( const InitStruct init)
protected

◆ TriStateCheckbox() [2/3]

SDOM::TriStateCheckbox::TriStateCheckbox ( const sol::table &  config)
protected

◆ TriStateCheckbox() [3/3]

SDOM::TriStateCheckbox::TriStateCheckbox ( )
default

◆ ~TriStateCheckbox()

virtual SDOM::TriStateCheckbox::~TriStateCheckbox ( )
virtualdefault

Member Function Documentation

◆ _registerLuaBindings()

void SDOM::TriStateCheckbox::_registerLuaBindings ( const std::string &  typeName,
sol::state_view  lua 
)
protectedvirtual

Reimplemented from SDOM::IPanelObject.

◆ addChild()

void SDOM::IDisplayObject::addChild ( DisplayHandle  child,
bool  useWorld = false,
int  worldX = 0,
int  worldY = 0 
)
inherited

◆ addEventListener()

void SDOM::IDisplayObject::addEventListener ( EventType type,
std::function< void(Event &)>  listener,
bool  useCapture = false,
int  priority = 0 
)
inherited

◆ attachChild_()

void SDOM::IDisplayObject::attachChild_ ( DisplayHandle  child,
DisplayHandle  parent,
bool  useWorld = false,
int  worldX = 0,
int  worldY = 0 
)
protectedinherited

◆ cleanAll()

void SDOM::IDisplayObject::cleanAll ( )
inherited

◆ CreateFromInitStruct()

static std::unique_ptr< IDisplayObject > SDOM::TriStateCheckbox::CreateFromInitStruct ( const IDisplayObject::InitStruct baseInit)
inlinestatic

◆ CreateFromLua()

static std::unique_ptr< IDisplayObject > SDOM::TriStateCheckbox::CreateFromLua ( const sol::table &  config)
inlinestatic

◆ getAnchorBottom()

AnchorPoint SDOM::IDisplayObject::getAnchorBottom ( ) const
inlineinherited

◆ getAnchorLeft()

AnchorPoint SDOM::IDisplayObject::getAnchorLeft ( ) const
inlineinherited

◆ getAnchorRight()

AnchorPoint SDOM::IDisplayObject::getAnchorRight ( ) const
inlineinherited

◆ getAnchorTop()

AnchorPoint SDOM::IDisplayObject::getAnchorTop ( ) const
inlineinherited

◆ getBaseIndex()

PanelBaseIndex SDOM::IPanelObject::getBaseIndex ( ) const
inlineinherited

◆ getBottom()

float SDOM::IDisplayObject::getBottom ( ) const
inherited

◆ getBounds()

Bounds SDOM::IDisplayObject::getBounds ( ) const
inlineinherited

◆ getChild()

DisplayHandle SDOM::IDisplayObject::getChild ( std::string  name) const
inherited

◆ getChildren()

const std::vector< DisplayHandle > & SDOM::IDisplayObject::getChildren ( ) const
inherited

◆ getChildrenPriorities()

std::vector< int > SDOM::IDisplayObject::getChildrenPriorities ( ) const
inherited

◆ getColor()

SDL_Color SDOM::IDisplayObject::getColor ( ) const
inlineinherited

◆ getDirty()

bool SDOM::IDisplayObject::getDirty ( ) const
inlineinherited

◆ getFontAsset()

AssetHandle SDOM::IPanelObject::getFontAsset ( ) const
inlineinherited

◆ getFontHeight()

int SDOM::IPanelObject::getFontHeight ( ) const
inlineinherited

◆ getFontResourceName()

std::string SDOM::IPanelObject::getFontResourceName ( ) const
inlineinherited

◆ getFontWidth()

int SDOM::IPanelObject::getFontWidth ( ) const
inlineinherited

◆ getHeight()

int SDOM::IDisplayObject::getHeight ( ) const
inherited

◆ getIconButtonObject()

DisplayHandle SDOM::TriStateCheckbox::getIconButtonObject ( ) const
inline

◆ getIconHeight()

int SDOM::IPanelObject::getIconHeight ( ) const
inlineinherited

◆ getIconResourceName()

std::string SDOM::IPanelObject::getIconResourceName ( ) const
inlineinherited

◆ getIconWidth()

int SDOM::IPanelObject::getIconWidth ( ) const
inlineinherited

◆ getLabelObject()

DisplayHandle SDOM::TriStateCheckbox::getLabelObject ( ) const
inline

◆ getLeft()

float SDOM::IDisplayObject::getLeft ( ) const
inherited

◆ getLocalBottom()

float SDOM::IDisplayObject::getLocalBottom ( ) const
inlineinherited

◆ getLocalHeight()

float SDOM::IDisplayObject::getLocalHeight ( ) const
inlineinherited

◆ getLocalLeft()

float SDOM::IDisplayObject::getLocalLeft ( ) const
inlineinherited

◆ getLocalRight()

float SDOM::IDisplayObject::getLocalRight ( ) const
inlineinherited

◆ getLocalTop()

float SDOM::IDisplayObject::getLocalTop ( ) const
inlineinherited

◆ getLocalWidth()

float SDOM::IDisplayObject::getLocalWidth ( ) const
inlineinherited

◆ getLocalX()

float SDOM::IDisplayObject::getLocalX ( ) const
inlineinherited

◆ getLocalY()

float SDOM::IDisplayObject::getLocalY ( ) const
inlineinherited

◆ getMaxPriority()

int SDOM::IDisplayObject::getMaxPriority ( ) const
inherited

◆ getMinPriority()

int SDOM::IDisplayObject::getMinPriority ( ) const
inherited

◆ getName()

std::string SDOM::IDataObject::getName ( ) const
inlineinherited

◆ getOrphanGrace()

std::chrono::milliseconds SDOM::IDisplayObject::getOrphanGrace ( ) const
inlineinherited

◆ getOrphanRetentionPolicy()

OrphanRetentionPolicy SDOM::IDisplayObject::getOrphanRetentionPolicy ( ) const
inlineinherited

◆ getParent()

DisplayHandle SDOM::IDisplayObject::getParent ( ) const
inherited

◆ getPriority()

int SDOM::IDisplayObject::getPriority ( ) const
inlineinherited

◆ getRight()

float SDOM::IDisplayObject::getRight ( ) const
inherited

◆ getSpriteSheet()

AssetHandle SDOM::IPanelObject::getSpriteSheet ( ) const
inlineinherited

◆ getState()

TriState SDOM::TriStateCheckbox::getState ( ) const

◆ getTabPriority()

int SDOM::IDisplayObject::getTabPriority ( ) const
inherited

◆ getText()

std::string SDOM::TriStateCheckbox::getText ( ) const
inline

◆ getTop()

float SDOM::IDisplayObject::getTop ( ) const
inherited

◆ getType()

std::string SDOM::IDisplayObject::getType ( ) const
inlineinherited

◆ getWidth()

int SDOM::IDisplayObject::getWidth ( ) const
inherited

◆ getX()

int SDOM::IDisplayObject::getX ( ) const
inherited

◆ getY()

int SDOM::IDisplayObject::getY ( ) const
inherited

◆ getZOrder()

int SDOM::IDisplayObject::getZOrder ( ) const
inlineinherited

◆ hasChild()

bool SDOM::IDisplayObject::hasChild ( DisplayHandle  child) const
inherited

◆ hasEventListeners()

bool SDOM::IDisplayObject::hasEventListeners ( const EventType type,
bool  useCapture 
) const
inherited

◆ isAncestorOf() [1/2]

bool SDOM::IDisplayObject::isAncestorOf ( const std::string &  name) const
inherited

◆ isAncestorOf() [2/2]

bool SDOM::IDisplayObject::isAncestorOf ( DisplayHandle  descendant) const
inherited

◆ isClickable()

bool SDOM::IDisplayObject::isClickable ( ) const
inlineinherited

◆ isDescendantOf() [1/2]

bool SDOM::IDisplayObject::isDescendantOf ( const std::string &  name) const
inherited

◆ isDescendantOf() [2/2]

bool SDOM::IDisplayObject::isDescendantOf ( DisplayHandle  ancestor) const
inherited

◆ isDirty()

bool SDOM::IDisplayObject::isDirty ( ) const
inlineinherited

◆ isEnabled()

bool SDOM::IDisplayObject::isEnabled ( ) const
inlineinherited

◆ isHidden()

bool SDOM::IDisplayObject::isHidden ( ) const
inlineinherited

◆ isKeyboardFocused()

bool SDOM::IDisplayObject::isKeyboardFocused ( ) const
inherited

◆ isMouseHovered()

bool SDOM::IDisplayObject::isMouseHovered ( ) const
inherited

◆ isTabEnabled()

bool SDOM::IDisplayObject::isTabEnabled ( ) const
inherited

◆ isVisible()

bool SDOM::IDisplayObject::isVisible ( ) const
inlineinherited

◆ lua_value_case_insensitive()

template<typename T >
static T SDOM::IDataObject::lua_value_case_insensitive ( const sol::table &  tbl,
const std::string &  key,
const T &  default_value 
)
inlinestaticinherited

◆ moveToTop()

IDisplayObject & SDOM::IDisplayObject::moveToTop ( )
inherited

◆ onEvent()

void SDOM::TriStateCheckbox::onEvent ( const Event event)
overridevirtual

Implements SDOM::IPanelObject.

◆ onInit()

bool SDOM::TriStateCheckbox::onInit ( )
overridevirtual

Reimplemented from SDOM::IPanelObject.

◆ onQuit()

void SDOM::TriStateCheckbox::onQuit ( )
overridevirtual

Reimplemented from SDOM::IPanelObject.

◆ onRender()

void SDOM::TriStateCheckbox::onRender ( )
overridevirtual

Reimplemented from SDOM::IPanelObject.

◆ onUnitTest()

virtual bool SDOM::IDisplayObject::onUnitTest ( )
inlinevirtualinherited

Runs unit tests for this object.

Returns
true if all tests pass, false otherwise.

Reimplemented from SDOM::IDataObject.

Reimplemented in SDOM::Label, SDOM::Stage, and SDOM::TristateButton.

◆ onUpdate()

void SDOM::TriStateCheckbox::onUpdate ( float  fElapsedTime)
overridevirtual

Implements SDOM::IPanelObject.

◆ operator!=()

bool SDOM::IDisplayObject::operator!= ( const IDisplayObject other) const
inlineinherited

◆ operator<()

bool SDOM::IDisplayObject::operator< ( const IDisplayObject other) const
inlineinherited

◆ operator<=()

bool SDOM::IDisplayObject::operator<= ( const IDisplayObject other) const
inlineinherited

◆ operator==()

bool SDOM::IDisplayObject::operator== ( const IDisplayObject other) const
inlineinherited

◆ operator>()

bool SDOM::IDisplayObject::operator> ( const IDisplayObject other) const
inlineinherited

◆ operator>=()

bool SDOM::IDisplayObject::operator>= ( const IDisplayObject other) const
inlineinherited

◆ printTree()

void SDOM::IDisplayObject::printTree ( int  depth = 0,
bool  isLast = true,
const std::vector< bool > &  hasMoreSiblings = {} 
) const
inherited

◆ queue_event()

void SDOM::IDisplayObject::queue_event ( const EventType type,
std::function< void(Event &)>  init_payload 
)
inherited

◆ registerLuaBindings()

void SDOM::IDataObject::registerLuaBindings ( const std::string &  typeName,
sol::state_view  lua 
)
inlineinherited

◆ removeChild() [1/2]

bool SDOM::IDisplayObject::removeChild ( const std::string &  name)
inherited

◆ removeChild() [2/2]

bool SDOM::IDisplayObject::removeChild ( DisplayHandle  child)
inherited

◆ removeDescendant() [1/2]

bool SDOM::IDisplayObject::removeDescendant ( const std::string &  descendantName)
inherited

◆ removeDescendant() [2/2]

bool SDOM::IDisplayObject::removeDescendant ( DisplayHandle  descendant)
inherited

◆ removeEventListener()

void SDOM::IDisplayObject::removeEventListener ( EventType type,
std::function< void(Event &)>  listener,
bool  useCapture = false 
)
inherited

◆ removeFromParent()

bool SDOM::IDisplayObject::removeFromParent ( )
inherited

◆ removeOrphan_()

void SDOM::IDisplayObject::removeOrphan_ ( const DisplayHandle orphan)
protectedinherited

◆ renderPanel()

void SDOM::IPanelObject::renderPanel ( )
inherited

◆ setAnchorBottom()

void SDOM::IDisplayObject::setAnchorBottom ( AnchorPoint  ap)
inherited

◆ setAnchorLeft()

void SDOM::IDisplayObject::setAnchorLeft ( AnchorPoint  ap)
inherited

◆ setAnchorRight()

void SDOM::IDisplayObject::setAnchorRight ( AnchorPoint  ap)
inherited

◆ setAnchorTop()

void SDOM::IDisplayObject::setAnchorTop ( AnchorPoint  ap)
inherited

◆ setBottom()

IDisplayObject & SDOM::IDisplayObject::setBottom ( float  p_bottom)
inherited

◆ setBounds()

IDisplayObject & SDOM::IDisplayObject::setBounds ( const Bounds b)
inlineinherited

◆ setClickable()

IDisplayObject & SDOM::IDisplayObject::setClickable ( bool  clickable)
inlineinherited

◆ setColor()

IDisplayObject & SDOM::IDisplayObject::setColor ( const SDL_Color &  color)
inlineinherited

◆ setDirty() [1/2]

IDisplayObject & SDOM::IDisplayObject::setDirty ( )
inlineinherited

◆ setDirty() [2/2]

IDisplayObject & SDOM::IDisplayObject::setDirty ( bool  grime)
inlineinherited

◆ setEnabled()

IDisplayObject & SDOM::IDisplayObject::setEnabled ( bool  enabled)
inlineinherited

◆ setHeight()

IDisplayObject & SDOM::IDisplayObject::setHeight ( int  height)
inherited

◆ setHidden()

IDisplayObject & SDOM::IDisplayObject::setHidden ( bool  hidden)
inlineinherited

◆ setKeyboardFocus()

void SDOM::IDisplayObject::setKeyboardFocus ( )
inherited

◆ setLeft()

IDisplayObject & SDOM::IDisplayObject::setLeft ( float  p_left)
inherited

◆ setLocalBottom()

IDisplayObject & SDOM::IDisplayObject::setLocalBottom ( float  value)
inlineinherited

◆ setLocalLeft()

IDisplayObject & SDOM::IDisplayObject::setLocalLeft ( float  value)
inlineinherited

◆ setLocalRight()

IDisplayObject & SDOM::IDisplayObject::setLocalRight ( float  value)
inlineinherited

◆ setLocalTop()

IDisplayObject & SDOM::IDisplayObject::setLocalTop ( float  value)
inlineinherited

◆ setName()

void SDOM::IDataObject::setName ( const std::string &  newName)
inlineinherited

◆ setOrphanGrace()

IDisplayObject & SDOM::IDisplayObject::setOrphanGrace ( std::chrono::milliseconds  grace)
inlineinherited

◆ setOrphanRetentionPolicy()

IDisplayObject & SDOM::IDisplayObject::setOrphanRetentionPolicy ( OrphanRetentionPolicy  policy)
inlineinherited

◆ setParent()

IDisplayObject & SDOM::IDisplayObject::setParent ( const DisplayHandle parent)
inherited

◆ setPriority()

IDisplayObject & SDOM::IDisplayObject::setPriority ( int  priority)
inherited

◆ setRight()

IDisplayObject & SDOM::IDisplayObject::setRight ( float  p_right)
inherited

◆ setState()

void SDOM::TriStateCheckbox::setState ( TriState  state)

◆ setTabEnabled()

IDisplayObject & SDOM::IDisplayObject::setTabEnabled ( bool  enabled)
inherited

◆ setTabPriority()

IDisplayObject & SDOM::IDisplayObject::setTabPriority ( int  index)
inherited

◆ setText()

void SDOM::TriStateCheckbox::setText ( const std::string &  newText)

◆ setToHighestPriority()

IDisplayObject & SDOM::IDisplayObject::setToHighestPriority ( )
inherited

◆ setToLowestPriority()

IDisplayObject & SDOM::IDisplayObject::setToLowestPriority ( )
inherited

◆ setTop()

IDisplayObject & SDOM::IDisplayObject::setTop ( float  p_top)
inherited

◆ setType()

IDisplayObject & SDOM::IDisplayObject::setType ( const std::string &  newType)
inlineinherited

◆ setVisible()

IDisplayObject & SDOM::IDisplayObject::setVisible ( bool  visible)
inlineinherited

◆ setWidth()

IDisplayObject & SDOM::IDisplayObject::setWidth ( int  width)
inherited

◆ setX()

IDisplayObject & SDOM::IDisplayObject::setX ( int  p_x)
inherited

◆ setY()

IDisplayObject & SDOM::IDisplayObject::setY ( int  p_y)
inherited

◆ setZOrder()

IDisplayObject & SDOM::IDisplayObject::setZOrder ( int  z_order)
inlineinherited

◆ sortChildrenByPriority()

IDisplayObject & SDOM::IDisplayObject::sortChildrenByPriority ( )
inherited

◆ triggerEventListeners()

void SDOM::IDisplayObject::triggerEventListeners ( Event event,
bool  useCapture 
)
inherited

Member Data Documentation

◆ anchorBottom_

AnchorPoint SDOM::IDisplayObject::anchorBottom_ = AnchorPoint::TOP_LEFT
protectedinherited

◆ anchorLeft_

AnchorPoint SDOM::IDisplayObject::anchorLeft_ = AnchorPoint::TOP_LEFT
protectedinherited

◆ anchorRight_

AnchorPoint SDOM::IDisplayObject::anchorRight_ = AnchorPoint::TOP_LEFT
protectedinherited

◆ anchorTop_

AnchorPoint SDOM::IDisplayObject::anchorTop_ = AnchorPoint::TOP_LEFT
protectedinherited

◆ backgroundColor_

SDL_Color SDOM::IDisplayObject::backgroundColor_ = {255, 255, 255, 128}
protectedinherited

◆ base_index_

PanelBaseIndex SDOM::IPanelObject::base_index_ = PanelBaseIndex::ButtonUp
protectedinherited

◆ bIsDirty_

bool SDOM::IDisplayObject::bIsDirty_ = false
protectedinherited

◆ border_color_

SDL_Color SDOM::TriStateCheckbox::border_color_ = {0, 0, 0, 128}
protected

◆ borderColor_

SDL_Color SDOM::IDisplayObject::borderColor_ = {0, 0, 0, 128}
protectedinherited

◆ bottom_

float SDOM::IDisplayObject::bottom_ = 0.0f
protectedinherited

◆ bubblingEventListeners

std::unordered_map<EventType, std::vector<ListenerEntry>, EventTypeHash> SDOM::IDisplayObject::bubblingEventListeners
protectedinherited

◆ captureEventListeners

std::unordered_map<EventType, std::vector<ListenerEntry>, EventTypeHash> SDOM::IDisplayObject::captureEventListeners
protectedinherited

◆ children_

std::vector<DisplayHandle> SDOM::IDisplayObject::children_
protectedinherited

◆ color_

SDL_Color SDOM::IDisplayObject::color_ = {255, 255, 255, 255}
protectedinherited

◆ dropshadowColor_

SDL_Color SDOM::IDisplayObject::dropshadowColor_ = {0, 0, 0, 128}
protectedinherited

◆ font_height_

int SDOM::TriStateCheckbox::font_height_ = 8
protected

◆ font_resource_

std::string SDOM::TriStateCheckbox::font_resource_ = "internal_font_8x8"
protected

◆ font_size_

int SDOM::TriStateCheckbox::font_size_ = 8
protected

◆ font_width_

int SDOM::TriStateCheckbox::font_width_ = 8
protected

◆ fontAsset_

AssetHandle SDOM::IPanelObject::fontAsset_
protectedinherited

◆ foregroundColor_

SDL_Color SDOM::IDisplayObject::foregroundColor_ = {255, 255, 255, 255}
protectedinherited

◆ icon_height_

int SDOM::TriStateCheckbox::icon_height_ = 8
protected

◆ icon_index_

IconIndex SDOM::TriStateCheckbox::icon_index_ = IconIndex::Checkbox_X
protected

◆ icon_resource_

std::string SDOM::TriStateCheckbox::icon_resource_ = "internal_icon_8x8"
protected

◆ icon_width_

int SDOM::TriStateCheckbox::icon_width_ = 8
protected

◆ iconButtonObject_

DisplayHandle SDOM::TriStateCheckbox::iconButtonObject_
protected

◆ isClickable_

bool SDOM::IDisplayObject::isClickable_ = false
protectedinherited

◆ isEnabled_

bool SDOM::IDisplayObject::isEnabled_ = true
protectedinherited

◆ isHidden_

bool SDOM::IDisplayObject::isHidden_ = false
protectedinherited

◆ label_color_

SDL_Color SDOM::TriStateCheckbox::label_color_ = {255, 255, 255, 255}
protected

◆ labelObject_

DisplayHandle SDOM::TriStateCheckbox::labelObject_
protected

◆ last_base_index_

PanelBaseIndex SDOM::IPanelObject::last_base_index_ = PanelBaseIndex::ButtonUp
protectedinherited

◆ left_

float SDOM::IDisplayObject::left_ = 0.0f
protectedinherited

◆ name_

std::string SDOM::IDataObject::name_ = "IDataObject"
protectedinherited

◆ objHandleType_

sol::usertype<IDisplayObject> SDOM::IDisplayObject::objHandleType_
protectedinherited

◆ outlineColor_

SDL_Color SDOM::IDisplayObject::outlineColor_ = {0, 0, 0, 255}
protectedinherited

◆ parent_

DisplayHandle SDOM::IDisplayObject::parent_
protectedinherited

◆ priority_

int SDOM::IDisplayObject::priority_ = 0
protectedinherited

◆ right_

float SDOM::IDisplayObject::right_ = 0.0f
protectedinherited

◆ spriteSheetAsset_

AssetHandle SDOM::IPanelObject::spriteSheetAsset_
protectedinherited

◆ state_

TriState SDOM::TriStateCheckbox::state_ = TriState::Indeterminate
protected

◆ tabEnabled_

bool SDOM::IDisplayObject::tabEnabled_ = false
protectedinherited

◆ tabPriority_

int SDOM::IDisplayObject::tabPriority_ = -1
protectedinherited

◆ text_

std::string SDOM::TriStateCheckbox::text_
protected

◆ top_

float SDOM::IDisplayObject::top_ = 0.0f
protectedinherited

◆ type_

std::string SDOM::IDisplayObject::type_
protectedinherited

◆ TypeName

constexpr const char* SDOM::TriStateCheckbox::TypeName = "TriStateCheckbox"
staticconstexpr

◆ use_border_

bool SDOM::TriStateCheckbox::use_border_ = false
protected

◆ z_order_

int SDOM::IDisplayObject::z_order_ = 0
protectedinherited

The documentation for this class was generated from the following files: