Drag[en]gine Script Module DragonScript  1.21
Dragengine.Gui.Widget.RepeatKeyEventTimer Class Reference

Repeat key event timer. More...

Inheritance diagram for Dragengine.Gui.Widget.RepeatKeyEventTimer:
Dragengine.Utils.Timer

Public Member Functions

void fire ()
 Timer elapsed. More...
 
KeyEvent getEvent ()
 Event to repeat. More...
 
RepeatKeyEventTimer new (Widget widget, KeyEvent event)
 Create time. More...
 
- Public Member Functions inherited from Dragengine.Utils.Timer
void advance (float elapsed)
 Advance timer. More...
 
float getElapsedTime ()
 Elapsed seconds. More...
 
bool getIsPeriodic ()
 Timer is periodic. More...
 
float getRemainingTime ()
 Remaining seconds until timer elapses. More...
 
TimerManager getTimerManager ()
 Timer manager the timer is registered at. More...
 
float getTriggerTime ()
 Seconds until timer elapsed. More...
 
void giveUp ()
 Give up timer if registered with a timer manager. More...
 
bool hasElapsed ()
 Timer elapsed. More...
 
Timer new (float triggerTime, bool periodic)
 Create timer registered at default timer manager. More...
 
Timer new (TimerManager manager, float triggerTime, bool periodic)
 Create timer registered at timer manager. More...
 
void setElapsedTime (float elapsedTime)
 Set elapsed seconds. More...
 
void setIsPeriodic (bool periodic)
 Set if timer is periodic. More...
 
void setTriggerTime (float triggerTime)
 Set seconds until timer elapses. More...
 

Public Attributes

KeyEvent pEvent
 
Widget pWidget
 
- Public Attributes inherited from Dragengine.Utils.Timer
float pElapsedTime
 
bool pIsPeriodic
 
TimerManager pTimerManager
 
float pTriggerTime
 

Detailed Description

Repeat key event timer.

Member Function Documentation

◆ fire()

void Dragengine.Gui.Widget.RepeatKeyEventTimer.fire ( )

Timer elapsed.

Reimplemented from Dragengine.Utils.Timer.

◆ getEvent()

KeyEvent Dragengine.Gui.Widget.RepeatKeyEventTimer.getEvent ( )

Event to repeat.

◆ new()

RepeatKeyEventTimer Dragengine.Gui.Widget.RepeatKeyEventTimer.new ( Widget  widget,
KeyEvent  event 
)

Create time.

Member Data Documentation

◆ pEvent

KeyEvent Dragengine.Gui.Widget.RepeatKeyEventTimer.pEvent

◆ pWidget

Widget Dragengine.Gui.Widget.RepeatKeyEventTimer.pWidget

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