|
TouchVG framework
|
RGB颜色 更多...
#include <gicolor.h>
Public 成员函数 | |
| GiColor () | |
| GiColor (int _r, int _g, int _b, int _a=255) | |
| GiColor (const GiColor &c) | |
| GiColor (int rgb, bool alpha=false) | |
| int | getARGB () const |
| void | setARGB (int value) |
| void | set (int _r, int _g, int _b) |
| void | set (int _r, int _g, int _b, int _a) |
| GiColor | withAlpha (int alpha) const |
| bool | isInvalid () const |
| bool | equals (const GiColor &src) const |
| GiColor & | operator= (const GiColor &src) |
| bool | operator== (const GiColor &src) const |
| bool | operator!= (const GiColor &src) const |
静态 Public 成员函数 | |
| static GiColor | White () |
| static GiColor | Black () |
| static GiColor | Blue () |
| static GiColor | Red () |
| static GiColor | Green () |
| static GiColor | Invalid () |
Public 属性 | |
| unsigned char | r |
| Red component, 0 to 255. 更多... | |
| unsigned char | g |
| Green component, 0 to 255. 更多... | |
| unsigned char | b |
| Blue component, 0 to 255. 更多... | |
| unsigned char | a |
| Alpha component, 0 to 255. 0: transparent, 255: opaque. 更多... | |
RGB颜色