#include <ucolor.hpp>
Inheritance diagram for UColor:
Public Member Functions | |
UColor () | |
creates a new UColor with a defaut value (black). | |
UColor (const UColor &) | |
creates a new UColor that is a copy of another UColor. | |
UColor (const char *color_spec) | |
UColor (const UStr &color_spec) | |
creates a new UColor from an ASCII color spec | |
UColor & | operator= (const UColor &) |
sets color (same as set() but not virtual). | |
virtual void | set (const UColor &) |
virtual void | set (const char *color_spec) |
virtual void | set (const UStr &color_spec) |
changes color (same as operator = but virtual). | |
virtual bool | equals (const UColor &) const |
returns true if colors are identical. | |
const char * | getCharSpec () const |
returns the ASCII color representation (if defined, null otherwise) | |
virtual void | update () |
update parents' graphics. | |
bool | realize (class UDisp *) |
[impl] allocates physical resources | |
Static Public Attributes | |
static UColor | none |
predefined color constants. | |
static UColor | inherit |
predefined color constants. | |
static UColor | white |
predefined color constants. | |
static UColor | black |
predefined color constants. | |
static UColor | grey |
predefined color constants. | |
static UColor | lightgrey |
predefined color constants. | |
static UColor | darkgrey |
predefined color constants. | |
static UColor | navy |
predefined color constants. | |
static UColor | blue |
predefined color constants. | |
static UColor | red |
predefined color constants. | |
static UColor | green |
predefined color constants. | |
static UColor | yellow |
predefined color constants. | |
static UColor | lightyellow |
predefined color constants. | |
static UColor | orange |
predefined color constants. | |
static UColor | wheat |
predefined color constants. | |
static UColor | teal |
predefined color constants. | |
static UColor | disabled |
predefined color constants. | |
Friends | |
UColor & | ucolor (const UColor &c) |
UColor & | ucolor (const char *c) |
UColor & | ucolor (const UStr &c) |
creator shortcut that is equivalent to: *new UColor(). |
|
creates a new UColor from an ASCII color spec this color spec. can be a predefined color name (such as "SteelBlue") or a RGB spec. such as "#rrggbb" (refer to X manual for details) |
|
[impl] allocates physical resources this function is automatically called when this color is used for the first time. There no need to call it in client code except for loading colors in advance.
|