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

ufo::URectangleObject Class Reference

#include <urectangle.hpp>

Inheritance diagram for ufo::URectangleObject:

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

Public Member Functions

 URectangleObject (const URectangle &rect)
 URectangleObject (int x, int y, int w, int h)
 URectangleObject (const UPoint &p, const UDimension &d)
 URectangleObject (const UPoint &p1, const UPoint &p2)
virtual unsigned int hashCode () const
virtual bool equals (const UObject *obj)
virtual bool equals (const URectangle *obj)
virtual UObjectclone () const

Protected Member Functions

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

Detailed Description

wrapper class for URectangle derived from UObject
Author:
Johannes Schmidt


Constructor & Destructor Documentation

ufo::URectangleObject::URectangleObject const UPoint p1,
const UPoint p2
[inline]
 

Computes a rectangle between two points.


Member Function Documentation

UObject * ufo::URectangleObject::clone  )  const [inline, virtual]
 

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

Reimplemented from ufo::UObject.

unsigned int ufo::URectangleObject::hashCode  )  const [inline, 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.

std::ostream & ufo::URectangleObject::paramString std::ostream &  os  )  const [inline, 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