Class Manager

A Manager class (extends Singleton)

Usage:

    m = Manager.getInstance!
    

Methods

manager\new () constructor.
manager\getRoot () getter for the root control.
manager\update (dt) updates the manager.
manager\draw () draws the manager.
manager\mousemoved (x, y, dx, dy) callback function triggered when the mouse is moved.
manager\setFocus (control) focuse on given control.
manager\mousepressed (x, y, button, isTouch) callback function triggered when a mouse button is pressed.
manager\mousereleased (x, y, button, isTouch) callback function triggered when a mouse button is released.
manager\wheelmoved (x, y) callback function triggered when the mouse wheel is moved.
manager\keypressed (key, scancode, isrepeat) callback function triggered when a key is pressed.
manager\keyreleased (key) callback function triggered when a keyboard key is released.
manager\textinput (text) called when text has been entered by the user.
manager\resize (w, h) resize the root control


Methods

manager\new ()
constructor.
manager\getRoot ()
getter for the root control.
manager\update (dt)
updates the manager.

Parameters:

  • dt number
manager\draw ()
draws the manager.
manager\mousemoved (x, y, dx, dy)
callback function triggered when the mouse is moved.

Parameters:

  • x number
  • y number
  • dx number
  • dy number
manager\setFocus (control)
focuse on given control.

Parameters:

manager\mousepressed (x, y, button, isTouch)
callback function triggered when a mouse button is pressed.

Parameters:

  • x number
  • y number
  • button number
  • isTouch boolean
manager\mousereleased (x, y, button, isTouch)
callback function triggered when a mouse button is released.

Parameters:

  • x number
  • y number
  • button number
  • isTouch boolean
manager\wheelmoved (x, y)
callback function triggered when the mouse wheel is moved.

Parameters:

  • x number
  • y number
manager\keypressed (key, scancode, isrepeat)
callback function triggered when a key is pressed.

Parameters:

  • key KeyConstant
  • scancode scancode
  • isrepeat boolean
manager\keyreleased (key)
callback function triggered when a keyboard key is released.

Parameters:

  • key KeyConstant
manager\textinput (text)
called when text has been entered by the user.

Parameters:

manager\resize (w, h)
resize the root control

Parameters:

  • w number
  • h number
generated by LDoc 1.5.0 Last updated 2024-01-14 01:18:20