![]() |
Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
|
General GUI related functions
This includes independent functions which can be used by different locations and called up independently.
More...
Functions | |
void ATTR_DLL_LOCAL | kodi::gui::Lock () |
Performs a graphical lock of rendering engine. More... | |
void ATTR_DLL_LOCAL | kodi::gui::Unlock () |
Performs a graphical unlock of previous locked rendering engine. More... | |
int ATTR_DLL_LOCAL | kodi::gui::GetScreenHeight () |
Return the the current screen height with pixel. More... | |
int ATTR_DLL_LOCAL | kodi::gui::GetScreenWidth () |
Return the the current screen width with pixel. More... | |
int ATTR_DLL_LOCAL | kodi::gui::GetVideoResolution () |
Return the the current screen rendering resolution. More... | |
int ATTR_DLL_LOCAL | kodi::gui::GetCurrentWindowDialogId () |
Returns the id for the current 'active' dialog as an integer. More... | |
int ATTR_DLL_LOCAL | kodi::gui::GetCurrentWindowId () |
Returns the id for the current 'active' window as an integer. More... | |
kodi::HardwareContext | kodi::gui::GetHWContext () |
To get hardware specific device context interface. More... | |
General GUI related functions
This includes independent functions which can be used by different locations and called up independently.
Permits the use of the required functions of the add-on to Kodi.
These are pure functions them no other initialization need.
It has the header #include <kodi/gui/General.h> be included to enjoy it.
|
inline |
Returns the id for the current 'active' dialog as an integer.
Example:
|
inline |
Returns the id for the current 'active' window as an integer.
Example:
|
inline |
To get hardware specific device context interface.
nullptr
!ID3D11DeviceContext1
.Example:
|
inline |
Return the the current screen height with pixel.
|
inline |
Return the the current screen width with pixel.
|
inline |
Return the the current screen rendering resolution.
|
inline |
Performs a graphical lock of rendering engine.
|
inline |
Performs a graphical unlock of previous locked rendering engine.