11 #include "../AddonBase.h"
12 #include "../c-api/gui/general.h"
35 inline void ATTRIBUTE_HIDDEN
Lock()
37 using namespace ::kodi::addon;
38 CAddonBase::m_interface->toKodi->kodi_gui->general->lock();
46 inline void ATTRIBUTE_HIDDEN
Unlock()
48 using namespace ::kodi::addon;
49 CAddonBase::m_interface->toKodi->kodi_gui->general->unlock();
61 using namespace ::kodi::addon;
62 return CAddonBase::m_interface->toKodi->kodi_gui->general->get_screen_height(
63 CAddonBase::m_interface->toKodi->kodiBase);
75 using namespace ::kodi::addon;
76 return CAddonBase::m_interface->toKodi->kodi_gui->general->get_screen_width(
77 CAddonBase::m_interface->toKodi->kodiBase);
89 using namespace ::kodi::addon;
90 return CAddonBase::m_interface->toKodi->kodi_gui->general->get_video_resolution(
91 CAddonBase::m_interface->toKodi->kodiBase);
113 using namespace ::kodi::addon;
114 return CAddonBase::m_interface->toKodi->kodi_gui->general->get_current_window_dialog_id(
115 CAddonBase::m_interface->toKodi->kodiBase);
137 using namespace ::kodi::addon;
138 return CAddonBase::m_interface->toKodi->kodi_gui->general->get_current_window_id(
139 CAddonBase::m_interface->toKodi->kodiBase);
167 using namespace ::kodi::addon;
168 return CAddonBase::m_interface->toKodi->kodi_gui->general->get_hw_context(
169 CAddonBase::m_interface->toKodi->kodiBase);
int ATTRIBUTE_HIDDEN GetCurrentWindowDialogId()
Returns the id for the current 'active' dialog as an integer.
Definition: General.h:111
void ATTRIBUTE_HIDDEN Unlock()
Performs a graphical unlock of previous locked rendering engine.
Definition: General.h:46
int ATTRIBUTE_HIDDEN GetScreenWidth()
Return the the current screen width with pixel.
Definition: General.h:73
int ATTRIBUTE_HIDDEN GetCurrentWindowId()
Returns the id for the current 'active' window as an integer.
Definition: General.h:135
int ATTRIBUTE_HIDDEN GetVideoResolution()
Return the the current screen rendering resolution.
Definition: General.h:87
void ATTRIBUTE_HIDDEN 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 ATTRIBUTE_HIDDEN GetScreenHeight()
Return the the current screen height with pixel.
Definition: General.h:59