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

Switch panel action listener. More...

Inheritance diagram for Dragengine.Gui.SwitchPanel.SwitchAction:
Dragengine.Gui.Events.ActionListener

Public Member Functions

int getIndex ()
 Index of panel to switch to. More...
 
SwitchPanel getSwitchPanel ()
 Switch panel. More...
 
SwitchAction new (SwitchPanel switchPanel, int index)
 Create listener. More...
 
void onAction (ActionEvent event)
 Run action. More...
 
void setIndex (int index)
 Set index of panel to switch to. More...
 

Detailed Description

Switch panel action listener.

Member Function Documentation

◆ getIndex()

int Dragengine.Gui.SwitchPanel.SwitchAction.getIndex ( )

Index of panel to switch to.

◆ getSwitchPanel()

SwitchPanel Dragengine.Gui.SwitchPanel.SwitchAction.getSwitchPanel ( )

Switch panel.

◆ new()

SwitchAction Dragengine.Gui.SwitchPanel.SwitchAction.new ( SwitchPanel  switchPanel,
int  index 
)

Create listener.

◆ onAction()

void Dragengine.Gui.SwitchPanel.SwitchAction.onAction ( ActionEvent  event)

Run action.

Implements Dragengine.Gui.Events.ActionListener.

◆ setIndex()

void Dragengine.Gui.SwitchPanel.SwitchAction.setIndex ( int  index)

Set index of panel to switch to.


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