sptk2 logo
SPTK Home Page

sptk::CCheckButton Class Reference
[GUI Classes]

The check button. More...

#include <CCheckButtons.h>

Inheritance diagram for sptk::CCheckButton:

sptk::CLayoutClient

List of all members.

Public Member Functions

 CCheckButton (const char *label, int layoutSize, CLayoutAlign layoutAlignment)
int handle (int event)
virtual bool preferredSize (int &w, int &h)

Protected Member Functions

virtual void draw ()
 Draws the check button.


Detailed Description

The check button.

Implements the SPTK check button that understands and reports its size requirements, and can be a layout client.


Constructor & Destructor Documentation

sptk::CCheckButton::CCheckButton ( const char *  label,
int  layoutSize,
CLayoutAlign  layoutAlignment 
) [inline]

SPTK-style constructor

Parameters:
label const char *, the widget label
layoutSize int, the size of widget in layout
layoutAlignment CLayoutAlign, widget align in the layout


Member Function Documentation

int sptk::CCheckButton::handle ( int  event  ) 

A special handle method. See FLTK Fl_Widget::handle() for more information.

Parameters:
event int, FLTK event type
Returns:
true if the event was processed

virtual bool sptk::CCheckButton::preferredSize ( int &  w,
int &  h 
) [virtual]

Reports the preferred size of the widget based on offered size.

Parameters:
w int, input/output desirable widget width
h int, input/output desirable widget heigth
Returns:
true if the size is stable (doesn't depend on input sizes)

Reimplemented from sptk::CLayoutClient.


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

Mon Mar 5 11:56:09 2012: SPTK 3.5.7