- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::UButtonGroup Class Reference

Provides a container for organizing selection states of toggable button widgets. More...

#include <ubuttongroup.hpp>

Inheritance diagram for ufo::UButtonGroup:

ufo::UObject ufo::UCollectable List of all members.

Public Member Functions

void addButton (UButton *button)
void removeButton (UButton *button)
void setSelectedButton (UButton *button, bool selected)
UButtongetSelectedButton () const

Detailed Description

Provides a container for organizing selection states of toggable button widgets.

A button group is usually used for an exclusive selection of certain buttons, e.g. radio buttons. It is not a visible container for the buttons.

If one button within the button group is selected, all other buttons are deselected.

See also:
URadioButton
Author:
Johannes Schmidt


Member Function Documentation

void ufo::UButtonGroup::addButton UButton button  ) 
 

Adds a new button to the group.

void ufo::UButtonGroup::removeButton UButton button  ) 
 

Removes the given button from the group.

void ufo::UButtonGroup::setSelectedButton UButton button,
bool  selected
 

Select the given button and deselect all other buttons.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt