Drag[en]gine Script Module DragonScript 1.23
Loading...
Searching...
No Matches
Dragengine.Gui.RepeatActionTimer Class Reference

Timer repeating an action. More...

Inheritance diagram for Dragengine.Gui.RepeatActionTimer:

Public Member Functions

void fire ()
 Timer elapsed.
 
ActionListener getAction ()
 Action to repeat.
 
int getModifiers ()
 Modifiers for sending event.
 
float getRepeatDelay ()
 Repeat delay in seconds.
 
Object getSource ()
 Source sending event.
 
RepeatActionTimer new (ActionListener action, Object source, int modifiers)
 Create repeat action timer with 0.5s initial delay and 0.05 repeat delay.
 
RepeatActionTimer new (ActionListener action, Object source, int modifiers, float initialDelay, float repeatDelay)
 Create repeat action timer.
 
void sendEvent ()
 Send event.
 
void setAction (ActionListener action)
 Set action to repeat.
 
void setModifiers (int modifiers)
 Set modifiers for sending event.
 
void setRepeatDelay (float delay)
 Set repeat delay in seconds.
 
void setSource (Object source)
 Set source sending event.
 

Detailed Description

Timer repeating an action.

Member Function Documentation

◆ fire()

void Dragengine.Gui.RepeatActionTimer.fire ( )

Timer elapsed.

◆ getAction()

ActionListener Dragengine.Gui.RepeatActionTimer.getAction ( )

Action to repeat.

◆ getModifiers()

int Dragengine.Gui.RepeatActionTimer.getModifiers ( )

Modifiers for sending event.

◆ getRepeatDelay()

float Dragengine.Gui.RepeatActionTimer.getRepeatDelay ( )

Repeat delay in seconds.

◆ getSource()

Object Dragengine.Gui.RepeatActionTimer.getSource ( )

Source sending event.

◆ new() [1/2]

RepeatActionTimer Dragengine.Gui.RepeatActionTimer.new ( ActionListener  action,
Object  source,
int  modifiers 
)

Create repeat action timer with 0.5s initial delay and 0.05 repeat delay.

Parameters
actionAction to repeat.
sourceSource sending the action.
modifiersModifiers for sending event.

◆ new() [2/2]

RepeatActionTimer Dragengine.Gui.RepeatActionTimer.new ( ActionListener  action,
Object  source,
int  modifiers,
float  initialDelay,
float  repeatDelay 
)

Create repeat action timer.

Parameters
actionAction to repeat.
sourceSource sending the action.
modifiersModifiers for sending event.
initialDelayDelay before repeating actions in seconds.
repeatDelayDelay between repeated actions in seconds.

◆ sendEvent()

void Dragengine.Gui.RepeatActionTimer.sendEvent ( )

Send event.

◆ setAction()

void Dragengine.Gui.RepeatActionTimer.setAction ( ActionListener  action)

Set action to repeat.

◆ setModifiers()

void Dragengine.Gui.RepeatActionTimer.setModifiers ( int  modifiers)

Set modifiers for sending event.

◆ setRepeatDelay()

void Dragengine.Gui.RepeatActionTimer.setRepeatDelay ( float  delay)

Set repeat delay in seconds.

◆ setSource()

void Dragengine.Gui.RepeatActionTimer.setSource ( Object  source)

Set source sending event.


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