libgui 2.01
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
GuiShapeStyle Struct Reference

A set of paints, one per state. States left unset fall back to the normal paint. GuiShapeStyle(rest).onFocus(lit).onPress(pressed) More...

#include <GuiPaint.h>

Public Member Functions

 GuiShapeStyle (const GuiPaint &normalPaint=GuiPaint())
 
GuiShapeStyle & onFocus (const GuiPaint &p)
 
GuiShapeStyle & onPress (const GuiPaint &p)
 
GuiShapeStyle & onDisable (const GuiPaint &p)
 
const GuiPaint & forState (SHAPE_STATE s) const
 Gets the paint for a state, falling back to normal when none was set.
 

Public Attributes

GuiPaint normal
 
GuiPaint focused
 
GuiPaint pressed
 
GuiPaint disabled
 
bool hasFocused
 
bool hasPressed
 
bool hasDisabled
 

Detailed Description

A set of paints, one per state. States left unset fall back to the normal paint. GuiShapeStyle(rest).onFocus(lit).onPress(pressed)

Definition at line 80 of file GuiPaint.h.

Constructor & Destructor Documentation

◆ GuiShapeStyle()

GuiShapeStyle::GuiShapeStyle ( const GuiPaint & normalPaint = GuiPaint())

Definition at line 182 of file GuiPaint.cpp.

Member Function Documentation

◆ forState()

const GuiPaint & GuiShapeStyle::forState ( SHAPE_STATE s) const

Gets the paint for a state, falling back to normal when none was set.

Definition at line 207 of file GuiPaint.cpp.

◆ onDisable()

GuiShapeStyle & GuiShapeStyle::onDisable ( const GuiPaint & p)

Definition at line 200 of file GuiPaint.cpp.

◆ onFocus()

GuiShapeStyle & GuiShapeStyle::onFocus ( const GuiPaint & p)

Definition at line 186 of file GuiPaint.cpp.

◆ onPress()

GuiShapeStyle & GuiShapeStyle::onPress ( const GuiPaint & p)

Definition at line 193 of file GuiPaint.cpp.

Member Data Documentation

◆ disabled

GuiPaint GuiShapeStyle::disabled

Definition at line 84 of file GuiPaint.h.

◆ focused

GuiPaint GuiShapeStyle::focused

Definition at line 82 of file GuiPaint.h.

◆ hasDisabled

bool GuiShapeStyle::hasDisabled

Definition at line 87 of file GuiPaint.h.

◆ hasFocused

bool GuiShapeStyle::hasFocused

Definition at line 85 of file GuiPaint.h.

◆ hasPressed

bool GuiShapeStyle::hasPressed

Definition at line 86 of file GuiPaint.h.

◆ normal

GuiPaint GuiShapeStyle::normal

Definition at line 81 of file GuiPaint.h.

◆ pressed

GuiPaint GuiShapeStyle::pressed

Definition at line 83 of file GuiPaint.h.


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