Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

UColor Class Reference

Active Color Property. More...

#include <ucolor.hpp>

Inheritance diagram for UColor:

UProp UBrick UBgcolor List of all members.

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
UColoroperator= (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

UColorucolor (const UColor &c)
UColorucolor (const char *c)
UColorucolor (const UStr &c)
 creator shortcut that is equivalent to: *new UColor().

Detailed Description

Active Color Property.


Constructor & Destructor Documentation

UColor::UColor const UStr color_spec  ) 
 

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)


Member Function Documentation

bool UColor::realize class UDisp  ) 
 

[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.

  • note: the argument can be the UAppli (the Application Context)


The documentation for this class was generated from the following files:
Generated on Fri Mar 4 01:34:32 2005 for Ubit[Eric.Lecolinet@enst.fr] by  doxygen 1.4.1