112 static constexpr const char*
TypeName =
"IPanelObject";
121 color = {96, 0, 96, 255};
153 virtual bool onInit()
override;
155 virtual void onQuit()
override;
Definition SDOM_AssetHandle.hpp:13
Definition SDOM_Event.hpp:55
Definition SDOM_Frame.hpp:10
Definition SDOM_Group.hpp:10
Definition SDOM_IDisplayObject.hpp:153
Definition SDOM_IPanelObject.hpp:107
int getFontHeight() const
Definition SDOM_IPanelObject.hpp:169
int getIconWidth() const
Definition SDOM_IPanelObject.hpp:166
PanelBaseIndex getBaseIndex() const
Definition SDOM_IPanelObject.hpp:170
int font_width_
Definition SDOM_IPanelObject.hpp:180
AssetHandle spriteSheetAsset_
Definition SDOM_IPanelObject.hpp:174
int getIconHeight() const
Definition SDOM_IPanelObject.hpp:167
virtual bool onInit() override
Definition SDOM_IPanelObject.cpp:86
int icon_width_
Definition SDOM_IPanelObject.hpp:178
virtual void onEvent(const Event &event)=0
virtual void onUpdate(float fElapsedTime)=0
AssetHandle fontAsset_
Definition SDOM_IPanelObject.hpp:175
virtual void _registerLuaBindings(const std::string &typeName, sol::state_view lua)
Definition SDOM_IPanelObject.cpp:243
int font_height_
Definition SDOM_IPanelObject.hpp:181
virtual void onQuit() override
Definition SDOM_IPanelObject.cpp:157
std::string getIconResourceName() const
Definition SDOM_IPanelObject.hpp:164
int getFontWidth() const
Definition SDOM_IPanelObject.hpp:168
int icon_height_
Definition SDOM_IPanelObject.hpp:179
static constexpr const char * TypeName
Definition SDOM_IPanelObject.hpp:112
virtual void onRender() override
Definition SDOM_IPanelObject.cpp:170
std::string getFontResourceName() const
Definition SDOM_IPanelObject.hpp:165
PanelBaseIndex base_index_
Definition SDOM_IPanelObject.hpp:182
void renderPanel()
Definition SDOM_IPanelObject.cpp:177
AssetHandle getFontAsset() const
Definition SDOM_IPanelObject.hpp:163
std::string font_resource_
Definition SDOM_IPanelObject.hpp:177
std::string icon_resource_
Definition SDOM_IPanelObject.hpp:176
AssetHandle getSpriteSheet() const
Definition SDOM_IPanelObject.hpp:162
virtual ~IPanelObject()=default
PanelBaseIndex last_base_index_
Definition SDOM_IPanelObject.hpp:183
Contains all core classes and utilities for the SDOM library.
Definition lua_BindHelpers.hpp:7
PanelTileOffset
Definition SDOM_IPanelObject.hpp:70
static const std::unordered_map< PanelTileOffset, std::string > panelTileOffsetToString_
Definition SDOM_IPanelObject.hpp:93
PanelBaseIndex
Definition SDOM_IPanelObject.hpp:14
static const std::unordered_map< std::string, PanelBaseIndex > stringToPanelBaseIndex_
Definition SDOM_IPanelObject.hpp:50
static const std::unordered_map< std::string, PanelTileOffset > stringToPanelTileOffset_
Definition SDOM_IPanelObject.hpp:81
static const std::unordered_map< PanelBaseIndex, std::string > panelBaseIndexToString_
Definition SDOM_IPanelObject.hpp:59
Definition SDOM_IDisplayObject.hpp:187
std::string type
Definition SDOM_IDisplayObject.hpp:189
std::string name
Definition SDOM_IDisplayObject.hpp:188
SDL_Color color
Definition SDOM_IDisplayObject.hpp:194
Definition SDOM_IPanelObject.hpp:116
std::string font_resource
Definition SDOM_IPanelObject.hpp:127
std::string icon_resource
Definition SDOM_IPanelObject.hpp:124
InitStruct()
Definition SDOM_IPanelObject.hpp:117
int font_height
Definition SDOM_IPanelObject.hpp:129
PanelBaseIndex base_index
Definition SDOM_IPanelObject.hpp:123
int font_width
Definition SDOM_IPanelObject.hpp:128
int icon_height
Definition SDOM_IPanelObject.hpp:126
int icon_width
Definition SDOM_IPanelObject.hpp:125