29#include <TGUI/Config.hpp> 
   30#include <SFML/Graphics/Color.hpp> 
   31#include <SFML/System/String.hpp> 
   94        Color(std::uint8_t red, std::uint8_t green, std::uint8_t blue, std::uint8_t alpha = 255) :
 
   96            m_color{red, green, blue, alpha}
 
  144        operator sf::Color() 
const;
 
  216        static const std::map<std::string, Color> colorMap;
 
Wrapper for colors.
Definition: Color.hpp:49
 
std::uint8_t getGreen() const
Returns the green component of the color.
 
static const Color White
White predefined color.
Definition: Color.hpp:207
 
std::uint8_t getAlpha() const
Returns the alpha component of the color.
 
static const Color Cyan
Cyan predefined color.
Definition: Color.hpp:213
 
static const Color Red
Red predefined color.
Definition: Color.hpp:208
 
bool operator!=(const Color &right) const
Compares the color with another one.
 
Color(const std::string &string)
Creates the object from a string.
 
std::uint8_t getRed() const
Returns the red component of the color.
 
std::uint8_t getBlue() const
Returns the blue component of the color.
 
bool operator!=(const sf::Color &right) const
Compares the color with another one.
 
Color()
Creates the object without a color.
Definition: Color.hpp:68
 
static const Color Black
Black predefined color.
Definition: Color.hpp:206
 
static const Color Magenta
Magenta predefined color.
Definition: Color.hpp:212
 
Color(const sf::String &string)
Creates the object from a string.
 
bool operator==(const Color &right) const
Compares the color with another one.
 
Color(const sf::Color &color)
Creates the object from an sf::Color.
Definition: Color.hpp:79
 
bool isSet() const
Checks if a color was set.
 
Color(const char *string)
Creates the object from a string.
 
static const Color Transparent
Transparent (black) predefined color.
Definition: Color.hpp:214
 
Color(std::uint8_t red, std::uint8_t green, std::uint8_t blue, std::uint8_t alpha=255)
Creates the object from an the RGB or RGBA values.
Definition: Color.hpp:94
 
static const Color Yellow
Yellow predefined color.
Definition: Color.hpp:211
 
static const Color Blue
Blue predefined color.
Definition: Color.hpp:210
 
static Color calcColorOpacity(const Color &color, float alpha)
Returns the color with its alpha channel multiplied with the alpha parameter.
Definition: Color.hpp:55
 
static const Color Green
Green predefined color.
Definition: Color.hpp:209
 
bool operator==(const sf::Color &right) const
Compares the color with another one.
 
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:37