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

Label widget. More...

#include <label.h>

Inheritance diagram for Label:

Public Member Functions

 Label ()
 
 Label (const std::string &caption)
 Constructor.
 
void setOutlineColor (std::optional< gcn::Color > color)
 Sets the color of the outline.
 
void setShadowColor (std::optional< gcn::Color > color)
 Sets the color of the shadow.
 
void draw (gcn::Graphics *graphics) override
 Draws the label.
 

Private Attributes

std::optional< gcn::Color > mOutlineColor
 
std::optional< gcn::Color > mShadowColor
 

Detailed Description

Label widget.

Same as the Guichan label but modified to use the palette system and support outlines and shadows.

Definition at line 33 of file label.h.

Constructor & Destructor Documentation

◆ Label() [1/2]

Label::Label ( )

Definition at line 29 of file label.cpp.

◆ Label() [2/2]

Label::Label ( const std::string &  caption)

Constructor.

This version of the constructor sets the label with an inintialization string.

Definition at line 34 of file label.cpp.

Member Function Documentation

◆ draw()

void Label::draw ( gcn::Graphics *  graphics)
override

Draws the label.

Definition at line 40 of file label.cpp.

◆ setOutlineColor()

void Label::setOutlineColor ( std::optional< gcn::Color >  color)
inline

Sets the color of the outline.

Definition at line 64 of file label.h.

◆ setShadowColor()

void Label::setShadowColor ( std::optional< gcn::Color >  color)
inline

Sets the color of the shadow.

Definition at line 69 of file label.h.

Member Data Documentation

◆ mOutlineColor

std::optional<gcn::Color> Label::mOutlineColor
private

Definition at line 60 of file label.h.

◆ mShadowColor

std::optional<gcn::Color> Label::mShadowColor
private

Definition at line 61 of file label.h.


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