Simple GUI Library
Sgl::DefaultSkins::ButtonPlaneSkin Class Reference
Inheritance diagram for Sgl::DefaultSkins::ButtonPlaneSkin:
Collaboration diagram for Sgl::DefaultSkins::ButtonPlaneSkin:

Public Member Functions

 ButtonPlaneSkin (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 ControlgetControl () const override
 
virtual ControlgetModifiableControl () 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 ComponentgetHitComponent (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
 

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 StaticStylem_StaticStyle = nullptr
 
const InteractionStylem_IdleStyle = nullptr
 
const InteractionStylem_HoveredStyle = nullptr
 
const InteractionStylem_PressedStyle = nullptr
 
Sgl::Buttonm_Button = nullptr
 
ButtonBaseSkinEventListenerm_Handler = nullptr
 
Sgl::Text m_Text
 
Sgl::ImageView m_Icon
 

Detailed Description

Definition at line 119 of file default_skins.h.

Constructor & Destructor Documentation

◆ ButtonPlaneSkin() [1/2]

Sgl::DefaultSkins::ButtonPlaneSkin::ButtonPlaneSkin ( )

Definition at line 271 of file default_skins.cpp.

◆ ButtonPlaneSkin() [2/2]

Sgl::DefaultSkins::ButtonPlaneSkin::ButtonPlaneSkin ( Sgl::Button button)

Definition at line 274 of file default_skins.cpp.


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