Drag[en]gine Script Module DragonScript  1.21
Dragengine.Gui.ToggleModel Interface Reference

Toggle model. More...

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

Public Member Functions

void addListener (ToggleModelListener listener)
 Add listener. More...
 
bool getToggled ()
 Get toggled state. 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.ToggleModel.addListener ( ToggleModelListener  listener)

Add listener.

Implemented in Dragengine.Gui.DefaultToggleModel.

◆ getToggled()

bool Dragengine.Gui.ToggleModel.getToggled ( )

Get toggled state.

Implemented in Dragengine.Gui.DefaultToggleModel.

◆ removeListener()

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

Remove listener.

Implemented in Dragengine.Gui.DefaultToggleModel.

◆ setToggled()

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

Set toggled state.

Implemented in Dragengine.Gui.OptionGroupModel, and Dragengine.Gui.DefaultToggleModel.


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