$treeview $search $mathjax
Stratagus  2.2.7
$projectbrief
$projectbrief
$searchbox
-->
         _________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

gcn::ClipRectangle Class Reference

#include <cliprectangle.h>

Inheritance diagram for gcn::ClipRectangle:

gcn::Rectangle

List of all members.


Public Member Functions

 ClipRectangle ()
 ClipRectangle (int x, int y, int width, int height, int xOffset, int yOffset)
const ClipRectangleoperator= (const Rectangle &other)

Public Attributes

int xOffset
int yOffset

Detailed Description

A rectangle used when dealing with clipping. It is a regular Rectangle extended with variables for x offsets and y offsets.

Constructor & Destructor Documentation

gcn::ClipRectangle::ClipRectangle (  ) 

Constructor.

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) .


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.


Member Data Documentation

x-origin of drawing (used by Graphics).

y-origin of drawing (used by Graphics)


The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.