Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
GUI window callback functions. More...
Topics | |
Action Id's | |
Actions that we have defined. | |
Functions | |
XBMCAddon::xbmcgui::Window::onAction (...) | |
| |
void | XBMCAddon::xbmcgui::Window::onControl (...) |
| |
XBMCAddon::xbmcgui::Window::onClick (...) | |
| |
XBMCAddon::xbmcgui::Window::onDoubleClick (...) | |
| |
XBMCAddon::xbmcgui::Window::onFocus (...) | |
| |
XBMCAddon::xbmcgui::Window::onInit (...) | |
| |
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
void XBMCAddon::xbmcgui::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 XBMCAddon::xbmcgui::Window::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:
void XBMCAddon::xbmcgui::Window::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:
void XBMCAddon::xbmcgui::Window::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:
void XBMCAddon::xbmcgui::Window::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:
void XBMCAddon::xbmcgui::Window::onInit | ( | ... | ) |
Function: onInit(self)
This method will be called to initialize the window
self | Own base class pointer |
Example: