- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::UColorObject Class Reference

#include <ucolor.hpp>

Inheritance diagram for ufo::UColorObject:

ufo::UColor ufo::UObject ufo::UCollectable List of all members.

Public Member Functions

 UColorObject (const std::string &colorString)
 UColorObject (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)
 UColorObject (const uint8_t rgba[], bool hasAlpha=false)
 UColorObject (int r, int g, int b, int a=255)
 UColorObject (const int rgba[], bool hasAlpha=false)
 UColorObject (float r, float g, float b, float a=1.0f)
 UColorObject (const float rgba[], bool hasAlpha=false)
 UColorObject (double r, double g, double b, double a=1.0)
 UColorObject (const double rgba[], bool hasAlpha=false)
virtual unsigned int hashCode () const
virtual bool equals (const UObject *obj)
virtual bool equals (const UColorObject *obj)
virtual UObjectclone () const

Protected Member Functions

virtual std::ostream & paramString (std::ostream &os) const

Detailed Description

A color class derived from UObject and UColor. It implements the missing UObject methods and borrows all important methods from UColor .
Author:
Johannes Schmidt


Member Function Documentation

virtual UObject* ufo::UColorObject::clone  )  const [virtual]
 

tries to make a new object with the same internal data.

Reimplemented from ufo::UObject.

virtual unsigned int ufo::UColorObject::hashCode  )  const [virtual]
 

returns a std::size_t which is used when UObject pointers are the keys for UHashMap. If equals(UObject*) returns true, these two objects should return the same hash code. If these objects are different, the hash code may be equal.

Returns:
a hash code.

Reimplemented from ufo::UObject.

virtual std::ostream& ufo::UColorObject::paramString std::ostream &  os  )  const [protected, virtual]
 

Prints some useful internal data to the ostream os. This method is meant only for debugging purposes.

Reimplemented from ufo::UObject.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt