gcn::ClipRectangle Class Reference

#include <cliprectangle.hpp>

Inheritance diagram for gcn::ClipRectangle:

gcn::Rectangle List of all members.

Detailed Description

A rectangle used when dealing with clipping.

It is a regular Rectangle extended with variables for x offsets and y offsets.

Definition at line 69 of file cliprectangle.hpp.

Public Member Functions

 ClipRectangle ()
 Constructor.
 ClipRectangle (int x, int y, int width, int height, int xOffset, int yOffset)
 Constructor.
const ClipRectangleoperator= (const Rectangle &other)
 Copies x, y, width and height field from a Rectangle.

Public Attributes

int xOffset
 x-origin of drawing (used by Graphics).
int yOffset
 y-origin of drawing (used by Graphics).


Constructor & Destructor Documentation

gcn::ClipRectangle::ClipRectangle ( int  x,
int  y,
int  width,
int  height,
int  xOffset,
int  yOffset 
)

Constructor.

Parameters:
x the rectangle x coordinate.
y the rectangle y coordinate.
width the rectangle width.
height the rectangle height.
xOffset origin of drawing (used by Graphics).
yOffset origin of drawing (used by Graphics) .

Definition at line 70 of file cliprectangle.cpp.


Member Function Documentation

const ClipRectangle & gcn::ClipRectangle::operator= ( const Rectangle other  ) 

Copies x, y, width and height field from a Rectangle.

Parameters:
other the Rectangle to copy from.
Returns:
a ClipRectangle.

Definition at line 80 of file cliprectangle.cpp.

References gcn::Rectangle::height, gcn::Rectangle::width, gcn::Rectangle::x, and gcn::Rectangle::y.


The documentation for this class was generated from the following files:
Generated on Sat Jul 29 19:38:48 2006 for Guichan by  doxygen 1.4.7