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. 
◆ Lock()
  
  | 
        
          | void ATTRIBUTE_HIDDEN kodi::gui::Lock | ( |  | ) |  |  | inline | 
 
Performs a graphical lock of rendering engine. 
 
 
◆ Unlock()
  
  | 
        
          | void ATTRIBUTE_HIDDEN kodi::gui::Unlock | ( |  | ) |  |  | inline | 
 
Performs a graphical unlock of previous locked rendering engine. 
 
 
◆ GetScreenHeight()
  
  | 
        
          | int ATTRIBUTE_HIDDEN kodi::gui::GetScreenHeight | ( |  | ) |  |  | inline | 
 
Return the the current screen height with pixel. 
- Returns
- Screen height with pixel 
 
 
◆ GetScreenWidth()
  
  | 
        
          | int ATTRIBUTE_HIDDEN kodi::gui::GetScreenWidth | ( |  | ) |  |  | inline | 
 
Return the the current screen width with pixel. 
- Returns
- Screen width with pixel 
 
 
◆ GetVideoResolution()
  
  | 
        
          | int ATTRIBUTE_HIDDEN kodi::gui::GetVideoResolution | ( |  | ) |  |  | inline | 
 
Return the the current screen rendering resolution. 
- Returns
- Current screen rendering resolution 
 
 
◆ GetCurrentWindowDialogId()
  
  | 
        
          | int ATTRIBUTE_HIDDEN kodi::gui::GetCurrentWindowDialogId | ( |  | ) |  |  | inline | 
 
Returns the id for the current 'active' dialog as an integer. 
- Returns
- The currently active dialog Id
Example: 
..
..
int ATTRIBUTE_HIDDEN GetCurrentWindowDialogId()
Returns the id for the current 'active' dialog as an integer.
Definition: General.h:111
 
 
◆ GetCurrentWindowId()
  
  | 
        
          | int ATTRIBUTE_HIDDEN kodi::gui::GetCurrentWindowId | ( |  | ) |  |  | inline | 
 
Returns the id for the current 'active' window as an integer. 
- Returns
- The currently active window Id
Example: 
..
..
int ATTRIBUTE_HIDDEN GetCurrentWindowId()
Returns the id for the current 'active' window as an integer.
Definition: General.h:135
 
 
◆ GetHWContext()
  
  | 
        
          | kodi::HardwareContext kodi::gui::GetHWContext | ( |  | ) |  |  | inline | 
 
To get hardware specific device context interface. 
- Returns
- A pointer to the used device with kodi::HardwareContext
- Warning
- This function is only be supported under Windows, on all other OS it return nullptr!
- Note
- Returned Windows class pointer is ID3D11DeviceContext1.
Example: 
#include <d3d11_1.h>
..
..
kodi::HardwareContext GetHWContext()
To get hardware specific device context interface.
Definition: General.h:165