Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PG_CheckButton Class Reference

Inheritance diagram for PG_CheckButton:

Inheritance graph
[legend]
Collaboration diagram for PG_CheckButton:

Collaboration graph
[legend]
List of all members.

Detailed Description

A single check button.

Author:
Alexander Pipelka
pgcheckbutton.png

pgcheckbutton screenshot


Public Member Functions

 PG_CheckButton (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, const std::string &text=PG_NULLSTR, int id=-1, const std::string &style="CheckButton")
 construct a PG_CheckButton object
 ~PG_CheckButton ()
void SetUnpressed ()
 Set the state of the checkbutton to unpressed.

Protected Member Functions

bool eventMouseButtonUp (const SDL_MouseButtonEvent *button)
 Overridable Eventhandler for a SDL_MouseButtonEvent message.


Constructor & Destructor Documentation

PG_CheckButton::PG_CheckButton PG_Widget parent,
const PG_Rect r = PG_Rect::null,
const std::string &  text = PG_NULLSTR,
int  id = -1,
const std::string &  style = "CheckButton"
 

construct a PG_CheckButton object

Parameters:
parent Pointer to the parent widget of NULL
id id of the checkbutton (can be 0 if you don't need a unique id)
r position of the checkbutton
text inital text of the chekbutton
style widget style (loaded from theme) to use

PG_CheckButton::~PG_CheckButton  ) 
 


Member Function Documentation

bool PG_CheckButton::eventMouseButtonUp const SDL_MouseButtonEvent *  button  )  [protected, virtual]
 

Overridable Eventhandler for a SDL_MouseButtonEvent message.

This handler is called when a mouse button is released. The default implementation returns 'false' which indicates that this message is not processed by this object.

Parameters:
button SDL_MouseButtonEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from PG_RadioButton.

void PG_CheckButton::SetUnpressed  ) 
 

Set the state of the checkbutton to unpressed.


Generated on Tue Jun 24 02:25:29 2008 for ParaGUI by  doxygen 1.4.2