Class engine.HotkeysIconsDisplay

Display of hotkeys with icons

Methods



Methods

engine.HotkeysIconsDisplay:init (actor, x, y, w, h, bgcolor[, fontname="DroidSansMono"][, fontsize=10], icon_w, icon_h)
Init

Parameters:

  • actor Actor
  • x number x coordinate
  • y number y coordinate
  • w number width
  • h number height
  • bgcolor table background color
  • fontname string (default "DroidSansMono")
  • fontsize number (default 10)
  • icon_w number icon width
  • icon_h number icon height
engine.HotkeysIconsDisplay:setColumns (nb)
Sets the display into nb columns

Parameters:

  • nb
engine.HotkeysIconsDisplay:enableShadow (v)
Enable our shadows

Parameters:

  • v
engine.HotkeysIconsDisplay:resize (x, y, w, h, iw, ih)
Resize the display area

Parameters:

  • x number x coordinate
  • y number y coordinate
  • w number width
  • h number height
  • iw number icon width
  • ih number icon height
engine.HotkeysIconsDisplay:toScreen ()
Our toScreen override
engine.HotkeysIconsDisplay:onMouse (button, mx, my, click, on_over, on_click)
Call when a mouse event arrives in this zone
This is optional, only if you need mouse support

Parameters:

  • button string
  • mx number mouse x
  • my number mouse y
  • click boolean did they click
  • on_over function callback for hover
  • on_click function callback for click
generated by LDoc 1.4.3