|
TGUI
0.7.8
|
Implicit converter for colors. More...
#include <TGUI/Color.hpp>
Public Member Functions | |
| Color (const sf::Color &color) | |
| Create the object from an sf::Color. More... | |
| Color (sf::Uint8 red, sf::Uint8 green, sf::Uint8 blue, sf::Uint8 alpha=255) | |
| Create the object from an the RGB or RGBA values. More... | |
| Color (const char *string) | |
| Create the object from a string. More... | |
| Color (const std::string &string) | |
| Create the object from a string. More... | |
| operator sf::Color () const | |
| Convert this object into an sf::Color object. More... | |
Implicit converter for colors.
| tgui::Color::Color | ( | const sf::Color & | color | ) |
Create the object from an sf::Color.
| color | Color to copy |
| tgui::Color::Color | ( | sf::Uint8 | red, |
| sf::Uint8 | green, | ||
| sf::Uint8 | blue, | ||
| sf::Uint8 | alpha = 255 |
||
| ) |
Create the object from an the RGB or RGBA values.
| red | Red component |
| green | Green component |
| blue | Blue component |
| alpha | Alpha component |
| tgui::Color::Color | ( | const char * | string | ) |
Create the object from a string.
| string | String to be deserialized as color |
The Deserializer class is used to convert the string into a color.
| tgui::Color::Color | ( | const std::string & | string | ) |
Create the object from a string.
| string | String to be deserialized as color |
The Deserializer class is used to convert the string into a color.
| tgui::Color::operator sf::Color | ( | ) | const |
Convert this object into an sf::Color object.