Drag[en]gine Script Module DragonScript  1.23
Dragengine.Gui.DefaultToggleModel Class Reference

Toggle model. More...

Inheritance diagram for Dragengine.Gui.DefaultToggleModel:
Dragengine.Gui.ToggleModel Dragengine.Gui.OptionGroupModel Dragengine.Gui.TogglePresentModel

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...
 

Detailed Description

Toggle model.

Switches between an activated and deactivated state.

Member Function Documentation

◆ addListener()

void Dragengine.Gui.DefaultToggleModel.addListener ( ToggleModelListener  listener)

Add listener.

Exceptions
ENullPointerlistener is null.
EInvalidParamlistener is present.

Implements Dragengine.Gui.ToggleModel.

◆ getToggled()

bool Dragengine.Gui.DefaultToggleModel.getToggled ( )

Get toggled state.

Implements Dragengine.Gui.ToggleModel.

◆ new() [1/2]

DefaultToggleModel Dragengine.Gui.DefaultToggleModel.new ( )

Create toggle model with false toggled state.

◆ new() [2/2]

DefaultToggleModel Dragengine.Gui.DefaultToggleModel.new ( bool  toggled)

Create toggle model.

◆ removeListener()

void Dragengine.Gui.DefaultToggleModel.removeListener ( ToggleModelListener  listener)

Remove listener.

Exceptions
EInvalidParamlistener is absent.

Implements Dragengine.Gui.ToggleModel.

◆ setToggled()

void Dragengine.Gui.DefaultToggleModel.setToggled ( bool  toggled)

Set toggled state.

Implements Dragengine.Gui.ToggleModel.

Reimplemented in Dragengine.Gui.OptionGroupModel.


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