Drag[en]gine Script Module DragonScript
1.23
|
Toggle model. More...
Public Member Functions | |
void | addListener (ToggleModelListener listener) |
Add listener. More... | |
bool | getToggled () |
Get toggled state. More... | |
DefaultToggleModel | new () |
Create toggle model with false toggled state. More... | |
DefaultToggleModel | new (bool toggled) |
Create toggle model. More... | |
void | removeListener (ToggleModelListener listener) |
Remove listener. More... | |
void | setToggled (bool toggled) |
Set toggled state. More... | |
Toggle model.
Switches between an activated and deactivated state.
void Dragengine.Gui.DefaultToggleModel.addListener | ( | ToggleModelListener | listener | ) |
Add listener.
ENullPointer | listener is null. |
EInvalidParam | listener is present. |
Implements Dragengine.Gui.ToggleModel.
bool Dragengine.Gui.DefaultToggleModel.getToggled | ( | ) |
Get toggled state.
Implements Dragengine.Gui.ToggleModel.
DefaultToggleModel Dragengine.Gui.DefaultToggleModel.new | ( | ) |
Create toggle model with false toggled state.
DefaultToggleModel Dragengine.Gui.DefaultToggleModel.new | ( | bool | toggled | ) |
Create toggle model.
void Dragengine.Gui.DefaultToggleModel.removeListener | ( | ToggleModelListener | listener | ) |
void Dragengine.Gui.DefaultToggleModel.setToggled | ( | bool | toggled | ) |
Set toggled state.
Implements Dragengine.Gui.ToggleModel.
Reimplemented in Dragengine.Gui.OptionGroupModel.