Simple GUI Library
Sgl::Skin Class Referenceabstract
Inheritance diagram for Sgl::Skin:
Collaboration diagram for Sgl::Skin:

Public Member Functions

virtual void dispose ()=0
 Should be called by Control when this skin is replaced. More...
 
virtual void prerenderControl ()
 
virtual ComponentgetHitComponent (int32_t x, int32_t y)
 
virtual const ControlgetControl () const =0
 
virtual ControlgetModifiableControl ()=0
 
virtual int32_t computePrefHeight (int32_t width=-1) const
 
virtual int32_t computePrefWidth (int32_t height=-1) const
 
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
 
virtual void layoutChildren ()
 

Detailed Description

Definition at line 19 of file skin.h.

Member Function Documentation

◆ computeMaxHeight()

int32_t Sgl::Skin::computeMaxHeight ( int32_t  width = -1) const
virtual

Definition at line 70 of file skin.cpp.

◆ computeMaxWidth()

int32_t Sgl::Skin::computeMaxWidth ( int32_t  height = -1) const
virtual

Definition at line 71 of file skin.cpp.

◆ computeMinHeight()

int32_t Sgl::Skin::computeMinHeight ( int32_t  width = -1) const
virtual

Definition at line 50 of file skin.cpp.

◆ computeMinWidth()

int32_t Sgl::Skin::computeMinWidth ( int32_t  height = -1) const
virtual

Definition at line 60 of file skin.cpp.

◆ computePrefHeight()

int32_t Sgl::Skin::computePrefHeight ( int32_t  width = -1) const
virtual

Definition at line 30 of file skin.cpp.

◆ computePrefWidth()

int32_t Sgl::Skin::computePrefWidth ( int32_t  height = -1) const
virtual

Definition at line 40 of file skin.cpp.

◆ dispose()

virtual void Sgl::Skin::dispose ( )
pure virtual

Should be called by Control when this skin is replaced.

Must do things like removing its Components from the Control's children list, detaching its Listeners from the Control's dispatcher.

Implemented in Sgl::DefaultSkins::ButtonBaseSkin, Sgl::DefaultSkins::SliderSkin, Sgl::DefaultSkins::ScrollBarSkin, and Sgl::DefaultSkins::ScrollPaneSkin.

◆ getHitComponent()

Component * Sgl::Skin::getHitComponent ( int32_t  x,
int32_t  y 
)
virtual

Definition at line 18 of file skin.cpp.

◆ layoutChildren()

void Sgl::Skin::layoutChildren ( )
virtual

Definition at line 73 of file skin.cpp.

◆ prerenderControl()

void Sgl::Skin::prerenderControl ( )
virtual

Definition at line 16 of file skin.cpp.


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