|
Attributes |
| unsigned int | get_alpha () const |
| | Returns the alpha color component, in the range 0-255.
|
| unsigned int | get_red () const |
| | Returns the red color component, in the range 0-255.
|
| unsigned int | get_green () const |
| | Returns the green color component, in the range 0-255.
|
| unsigned int | get_blue () const |
| | Returns the blue color component, in the range 0-255.
|
| double | get_alpha_d () const |
| | Returns the alpha color component, in the range 0-1.
|
| double | get_red_d () const |
| | Returns the red color component, in the range 0-1.
|
| double | get_green_d () const |
| | Returns the green color component, in the range 0-1.
|
| double | get_blue_d () const |
| | Returns the blue color component, in the range 0-1.
|
| float | get_alpha_f () const |
| | Returns the alpha color component, in the range 0-1.
|
| float | get_red_f () const |
| | Returns the red color component, in the range 0-1.
|
| float | get_green_f () const |
| | Returns the green color component, in the range 0-1.
|
| float | get_blue_f () const |
| | Returns the blue color component, in the range 0-1.
|
| bool | operator== (const CL_Color &c) const |
| | Color == Color operator (deep compare).
|
| bool | operator!= (const CL_Color &c) const |
| | Color != Color operator (deep compare).
|
| unsigned int | color |
| | Color in ARGB8888 format.
|
Operations |
| void | set_alpha (unsigned int value) |
| | Set alpha color component, in the range 0-255.
|
| void | set_red (unsigned int value) |
| | Set red color component, in the range 0-255.
|
| void | set_green (unsigned int value) |
| | Set green color component, in the range 0-255.
|
| void | set_blue (unsigned int value) |
| | Set blue color component, in the range 0-255.
|
| void | set_alpha_d (float value) |
| | Set alpha color component, in the range 0-1.
|
| void | set_red_d (float value) |
| | Set red color component, in the range 0-1.
|
| void | set_green_d (float value) |
| | Set green color component, in the range 0-1.
|
| void | set_blue_d (float value) |
| | Set blue color component, in the range 0-1.
|
| void | set_color (unsigned int red, unsigned int green, unsigned int blue, unsigned int alpha=255) |
| | Set color based on rgba color components in the range 0-255.
|
| void | set_color_d (float red, float green, float blue, float alpha=1.0) |
| | Set color based on rgba color components in the range 0-1.
|
| unsigned int | to_pixelformat (const CL_PixelFormat &pf) const |
| | Converts the color to a given pixel format.
|
| static CL_Color | from_pixelformat (unsigned int raw_color, const CL_PixelFormat &pf) |
| | Converts a raw pixel in a given pixel format to a color.
|
Statics |
| static CL_Color | find_color (const CL_StringRef &name) |
| | Find and returns the static color matching a string.
|
| static std::vector< CL_String8 > & | get_names () |
| | Returns the names of static colors defined.
|
| static CL_Color | aliceblue |
| static CL_Color | antiquewhite |
| static CL_Color | aqua |
| static CL_Color | aquamarine |
| static CL_Color | azure |
| static CL_Color | beige |
| static CL_Color | bisque |
| static CL_Color | black |
| static CL_Color | blanchedalmond |
| static CL_Color | blue |
| static CL_Color | blueviolet |
| static CL_Color | brown |
| static CL_Color | burlywood |
| static CL_Color | cadetblue |
| static CL_Color | chartreuse |
| static CL_Color | chocolate |
| static CL_Color | coral |
| static CL_Color | cornflowerblue |
| static CL_Color | cornsilk |
| static CL_Color | crimson |
| static CL_Color | cyan |
| static CL_Color | darkblue |
| static CL_Color | darkcyan |
| static CL_Color | darkgoldenrod |
| static CL_Color | darkgray |
| static CL_Color | darkgreen |
| static CL_Color | darkgrey |
| static CL_Color | darkkhaki |
| static CL_Color | darkmagenta |
| static CL_Color | darkolivegreen |
| static CL_Color | darkorange |
| static CL_Color | darkorchid |
| static CL_Color | darkred |
| static CL_Color | darksalmon |
| static CL_Color | darkseagreen |
| static CL_Color | darkslateblue |
| static CL_Color | darkslategray |
| static CL_Color | darkslategrey |
| static CL_Color | darkturquoise |
| static CL_Color | darkviolet |
| static CL_Color | deeppink |
| static CL_Color | deepskyblue |
| static CL_Color | dimgray |
| static CL_Color | dimgrey |
| static CL_Color | dodgerblue |
| static CL_Color | firebrick |
| static CL_Color | floralwhite |
| static CL_Color | forestgreen |
| static CL_Color | fuchsia |
| static CL_Color | gainsboro |
| static CL_Color | ghostwhite |
| static CL_Color | gold |
| static CL_Color | goldenrod |
| static CL_Color | gray |
| static CL_Color | grey |
| static CL_Color | green |
| static CL_Color | greenyellow |
| static CL_Color | honeydew |
| static CL_Color | hotpink |
| static CL_Color | indianred |
| static CL_Color | indigo |
| static CL_Color | ivory |
| static CL_Color | khaki |
| static CL_Color | lavender |
| static CL_Color | lavenderblush |
| static CL_Color | lawngreen |
| static CL_Color | lemonchiffon |
| static CL_Color | lightblue |
| static CL_Color | lightcoral |
| static CL_Color | lightcyan |
| static CL_Color | lightgoldenrodyellow |
| static CL_Color | lightgray |
| static CL_Color | lightgreen |
| static CL_Color | lightgrey |
| static CL_Color | lightpink |
| static CL_Color | lightsalmon |
| static CL_Color | lightseagreen |
| static CL_Color | lightskyblue |
| static CL_Color | lightslategray |
| static CL_Color | lightslategrey |
| static CL_Color | lightsteelblue |
| static CL_Color | lightyellow |
| static CL_Color | lime |
| static CL_Color | limegreen |
| static CL_Color | linen |
| static CL_Color | magenta |
| static CL_Color | maroon |
| static CL_Color | mediumaquamarine |
| static CL_Color | mediumblue |
| static CL_Color | mediumorchid |
| static CL_Color | mediumpurple |
| static CL_Color | mediumseagreen |
| static CL_Color | mediumslateblue |
| static CL_Color | mediumspringgreen |
| static CL_Color | mediumturquoise |
| static CL_Color | mediumvioletred |
| static CL_Color | midnightblue |
| static CL_Color | mintcream |
| static CL_Color | mistyrose |
| static CL_Color | moccasin |
| static CL_Color | navajowhite |
| static CL_Color | navy |
| static CL_Color | oldlace |
| static CL_Color | olive |
| static CL_Color | olivedrab |
| static CL_Color | orange |
| static CL_Color | orangered |
| static CL_Color | orchid |
| static CL_Color | palegoldenrod |
| static CL_Color | palegreen |
| static CL_Color | paleturquoise |
| static CL_Color | palevioletred |
| static CL_Color | papayawhip |
| static CL_Color | peachpuff |
| static CL_Color | peru |
| static CL_Color | pink |
| static CL_Color | plum |
| static CL_Color | powderblue |
| static CL_Color | purple |
| static CL_Color | red |
| static CL_Color | rosybrown |
| static CL_Color | royalblue |
| static CL_Color | saddlebrown |
| static CL_Color | salmon |
| static CL_Color | sandybrown |
| static CL_Color | seagreen |
| static CL_Color | seashell |
| static CL_Color | sienna |
| static CL_Color | silver |
| static CL_Color | skyblue |
| static CL_Color | slateblue |
| static CL_Color | slategray |
| static CL_Color | slategrey |
| static CL_Color | snow |
| static CL_Color | springgreen |
| static CL_Color | steelblue |
| static CL_Color | tan |
| static CL_Color | teal |
| static CL_Color | thistle |
| static CL_Color | tomato |
| static CL_Color | turquoise |
| static CL_Color | violet |
| static CL_Color | wheat |
| static CL_Color | white |
| static CL_Color | whitesmoke |
| static CL_Color | yellow |
| static CL_Color | yellowgreen |
| static CL_Color | transparent |
| | rgba(0, 0, 0, 0).
|
| static CL_Color | gray10 |
| static CL_Color | gray20 |
| static CL_Color | gray30 |
| static CL_Color | gray40 |
| static CL_Color | gray50 |
| static CL_Color | gray60 |
| static CL_Color | gray70 |
| static CL_Color | gray80 |
| static CL_Color | gray90 |
Public Member Functions |
|
| | CL_Color () |
| | Constructs a color.
|
| | CL_Color (const CL_Colord &) |
| | CL_Color (const CL_Colorf &) |
| | CL_Color (unsigned int red, unsigned int green, unsigned int blue, unsigned int alpha=255) |
| | Constructs a color.
|
| | CL_Color (const CL_StringRef &hexstr) |
| | Constructs a color.
|