|
Kodi Documentation
18.0
Kodi is an open source media player and entertainment hub.
|
#include <Window.h>
Public Member Functions | |
| Window (int existingWindowId=-1) | |
| ~Window () override | |
| SWIGHIDDENVIRTUAL bool | OnMessage (CGUIMessage &message) |
| SWIGHIDDENVIRTUAL bool | OnAction (const CAction &action) |
| SWIGHIDDENVIRTUAL bool | OnBack (int actionId) |
| SWIGHIDDENVIRTUAL void | OnDeinitWindow (int nextWindowID) |
| SWIGHIDDENVIRTUAL bool | IsDialogRunning () const |
| SWIGHIDDENVIRTUAL bool | IsDialog () const |
| SWIGHIDDENVIRTUAL bool | IsModalDialog () const |
| SWIGHIDDENVIRTUAL bool | IsMediaWindow () const |
| SWIGHIDDENVIRTUAL void | dispose () |
| void | interceptorClear () |
| onAction (...) | |
| |
| void | onControl (...) |
| |
| onClick (...) | |
| |
| onDoubleClick (...) | |
| |
| onFocus (...) | |
| |
| onInit (...) | |
| |
| show () | |
| |
| setFocus (...) | |
| |
| setFocusId (...) | |
| |
| getFocus () | |
| |
| getFocusId () | |
| |
| removeControl (...) | |
| |
| removeControls (...) | |
| |
| getHeight () | |
| |
| getWidth () | |
| |
| getResolution () | |
| |
| setCoordinateResolution (...) | |
| |
| setProperty (...) | |
| |
| getProperty (...) | |
| |
| clearProperty (...) | |
| |
| clearProperties () | |
| |
| close () | |
| |
| doModal () | |
| |
| addControl (...) | |
| |
| addControls (...) | |
| |
| getControl (...) | |
| |
Public Member Functions inherited from XBMCAddon::AddonCallback | |
| ~AddonCallback () override | |
| void | setHandler (CallbackHandler *_handler) |
| void | invokeCallback (Callback *callback) |
Public Member Functions inherited from XBMCAddon::AddonClass | |
| AddonClass () | |
| virtual | ~AddonClass () |
| const char * | GetClassname () const |
| LanguageHook * | GetLanguageHook () |
| bool | isDeallocating () |
| void | Release () const |
| void | Acquire () const |
Public Member Functions inherited from XbmcThreads::CountingLockable< XbmcThreads::CRecursiveMutex > | |
| CountingLockable ()=default | |
| void | lock () |
| bool | try_lock () |
| void | unlock () |
| unsigned int | exit (unsigned int leave=0) |
| void | restore (unsigned int restoreCount) |
| XbmcThreads::CRecursiveMutex & | get_underlying () |
Protected Member Functions | |
| Window (bool discrim) | |
| void | deallocating () override |
| void | setWindow (InterceptorBase *_window) |
| void | popActiveWindowId () |
| Control * | GetControlById (int iControlId, CCriticalSection *gc) |
| SWIGHIDDENVIRTUAL void | PulseActionEvent () |
| SWIGHIDDENVIRTUAL bool | WaitForActionEvent (unsigned int milliseconds) |
Protected Member Functions inherited from XBMCAddon::AddonCallback | |
| bool | hasHandler () |
| AddonCallback () | |
Static Protected Member Functions | |
| static int | getNextAvailableWindowId () |
Static Protected Member Functions inherited from XBMCAddon::AddonClass | |
| static short | getNextClassIndex () |
Protected Attributes | |
| InterceptorBase * | window |
| int | iWindowId = -1 |
| std::vector< AddonClass::Ref< Control > > | vecControls |
| int | iOldWindowId = 0 |
| int | iCurrentControlId = 3000 |
| bool | bModal = false |
| CEvent | m_actionEvent |
| bool | canPulse = false |
| bool | existingWindow = true |
| bool | destroyAfterDeInit = false |
Protected Attributes inherited from XBMCAddon::AddonCallback | |
| AddonClass::Ref< CallbackHandler > | handler |
Protected Attributes inherited from XBMCAddon::AddonClass | |
| LanguageHook * | languageHook |
Protected Attributes inherited from XbmcThreads::CountingLockable< XbmcThreads::CRecursiveMutex > | |
| XbmcThreads::CRecursiveMutex | mutex |
| unsigned int | count |
Friends | |
| class | WindowDialogMixin |
Additional Inherited Members | |
Static Public Member Functions inherited from XBMCAddon::AddonClass | |
| static short | getNumAddonClasses () |
|
explicitprotected |
This only takes a boolean to allow subclasses to explicitly use it. A default constructor can be used as a concrete class and we need to tell the difference. subclasses should use this constructor and not the other.
|
explicit |
This just creates a default window.
|
override |
|
overrideprotectedvirtual |
This method is meant to be called from the destructor of the lowest level class.
It's virtual because it's a convenient place to receive messages that we're about to go be deleted but prior to any real tear-down.
Any overloading classes need to remember to pass the call up the chain.
Reimplemented from XBMCAddon::AddonClass.
| void XBMCAddon::xbmcgui::Window::dispose | ( | ) |
|
protected |
This is a helper method since getting a control by it's id is a common function.
|
staticprotected |
This helper retrieves the next available id. It is assumed that the global lock is already being held.
|
inline |
This is called from the InterceptorBase destructor to prevent further use of the interceptor from the window.
|
inline |
|
inline |
|
inline |
|
inline |
| bool XBMCAddon::xbmcgui::Window::OnAction | ( | const CAction & | action | ) |
| bool XBMCAddon::xbmcgui::Window::OnBack | ( | int | actionId | ) |
| void XBMCAddon::xbmcgui::Window::OnDeinitWindow | ( | int | nextWindowID | ) |
| bool XBMCAddon::xbmcgui::Window::OnMessage | ( | CGUIMessage & | message | ) |
|
protected |
This is a helper method since popping the previous window id is a common function.
|
protected |
|
protected |
|
protected |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |