#include <ucolor.hpp>
Inheritance diagram for ufo::UColorObject:
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 UObject * | clone () const |
Protected Member Functions | |
virtual std::ostream & | paramString (std::ostream &os) const |
|
tries to make a new object with the same internal data. Reimplemented from ufo::UObject.
|
|
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.
Reimplemented from ufo::UObject.
|
|
Prints some useful internal data to the ostream os. This method is meant only for debugging purposes. Reimplemented from ufo::UObject.
|