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

Rectangle2D Class Reference
[2D]

#include <lvt/2d.h>

Inheritance diagram for Rectangle2D:

Inheritance graph
[legend]
List of all members.

Detailed Description

A two-dimensional rectangle.


Public Member Functions

int GetHeight () const
 Returns the rectangle's height.
int GetWidth () const
 Returns the rectangle's width.
virtual void Render ()
 Renders the object.
void SetHeight (int h)
 Sets the rectangle's height.
void SetSize (int w, int h)
 Sets the size and and shape of the rectangle.
void SetWidth (int w)
 Sets the rectangle's width.


Member Function Documentation

int GetHeight  )  const [inline]
 

Returns the rectangle's height.

int GetWidth  )  const [inline]
 

Returns the rectangle's width.

virtual void Render  )  [virtual]
 

Renders the object.

A call to render on a 2D object also flushes the OpenGL output buffer.

Implements Shape2D.

void SetHeight int  h  )  [inline]
 

Sets the rectangle's height.

void SetSize int  w,
int  h
[inline]
 

Sets the size and and shape of the rectangle.

Parameters:
w New width of the rectangle.
h New height of the rectangle.

void SetWidth int  w  )  [inline]
 

Sets the rectangle's width.


Generated on Thu Feb 17 09:45:47 2005 for liblvt by  doxygen 1.4.1