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

UColor none
 predefined color constants.

UColor inherit
 predefined color constants.

UColor white
 predefined color constants.

UColor black
 predefined color constants.

UColor grey
 predefined color constants.

UColor lightgrey
 predefined color constants.

UColor darkgrey
 predefined color constants.

UColor navy
 predefined color constants.

UColor blue
 predefined color constants.

UColor red
 predefined color constants.

UColor green
 predefined color constants.

UColor yellow
 predefined color constants.

UColor lightyellow
 predefined color constants.

UColor orange
 predefined color constants.

UColor wheat
 predefined color constants.

UColor teal
 predefined color constants.

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 Sat Feb 21 23:28:21 2004 for Ubit[Eric.Lecolinet@enst.fr] by doxygen 1.3.5