Gel2D - The free/open source game creation suite

Public Member Functions
gel::GelGUIButton Class Reference

GUI push button widget. More...

#include <gelGUIWidget.h>

Inheritance diagram for gel::GelGUIButton:
gel::GelGUIWidget gel::GelObject gel::GelTextureObject gel::GelEventReceiver

List of all members.

Public Member Functions

 GelGUIButton ()
 Default GelGUIButton constructor.
void press (bool bpress)
bool isPressed () const
void setSize (const Gel2dVec &size)
void mapRect (const Gel2dVec &pos, const Gel2dVec &size)
void setTexture (GelTexture *tex)
 Sets the widget's texture.
void render ()
 Renders the widget to the screen.

Detailed Description

GUI push button widget.


Constructor & Destructor Documentation

gel::GelGUIButton::GelGUIButton ( )

Default GelGUIButton constructor.


Member Function Documentation

void gel::GelGUIButton::press ( bool  bpress) [inline]
bool gel::GelGUIButton::isPressed ( ) const [inline]
void gel::GelGUIButton::setSize ( const Gel2dVec size)
void gel::GelGUIButton::mapRect ( const Gel2dVec pos,
const Gel2dVec size 
)
void gel::GelGUIButton::setTexture ( GelTexture tex)

Sets the widget's texture.

Parameters:
tex: The widget's new texture.
void gel::GelGUIButton::render ( ) [virtual]

Renders the widget to the screen.

Reimplemented from gel::GelObject.


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