Simple GUI Library
|
Public Member Functions | |
MenuItemSkin (Sgl::Button *button) | |
Public Member Functions inherited from Sgl::DefaultSkins::ButtonBaseSkin | |
ButtonBaseSkin (Sgl::Button *button, const StaticStyle *staticStyle, const InteractionStyle *idleStyle, const InteractionStyle *hoveredStyle, const InteractionStyle *pressedStyle) | |
ButtonBaseSkin (const StaticStyle *staticStyle, const InteractionStyle *idleStyle, const InteractionStyle *hoveredStyle, const InteractionStyle *pressedStyle) | |
virtual void | dispose () override |
Should be called by Control when this skin is replaced. More... | |
virtual void | attach (Button *button) override |
virtual void | prerenderControl () override |
virtual const Control * | getControl () const override |
virtual Control * | getModifiableControl () override |
virtual int32_t | computePrefHeight (int32_t width=-1) const override |
virtual int32_t | computePrefWidth (int32_t height=-1) const override |
virtual void | layoutChildren () override |
void | applyInteractionStyle (InteractionStyle::Type type) |
Public Member Functions inherited from Sgl::Skin | |
virtual Component * | getHitComponent (int32_t x, int32_t y) |
virtual int32_t | computeMinHeight (int32_t width=-1) const |
virtual int32_t | computeMinWidth (int32_t height=-1) const |
virtual int32_t | computeMaxHeight (int32_t width=-1) const |
virtual int32_t | computeMaxWidth (int32_t height=-1) const |
Static Public Attributes | |
static const Insets | PADDING = Insets{5, 10} |
static const int32_t | MARGIN = 5 |
static const Border | BORDER = Border{0, 0} |
static const StaticStyle | STATIC_STYLE = {PADDING, MARGIN, BORDER} |
static const Sml::Color | IDLE_FOREGROUND = Sml::COLOR_BLACK |
static const ColorFill | IDLE_BACKGROUND_FILL = {Sml::COLOR_TRANSPARENT} |
static const Background | IDLE_BACKGROUND = {&IDLE_BACKGROUND_FILL} |
static const InteractionStyle | IDLE_STYLE |
static const Sml::Color | HOVERED_FOREGROUND = 0xEF'F8'FF'FF |
static const ColorFill | HOVERED_BACKGROUND_FILL = {0x5A'B9'FF'FF} |
static const Background | HOVERED_BACKGROUND = {&HOVERED_BACKGROUND_FILL} |
static const InteractionStyle | HOVERED_STYLE |
Additional Inherited Members | |
Protected Member Functions inherited from Sgl::DefaultSkins::ButtonBaseSkin | |
int32_t | getMargin () const |
void | applyStaticStyle () |
Protected Attributes inherited from Sgl::DefaultSkins::ButtonBaseSkin | |
const StaticStyle * | m_StaticStyle = nullptr |
const InteractionStyle * | m_IdleStyle = nullptr |
const InteractionStyle * | m_HoveredStyle = nullptr |
const InteractionStyle * | m_PressedStyle = nullptr |
Sgl::Button * | m_Button = nullptr |
ButtonBaseSkinEventListener * | m_Handler = nullptr |
Sgl::Text | m_Text |
Sgl::ImageView | m_Icon |
Definition at line 157 of file default_skins.h.
Sgl::DefaultSkins::MenuItemSkin::MenuItemSkin | ( | ) |
Definition at line 333 of file default_skins.cpp.
Sgl::DefaultSkins::MenuItemSkin::MenuItemSkin | ( | Sgl::Button * | button | ) |
Definition at line 336 of file default_skins.cpp.
Definition at line 162 of file default_skins.h.
|
static |
Definition at line 172 of file default_skins.h.
|
static |
Definition at line 171 of file default_skins.h.
|
static |
Definition at line 170 of file default_skins.h.
|
static |
Definition at line 173 of file default_skins.h.
|
static |
Definition at line 167 of file default_skins.h.
|
static |
Definition at line 166 of file default_skins.h.
|
static |
Definition at line 165 of file default_skins.h.
|
static |
Definition at line 168 of file default_skins.h.
|
static |
Definition at line 161 of file default_skins.h.
Definition at line 160 of file default_skins.h.
|
static |
Definition at line 163 of file default_skins.h.