GUI check box widget.
More...
#include <gelGUIWidget.h>
List of all members.
Detailed Description
Constructor & Destructor Documentation
gel::GelGUICheckBox::GelGUICheckBox |
( |
| ) |
|
Member Function Documentation
void gel::GelGUICheckBox::check |
( |
| ) |
|
Checks/unchecks the checkbox.
This function reverses the checkbox's state. If it is checked, then it will be unchecked and vice versa.
If the checkbox is set to tristate, this function will increment the checkbox's state.
void gel::GelGUICheckBox::check |
( |
bool |
bcheck | ) |
|
Checks the checkbox.
- Parameters:
-
bcheck | : Use true to check the checkbox, and false to uncheck it. |
bool gel::GelGUICheckBox::isChecked |
( |
| ) |
const |
Gets the state of the checkbox.
- Returns:
- True if the checkbox is checked, else false.
void gel::GelGUICheckBox::setCheckState |
( |
int |
state | ) |
[inline] |
Sets the state of the checkbox.
- Parameters:
-
state | : The state to set the checkbox to. |
int gel::GelGUICheckBox::getCheckState |
( |
| ) |
const [inline] |
Sets the state of the checkbox.
Use this function instead of isChecked() if tristate is enabled.
- Returns:
- The state of the checkbox.
void gel::GelGUICheckBox::setTristate |
( |
bool |
state | ) |
|
Enables/disables tristate support.
Tristate enables a third checkbox state, allowing the widget to be only partially checked. This is often used in hierarchical models.
Tristate is disabled by default.
- Parameters:
-
state | : Use true to enable tristate, or false to disable it. |
bool gel::GelGUICheckBox::isTristate |
( |
| ) |
const [inline] |
Checks whether tristate is enabled.
- Returns:
- True if tristate is enabled, else false.
void gel::GelGUICheckBox::setLabel |
( |
const GelString & |
string | ) |
[inline] |
void gel::GelGUICheckBox::setSize |
( |
const Gel2dVec & |
size | ) |
|
void gel::GelGUICheckBox::mapRect |
( |
const Gel2dVec & |
pos, |
|
|
const Gel2dVec & |
size |
|
) |
| |
void gel::GelGUICheckBox::setTexture |
( |
GelTexture * |
tex | ) |
|
Sets the widget's texture.
- Parameters:
-
tex | : The widget's new texture. |
void gel::GelGUICheckBox::update |
( |
| ) |
|
void gel::GelGUICheckBox::render |
( |
| ) |
[virtual] |
The documentation for this class was generated from the following file: