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

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
Examples:

dblbuffer.cpp, and paratest.cpp.


Public Member Functions

 PG_CheckButton (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, const char *text=NULL, int id=-1, const char *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 char *  text = NULL,
int  id = -1,
const char *  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.



The ParaGUI Project - Alexander Pipelka