11#include "../AddonBase.h"
12#include "../c-api/gui/general.h"
35inline void ATTR_DLL_LOCAL
Lock()
37 using namespace ::kodi::addon;
38 CPrivateBase::m_interface->toKodi->kodi_gui->general->lock();
48 using namespace ::kodi::addon;
49 CPrivateBase::m_interface->toKodi->kodi_gui->general->unlock();
61 using namespace ::kodi::addon;
62 return CPrivateBase::m_interface->toKodi->kodi_gui->general->get_screen_height(
63 CPrivateBase::m_interface->toKodi->kodiBase);
75 using namespace ::kodi::addon;
76 return CPrivateBase::m_interface->toKodi->kodi_gui->general->get_screen_width(
77 CPrivateBase::m_interface->toKodi->kodiBase);
89 using namespace ::kodi::addon;
90 return CPrivateBase::m_interface->toKodi->kodi_gui->general->get_video_resolution(
91 CPrivateBase::m_interface->toKodi->kodiBase);
113 using namespace ::kodi::addon;
114 return CPrivateBase::m_interface->toKodi->kodi_gui->general->get_current_window_dialog_id(
115 CPrivateBase::m_interface->toKodi->kodiBase);
137 using namespace ::kodi::addon;
138 return CPrivateBase::m_interface->toKodi->kodi_gui->general->get_current_window_id(
139 CPrivateBase::m_interface->toKodi->kodiBase);
167 using namespace ::kodi::addon;
168 return CPrivateBase::m_interface->toKodi->kodi_gui->general->get_hw_context(
169 CPrivateBase::m_interface->toKodi->kodiBase);
181 using namespace ::kodi::addon;
182 return CPrivateBase::m_interface->toKodi->kodi_gui->general->get_adjust_refresh_rate_status(
183 CPrivateBase::m_interface->toKodi->kodiBase);
int ATTR_DLL_LOCAL GetVideoResolution()
Return the the current screen rendering resolution.
Definition General.h:87
AdjustRefreshRateStatus
Adjust refresh rate enum Used to get the Adjust refresh rate status info.
Definition general.h:25
int ATTR_DLL_LOCAL GetScreenHeight()
Return the the current screen height with pixel.
Definition General.h:59
void ATTR_DLL_LOCAL Lock()
Performs a graphical lock of rendering engine.
Definition General.h:35
kodi::HardwareContext GetHWContext()
To get hardware specific device context interface.
Definition General.h:165
int ATTR_DLL_LOCAL GetCurrentWindowDialogId()
Returns the id for the current 'active' dialog as an integer.
Definition General.h:111
int ATTR_DLL_LOCAL GetScreenWidth()
Return the the current screen width with pixel.
Definition General.h:73
int ATTR_DLL_LOCAL GetCurrentWindowId()
Returns the id for the current 'active' window as an integer.
Definition General.h:135
AdjustRefreshRateStatus ATTR_DLL_LOCAL GetAdjustRefreshRateStatus()
Get Adjust refresh rate setting status.
Definition General.h:179
void ATTR_DLL_LOCAL Unlock()
Performs a graphical unlock of previous locked rendering engine.
Definition General.h:46