Mana
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Attributes | List of all members
Skin Class Reference

#include <theme.h>

Public Member Functions

 Skin ()=default
 
 ~Skin ()
 
void addState (SkinState state)
 
void draw (Graphics *graphics, const WidgetState &state) const
 
const SkinStategetState (uint8_t flags) const
 
int getMinWidth () const
 Returns the minimum width which can be used with this skin.
 
int getMinHeight () const
 Returns the minimum height which can be used with this skin.
 
void updateAlpha (float alpha)
 Updates the alpha value of the skin.
 

Public Attributes

int width = 0
 
int height = 0
 
int frameSize = 0
 
int padding = 0
 
int spacing = 0
 
int titleBarHeight = 0
 
int titleOffsetX = 0
 
int titleOffsetY = 0
 
int palette = 0
 
bool showButtons = true
 

Private Attributes

std::vector< SkinStatemStates
 

Detailed Description

Definition at line 153 of file theme.h.

Constructor & Destructor Documentation

◆ Skin()

Skin::Skin ( )
default

◆ ~Skin()

Skin::~Skin ( )

Definition at line 108 of file theme.cpp.

Member Function Documentation

◆ addState()

void Skin::addState ( SkinState  state)

Definition at line 117 of file theme.cpp.

◆ draw()

void Skin::draw ( Graphics graphics,
const WidgetState state 
) const

Definition at line 122 of file theme.cpp.

◆ getMinHeight()

int Skin::getMinHeight ( ) const

Returns the minimum height which can be used with this skin.

Definition at line 195 of file theme.cpp.

◆ getMinWidth()

int Skin::getMinWidth ( ) const

Returns the minimum width which can be used with this skin.

Definition at line 177 of file theme.cpp.

◆ getState()

const SkinState * Skin::getState ( uint8_t  flags) const

Definition at line 168 of file theme.cpp.

◆ updateAlpha()

void Skin::updateAlpha ( float  alpha)

Updates the alpha value of the skin.

Definition at line 213 of file theme.cpp.

Member Data Documentation

◆ frameSize

int Skin::frameSize = 0

Definition at line 182 of file theme.h.

◆ height

int Skin::height = 0

Definition at line 181 of file theme.h.

◆ mStates

std::vector<SkinState> Skin::mStates
private

Definition at line 192 of file theme.h.

◆ padding

int Skin::padding = 0

Definition at line 183 of file theme.h.

◆ palette

int Skin::palette = 0

Definition at line 188 of file theme.h.

◆ showButtons

bool Skin::showButtons = true

Definition at line 189 of file theme.h.

◆ spacing

int Skin::spacing = 0

Definition at line 184 of file theme.h.

◆ titleBarHeight

int Skin::titleBarHeight = 0

Definition at line 185 of file theme.h.

◆ titleOffsetX

int Skin::titleOffsetX = 0

Definition at line 186 of file theme.h.

◆ titleOffsetY

int Skin::titleOffsetY = 0

Definition at line 187 of file theme.h.

◆ width

int Skin::width = 0

Definition at line 180 of file theme.h.


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