Main Page   Packages   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals  

clawsoft.Rect Class Reference

#include <Rect.h>

Inheritance diagram for clawsoft.Rect:

Inheritance graph
[legend]
Collaboration diagram for clawsoft.Rect:

Collaboration graph
[legend]

Detailed Description

This class is used to define rectangular areas.

Definition at line 12 of file Rect.h.

Public Methods

 Rect ()
 Rect (int xx, int yy, int ww, int hh)
 Rect (Rect &r)
void X (int)
void Y (int)
void W (int)
void H (int)
const int X ()
const int Y ()
const int W ()
const int H ()
void setTop (int)
const int getTop ()
void setLeft (int)
const int getLeft ()
void setRight (int)
const int getRight ()
void setBottom (int)
const int getBottom ()

Protected Attributes

int x
int y
int w
int h
int _b
int _r


Constructor & Destructor Documentation

clawsoft.Rect::Rect  
 

Definition at line 7 of file Rect.cpp.

References clawsoft.Rect._b, clawsoft.Rect._r, clawsoft.Rect.h, clawsoft.Rect.w, clawsoft.Rect.x, and clawsoft.Rect.y.

Referenced by TestButton.TestButton().

clawsoft.Rect::Rect int    xx,
int    yy,
int    ww,
int    hh
 

Definition at line 17 of file Rect.cpp.

References clawsoft.Rect.h, clawsoft.Rect.w, clawsoft.Rect.x, and clawsoft.Rect.y.

clawsoft.Rect::Rect Rect &    r
 

Definition at line 25 of file Rect.cpp.

References clawsoft.Rect.h, clawsoft.Rect.H(), clawsoft.Rect.w, clawsoft.Rect.W(), clawsoft.Rect.x, and clawsoft.Rect.y.


Member Function Documentation

const int clawsoft.Rect::getBottom  
 

Definition at line 101 of file Rect.cpp.

References clawsoft.Rect._b.

Referenced by clawsoft.Window.draw(), clawsoft.TextBox.drawBorder(), clawsoft.MouseEvent.inFocus(), and clawsoft.Dialog.map().

const int clawsoft.Rect::getLeft  
 

Definition at line 93 of file Rect.cpp.

References clawsoft.Rect.x.

Referenced by clawsoft.MouseEvent.inFocus().

const int clawsoft.Rect::getRight  
 

Definition at line 97 of file Rect.cpp.

References clawsoft.Rect._r.

Referenced by clawsoft.Window.draw(), clawsoft.TextButton.draw(), clawsoft.TextBox.drawBorder(), clawsoft.MouseEvent.inFocus(), clawsoft.Window.map(), and clawsoft.Dialog.map().

const int clawsoft.Rect::getTop  
 

Definition at line 89 of file Rect.cpp.

References clawsoft.Rect.y.

Referenced by clawsoft.MouseEvent.inFocus().

const int clawsoft.Rect::H  
 

Definition at line 65 of file Rect.cpp.

References clawsoft.Rect.h.

Referenced by clawsoft.Window.checkMouseMotionEvents(), clawsoft.TextButton.draw(), clawsoft.TextBox.draw(), clawsoft.BaseButton.draw(), clawsoft.TextField.drawBorder(), clawsoft.GameSelector.GameSelector(), clawsoft.LoginDialog.LoginDialog(), clawsoft.Window.map(), clawsoft.TextField.map(), clawsoft.TextButton.map(), clawsoft.GameSelector.map(), clawsoft.Rect.Rect(), and clawsoft.TextButton.TextButton().

void clawsoft.Rect::H int   
 

Definition at line 48 of file Rect.cpp.

References clawsoft.Rect._b, clawsoft.Rect.h, and clawsoft.Rect.y.

Referenced by clawsoft.Window.draw(), clawsoft.TextButton.draw(), clawsoft.Window.map(), and clawsoft.GameSelector.map().

void clawsoft.Rect::setBottom int   
 

Definition at line 84 of file Rect.cpp.

References clawsoft.Rect._b, clawsoft.Rect.h, and clawsoft.Rect.y.

void clawsoft.Rect::setLeft int   
 

Definition at line 74 of file Rect.cpp.

References clawsoft.Rect._r, clawsoft.Rect.w, and clawsoft.Rect.x.

void clawsoft.Rect::setRight int   
 

Definition at line 79 of file Rect.cpp.

References clawsoft.Rect._r, clawsoft.Rect.w, and clawsoft.Rect.x.

void clawsoft.Rect::setTop int   
 

Definition at line 69 of file Rect.cpp.

References clawsoft.Rect._b, clawsoft.Rect.h, and clawsoft.Rect.y.

const int clawsoft.Rect::W  
 

Definition at line 61 of file Rect.cpp.

References clawsoft.Rect.w.

Referenced by clawsoft.Window.checkMouseMotionEvents(), clawsoft.TextButton.draw(), clawsoft.TextBox.draw(), clawsoft.BaseButton.draw(), clawsoft.TextField.drawBorder(), clawsoft.GameSelector.GameSelector(), clawsoft.LoginDialog.LoginDialog(), clawsoft.Window.map(), clawsoft.TextButton.map(), clawsoft.GameSelector.map(), clawsoft.Rect.Rect(), and clawsoft.TextButton.TextButton().

void clawsoft.Rect::W int   
 

Definition at line 43 of file Rect.cpp.

References clawsoft.Rect._r, clawsoft.Rect.w, and clawsoft.Rect.x.

Referenced by clawsoft._center(), clawsoft.Window.checkMouseMotionEvents(), clawsoft.Window.draw(), clawsoft.TextButton.draw(), clawsoft.Window.map(), clawsoft.GameSelector.map(), and clawsoft.Dialog.map().

const int clawsoft.Rect::X  
 

Definition at line 53 of file Rect.cpp.

References clawsoft.Rect.x.

Referenced by clawsoft.Window.checkMouseMotionEvents(), clawsoft.Window.draw(), clawsoft.TextButton.draw(), clawsoft.TextBox.draw(), clawsoft.BaseButton.draw(), clawsoft.TextField.drawBorder(), clawsoft.TextBox.drawBorder(), clawsoft.LoginDialog.drawContents(), clawsoft.GameSelector.GameSelector(), clawsoft.LoginDialog.LoginDialog(), clawsoft.Window.map(), clawsoft.LoginDialog.map(), clawsoft.GameSelector.map(), and clawsoft.Window.move().

void clawsoft.Rect::X int   
 

Definition at line 33 of file Rect.cpp.

References clawsoft.Rect._r, clawsoft.Rect.w, and clawsoft.Rect.x.

Referenced by clawsoft._center(), clawsoft.Window.draw(), clawsoft.TextButton.draw(), clawsoft.Window.map(), clawsoft.LoginDialog.map(), and clawsoft.Dialog.map().

const int clawsoft.Rect::Y  
 

Definition at line 57 of file Rect.cpp.

References clawsoft.Rect.y.

Referenced by clawsoft.Window.checkMouseMotionEvents(), clawsoft.Window.draw(), clawsoft.TextButton.draw(), clawsoft.TextBox.draw(), clawsoft.BaseButton.draw(), clawsoft.TextField.drawBorder(), clawsoft.TextBox.drawBorder(), clawsoft.LoginDialog.drawContents(), clawsoft.GameSelector.GameSelector(), clawsoft.LoginDialog.LoginDialog(), clawsoft.Window.map(), clawsoft.LoginDialog.map(), and clawsoft.Window.move().

void clawsoft.Rect::Y int   
 

Definition at line 38 of file Rect.cpp.

References clawsoft.Rect._b, clawsoft.Rect.h, and clawsoft.Rect.y.

Referenced by clawsoft.Window.draw(), clawsoft.TextButton.draw(), clawsoft.Window.map(), clawsoft.LoginDialog.map(), clawsoft.GameSelector.map(), and clawsoft.Dialog.map().


Field Documentation

int clawsoft.Rect._b [protected]
 

Definition at line 18 of file Rect.h.

Referenced by clawsoft.Rect.getBottom(), clawsoft.Rect.H(), clawsoft.Rect.Rect(), clawsoft.Rect.setBottom(), clawsoft.Rect.setTop(), and clawsoft.Rect.Y().

int clawsoft.Rect._r [protected]
 

Definition at line 19 of file Rect.h.

Referenced by clawsoft.Rect.getRight(), clawsoft.Rect.Rect(), clawsoft.Rect.setLeft(), clawsoft.Rect.setRight(), clawsoft.Rect.W(), and clawsoft.Rect.X().

int clawsoft.Rect.h [protected]
 

Definition at line 17 of file Rect.h.

Referenced by clawsoft.Rect.H(), clawsoft.Window.map(), clawsoft.Rect.Rect(), clawsoft.Rect.setBottom(), clawsoft.Rect.setTop(), and clawsoft.Rect.Y().

int clawsoft.Rect.w [protected]
 

Definition at line 16 of file Rect.h.

Referenced by clawsoft.Window.map(), clawsoft.GameSelector.map(), clawsoft.Rect.Rect(), clawsoft.Rect.setLeft(), clawsoft.Rect.setRight(), clawsoft.Rect.W(), and clawsoft.Rect.X().

int clawsoft.Rect.x [protected]
 

Definition at line 14 of file Rect.h.

Referenced by clawsoft.Rect.getLeft(), clawsoft.Window.move(), clawsoft.Rect.Rect(), clawsoft.Rect.setLeft(), clawsoft.Rect.setRight(), clawsoft.Rect.W(), and clawsoft.Rect.X().

int clawsoft.Rect.y [protected]
 

Definition at line 15 of file Rect.h.

Referenced by clawsoft.Rect.getTop(), clawsoft.Rect.H(), clawsoft.Window.move(), clawsoft.Rect.Rect(), clawsoft.Rect.setBottom(), clawsoft.Rect.setTop(), and clawsoft.Rect.Y().


The documentation for this class was generated from the following files:

Powered by:

SourceForge Logo