Module component.Control
Functions
Control:acceptsFirstResponder () | Returns whether the button can be focused upon. |
Control:init (frame, cell) | Initializes the Control object. |
Control:load (lib) | Loads the Control class, automatically called when it's required by LoveUI |
Control:mouseDown (theEvent) | This method is invoked by Context whenever mouse presses into the button. |
Functions
- Control:acceptsFirstResponder ()
-
Returns whether the button can be focused upon.
Return value:
boolean - Control:init (frame, cell)
-
Initializes the Control object.
Parameters
- frame: table
- cell: Cell
Return value:
Control - Control:load (lib)
-
Loads the Control class, automatically called when it's required by LoveUI
Parameters
- lib: table
Return value:
class - Control:mouseDown (theEvent)
-
This method is invoked by Context whenever mouse presses into the button. It uses the ButtonCell's mousedown method to handle the mouse press.
Parameters
- theEvent: MouseEvent