GUISeparator Class Reference

#include <glwx.h>

Inheritance diagram for GUISeparator:

Inheritance graph
Collaboration diagram for GUISeparator:

Collaboration graph

List of all members.

Public Member Functions

 GUISeparator (int orientation=OR_HORIZONTAL)
virtual bool loadXMLSettings (const TiXmlElement *element)
virtual void checkMouseEvents (MouseEvent &evt, int extraInfo)
virtual void checkKeyboardEvents (KeyEvent &evt, int extraInfo)
virtual void render (float)
virtual const Tuple4i & getWindowBounds ()
virtual const void computeWindowBounds ()
void setOrientation (int orientation)
int getOrientation ()
void setRatio (float ratio)
float getRatio ()

Private Attributes

int orientation
float ratio

Detailed Description

Definition at line 604 of file glwx.h.

Constructor & Destructor Documentation

GUISeparator::GUISeparator ( int  orientation = OR_HORIZONTAL  ) 

Definition at line 3 of file GUISeparator.cpp.

References orientation, setOrientation(), setRatio(), GUIRectangle::widgetType, and WT_SEPARATOR.

Member Function Documentation

bool GUISeparator::loadXMLSettings ( const TiXmlElement *  element  )  [virtual]

Reimplemented from GUIRectangle.

Definition at line 10 of file GUISeparator.cpp.

References ratio, setRatio(), and Logger::writeErrorLog().

Referenced by GUIPanel::loadXMLSettings().

virtual void GUISeparator::checkMouseEvents ( MouseEvent evt,
int  extraInfo 
) [inline, virtual]

Definition at line 609 of file glwx.h.

virtual void GUISeparator::checkKeyboardEvents ( KeyEvent evt,
int  extraInfo 
) [inline, virtual]

Reimplemented from GUIRectangle.

Definition at line 610 of file glwx.h.

void GUISeparator::render ( float  tick  )  [virtual]

Implements GUIRectangle.

Definition at line 39 of file GUISeparator.cpp.

References OR_VERTICAL, orientation, GUIRectangle::parent, and GUIRectangle::windowBounds.

const Tuple4i & GUISeparator::getWindowBounds (  )  [virtual]

Reimplemented from GUIRectangle.

Definition at line 70 of file GUISeparator.cpp.

References GUIRectangle::windowBounds.

void const GUISeparator::computeWindowBounds (  )  [virtual]

Reimplemented from GUIRectangle.

Definition at line 53 of file GUISeparator.cpp.

References GUIRectangle::getHeight(), GUIRectangle::getWidth(), GUIRectangle::getWindowBounds(), OR_HORIZONTAL, orientation, GUIRectangle::parent, GUIRectangle::position, ratio, and GUIRectangle::windowBounds.

void GUISeparator::setOrientation ( int  orientation  ) 

Definition at line 29 of file GUISeparator.cpp.

References OR_HORIZONTAL, OR_VERTICAL, and orientation.

Referenced by GUISeparator(), and GUIPanel::loadXMLSettings().

int GUISeparator::getOrientation (  ) 

Definition at line 34 of file GUISeparator.cpp.

References orientation.

void GUISeparator::setRatio ( float  ratio  ) 

Definition at line 19 of file GUISeparator.cpp.

References ratio.

Referenced by GUISeparator(), and loadXMLSettings().

float GUISeparator::getRatio (  ) 

Definition at line 24 of file GUISeparator.cpp.

References ratio.

Member Data Documentation

int GUISeparator::orientation [private]

Definition at line 622 of file glwx.h.

Referenced by computeWindowBounds(), getOrientation(), GUISeparator(), render(), and setOrientation().

float GUISeparator::ratio [private]

Definition at line 623 of file glwx.h.

Referenced by computeWindowBounds(), getRatio(), loadXMLSettings(), and setRatio().

The documentation for this class was generated from the following files:
Generated on Wed Dec 5 20:32:03 2007 for GLWX by  doxygen 1.5.3