GUI window callback functions.
Functions to handle control callbacks from Kodi.
Likewise, all functions from here as well in the all window classes (Window, WindowDialog, WindowXML and WindowXMLDialog) with inserted and available.
Go back to normal functions from window
onAction | ( | ... | ) |
Function: onAction(self, Action action)
This method will receive all actions that the main program will send to this window.
self | Own base class pointer |
action | The action id to perform, see Action to get use of them |
PREVIOUS_MENU
and NAV_BACK actions
are handled.ACTION_PREVIOUS_MENU
or ACTION_NAV_BACK
, else the user can't close this window.Example:
void onControl | ( | ... | ) |
Function: onControl(self, Control)
This method will receive all click events on owned and selected controls when the control itself doesn't handle the message.
self | Own base class pointer |
control | The Control class |
Example:
onClick | ( | ... | ) |
Function: onClick(self, int controlId)
This method will receive all click events that the main program will send to this window.
self | Own base class pointer |
controlId | The one time clicked GUI control identifier |
Example:
onDoubleClick | ( | ... | ) |
Function: onDoubleClick(self, int controlId)
This method will receive all double click events that the main program will send to this window.
self | Own base class pointer |
controlId | The double clicked GUI control identifier |
Example:
onFocus | ( | ... | ) |
Function: onFocus(self, int controlId)
This method will receive all focus events that the main program will send to this window.
self | Own base class pointer |
controlId | The focused GUI control identifier |
Example:
onInit | ( | ... | ) |
Function: onInit(self)
This method will be called to initialize the window
self | Own base class pointer |
Example: