Fcitx
Public Member Functions | List of all members
fcitx::Color Class Reference

Color class for handling color. More...

#include <fcitx-utils/color.h>

Public Member Functions

 Color (unsigned short r, unsigned short g, unsigned short b, unsigned short alpha=255)
 
 Color (const char *s)
 
 Color (const std::string &s)
 
 FCITX_INLINE_DEFINE_DEFAULT_DTOR_AND_COPY (Color)
 
std::string toString () const
 Get color string in the format of "#rrggbbaa".
 
bool operator== (const Color &other) const
 
bool operator!= (const Color &other)
 
bool operator!= (const Color &other) const
 
void setFromString (const char *s)
 
void setFromString (const std::string &s)
 
void setRed (unsigned short)
 
void setGreen (unsigned short)
 
void setBlue (unsigned short)
 
void setAlpha (unsigned short)
 
void setRedF (float)
 
void setGreenF (float)
 
void setBlueF (float)
 
void setAlphaF (float)
 
unsigned short red () const
 
unsigned short green () const
 
unsigned short blue () const
 
unsigned short alpha () const
 
float redF () const
 
float greenF () const
 
float blueF () const
 
float alphaF () const
 

Detailed Description

Color class for handling color.

Definition at line 28 of file color.h.


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