Module component.ActionCell
Functions
ActionCell:activateControlEvent (sender, controlEvent, ...) | Used internally, to call appropriate actions when an event is triggered. |
ActionCell:init (controlView, ...) | Initializes the actionCell objext |
ActionCell:keyDown (theEvent) | Called when the GUI widget receives a keyDown event, to activate the appropriate actions. |
ActionCell:keyUp (theEvent) | Called when the GUI widget receives a keyUp event, to activate the appropriate actions. |
ActionCell:load (lib) | Loads the ActionCell class, automatically called when it's required by LoveUI |
ActionCell:mouseDown (theEvent) | Called when the GUI widget receives a mouseDown event, to activate the appropriate actions. |
ActionCell:mouseUp (theEvent) | Called when the GUI widget receives a mouseUp event, to activate the appropriate actions. |
ActionCell:setActionForEvent (anAction, controlEvent, aTarget) | Sets an action to be called when the controlEvent occurs. |
Functions
- ActionCell:activateControlEvent (sender, controlEvent, ...)
-
Used internally, to call appropriate actions when an event is triggered.
Parameters
- sender: table
- controlEvent: number constant
- ...: any
- ActionCell:init (controlView, ...)
-
Initializes the actionCell objext
Parameters
- controlView: View
- ...:
Return value:
ActionCell - ActionCell:keyDown (theEvent)
-
Called when the GUI widget receives a keyDown event, to activate the appropriate actions.
Parameters
- theEvent: Event
Return value:
boolean whether an action was triggered by a controlEvent. - ActionCell:keyUp (theEvent)
-
Called when the GUI widget receives a keyUp event, to activate the appropriate actions.
Parameters
- theEvent: Event
Return value:
boolean whether an action was triggered by a controlEvent. - ActionCell:load (lib)
-
Loads the ActionCell class, automatically called when it's required by LoveUI
Parameters
- lib: table
Return value:
class - ActionCell:mouseDown (theEvent)
-
Called when the GUI widget receives a mouseDown event, to activate the appropriate actions.
Parameters
- theEvent: Event
Return value:
boolean whether an action was triggered by a controlEvent. - ActionCell:mouseUp (theEvent)
-
Called when the GUI widget receives a mouseUp event, to activate the appropriate actions.
Parameters
- theEvent: Event
Return value:
boolean whether an action was triggered by a controlEvent. - ActionCell:setActionForEvent (anAction, controlEvent, aTarget)
-
Sets an action to be called when the controlEvent occurs. If aTarget is supplied it'll be passed into the anAction function as the 1st argument.
Parameters
- anAction: function
- controlEvent: number constant
- aTarget: table (optional)