Public Member Functions | Protected Attributes

Control Class Reference

GUI controler. More...

#include <Control.h>

Inheritance diagram for Control:
IControl Button

List of all members.

Public Member Functions

 Control (pIGeometry geometry, pITexture texture)
virtual ~Control (void)
 Destructor.
virtual bool hitTest (int mouseX, int mouseY)
 Test if the mouse is over the controller.
pIGeometry getGeometry ()
 Get the geometry of the controller.
pITexture getTexture ()
 Get the texture of the controller.
wchargetName ()
 Get the controller name.
void setName (wchar *name)
 Set the null-terminated controller name.
int getX ()
 Get the x-coordinate of the controller.
void setX (int x)
 Set the x-coordinate of the controller.
int getY ()
 Get the y-coordinate of the controller.
void setY (int y)
 Set the y-coordinate of the controller.
int getWidth ()
 Get the width of the controller.
void setWidth (int width)
 Set the width of the controller.
int getHeight ()
 Get the height of the controller.
void setHeight (int height)
 Set the height of the controller.
int getIndex ()
 Retrieve Index to calculate UV Coordinates in GUI Texture.
void setIndex (int index)
 Set Index for UV Coordinate Calculation (only neccessary for elements with constantly changing texture).
void setVisible (bool visible)
 Sets the visibility of this control.
bool getVisible ()
 Gets the visible status of this control.

Protected Attributes

wcharm_name
pIGeometry m_geometry
pITexture m_texture
int m_x
int m_y
int m_width
int m_height
int m_index
bool m_visible

Detailed Description

GUI controler.

Definition at line 4 of file Control.h.


Constructor & Destructor Documentation

Control::Control ( pIGeometry  geometry,
pITexture  texture 
)

Create controller with the specified geometry and texture.

Definition at line 5 of file Control.cpp.

Control::~Control ( void   )  [virtual]

Destructor.

Definition at line 13 of file Control.cpp.


Member Function Documentation

pIGeometry Control::getGeometry (  )  [inline, virtual]

Get the geometry of the controller.

Implements IControl.

Definition at line 15 of file Control.h.

int Control::getHeight (  )  [inline, virtual]

Get the height of the controller.

Implements IControl.

Definition at line 27 of file Control.h.

int Control::getIndex (  )  [inline, virtual]

Retrieve Index to calculate UV Coordinates in GUI Texture.

Implements IControl.

Definition at line 29 of file Control.h.

wchar* Control::getName (  )  [inline, virtual]

Get the controller name.

Implements IControl.

Definition at line 18 of file Control.h.

pITexture Control::getTexture (  )  [inline, virtual]

Get the texture of the controller.

Implements IControl.

Definition at line 16 of file Control.h.

bool Control::getVisible (  )  [inline, virtual]

Gets the visible status of this control.

Implements IControl.

Definition at line 32 of file Control.h.

int Control::getWidth (  )  [inline, virtual]

Get the width of the controller.

Implements IControl.

Definition at line 25 of file Control.h.

int Control::getX (  )  [inline, virtual]

Get the x-coordinate of the controller.

Implements IControl.

Definition at line 21 of file Control.h.

int Control::getY (  )  [inline, virtual]

Get the y-coordinate of the controller.

Implements IControl.

Definition at line 23 of file Control.h.

bool Control::hitTest ( int  mouseX,
int  mouseY 
) [virtual]

Test if the mouse is over the controller.

Implements IControl.

Reimplemented in Button.

Definition at line 17 of file Control.cpp.

void Control::setHeight ( int  height  )  [inline, virtual]

Set the height of the controller.

Implements IControl.

Definition at line 28 of file Control.h.

void Control::setIndex ( int  index  )  [inline, virtual]

Set Index for UV Coordinate Calculation (only neccessary for elements with constantly changing texture).

Implements IControl.

Definition at line 30 of file Control.h.

void Control::setName ( wchar name  )  [inline, virtual]

Set the null-terminated controller name.

Implements IControl.

Definition at line 19 of file Control.h.

void Control::setVisible ( bool  visible  )  [inline, virtual]

Sets the visibility of this control.

Implements IControl.

Definition at line 31 of file Control.h.

void Control::setWidth ( int  width  )  [inline, virtual]

Set the width of the controller.

Implements IControl.

Definition at line 26 of file Control.h.

void Control::setX ( int  x  )  [inline, virtual]

Set the x-coordinate of the controller.

Implements IControl.

Definition at line 22 of file Control.h.

void Control::setY ( int  y  )  [inline, virtual]

Set the y-coordinate of the controller.

Implements IControl.

Definition at line 24 of file Control.h.


Member Data Documentation

Definition at line 36 of file Control.h.

int Control::m_height [protected]

Definition at line 40 of file Control.h.

int Control::m_index [protected]

Definition at line 41 of file Control.h.

wchar* Control::m_name [protected]

Definition at line 35 of file Control.h.

Definition at line 37 of file Control.h.

bool Control::m_visible [protected]

Definition at line 42 of file Control.h.

int Control::m_width [protected]

Definition at line 40 of file Control.h.

int Control::m_x [protected]

Definition at line 39 of file Control.h.

int Control::m_y [protected]

Definition at line 39 of file Control.h.


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