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

fgl::FGCheckBox Class Reference

#include <fastgl.h>

Inheritance diagram for fgl::FGCheckBox:

Inheritance graph
[legend]
Collaboration diagram for fgl::FGCheckBox:

Collaboration graph
[legend]
List of all members.

Detailed Description

FGCheckBox represents a check box that can be on (checked) or off (unchecked). It differents from FGRadioButton only visually.

check.png

This button can be grouped into the set of mutually exclussive options to the user - that is, only one radio button in a set can be selected at a time. When the user selects a button, the previously selected button becomes unselected. Buttons are frequently grouped in a button group box (FGButtonGroup). Add the group box to the FGWindow first, then put the buttons into the group box. For example, two buttons on a FGWindow can be checked at the same time only if they are contained in separate containers, such as two different group boxes.

To add this FGControl use FGWindow::AddCheckBox() .


Public Member Functions

 FGCheckBox (int m, int xs, int ys, const char *nm, int key, FGWindow *w, int fg, int bg, ControlCall f, int *var, void *user_data)
 FGCheckBox (int xs, int ys, const char *nm, int key, FGWindow *w, int fg, int bg, ControlCall f, bool *var, void *user_data)
void ChangeItem (int *v)
void ChangeItem (bool *v)
virtual void draw (void)
virtual const int ToInteger () const

Protected Attributes

int mask
int * variable


Member Function Documentation

void fgl::FGCheckBox::draw void   )  [virtual]
 

Draws a FGCheckBox.

Reimplemented from fgl::FGControl.


Generated on Wed Feb 9 11:31:43 2005 for OpenGUI by  doxygen 1.4.0