Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
CWinSystemIOS Class Reference

#include <WinSystemIOS.h>

Inheritance diagram for CWinSystemIOS:
CWinSystemBase CRenderSystemGLES CRenderSystemBase

Public Member Functions

 CWinSystemIOS ()
 
virtual ~CWinSystemIOS ()
 
int GetDisplayIndexFromSettings ()
 
CRenderSystemBaseGetRenderSystem () override
 
bool InitWindowSystem () override
 
bool DestroyWindowSystem () override
 
bool CreateNewWindow (const std::string &name, bool fullScreen, RESOLUTION_INFO &res) override
 
bool DestroyWindow () override
 
bool ResizeWindow (int newWidth, int newHeight, int newLeft, int newTop) override
 
bool SetFullScreen (bool fullScreen, RESOLUTION_INFO &res, bool blankOtherDisplays) override
 
void UpdateResolutions () override
 
bool CanDoWindowed () override
 
void ShowOSMouse (bool show) override
 
bool HasCursor () override
 
void NotifyAppActiveChange (bool bActivated) override
 
bool Minimize () override
 
bool Restore () override
 
bool Hide () override
 
bool Show (bool raise=true) override
 
bool IsExtSupported (const char *extension) const override
 
bool BeginRender () override
 
bool EndRender () override
 
void Register (IDispResource *resource) override
 
void Unregister (IDispResource *resource) override
 
virtual std::unique_ptr< CVideoSyncGetVideoSync (void *clock) override
 
bool InitDisplayLink (CVideoSyncIos *syncImpl)
 
void DeinitDisplayLink (void)
 
void OnAppFocusChange (bool focus)
 
bool IsBackgrounded () const
 
voidGetEAGLContextObj ()
 
void GetConnectedOutputs (std::vector< std::string > *outputs)
 
void MoveToTouchscreen ()
 
bool MessagePump () override
 
- Public Member Functions inherited from CWinSystemBase
 CWinSystemBase ()
 
virtual ~CWinSystemBase ()
 
virtual bool MoveWindow (int topLeft, int topRight)
 
virtual void FinishModeChange (RESOLUTION res)
 
virtual void FinishWindowResize (int newWidth, int newHeight)
 
virtual bool CenterWindow ()
 
virtual bool IsCreated ()
 
virtual void NotifyAppFocusChange (bool bGaining)
 
virtual bool HasInertialGestures ()
 
virtual bool UseLimitedColor ()
 
virtual int NoOfBuffers ()
 
virtual float GetDisplayLatency ()
 
virtual float GetFrameLatencyAdjustment ()
 
virtual void OnMove (int x, int y)
 
KODI::WINDOWING::COSScreenSaverManagerGetOSScreenSaver ()
 
unsigned int GetWidth ()
 
unsigned int GetHeight ()
 
bool IsFullScreen ()
 
void SetWindowResolution (int width, int height)
 
std::vector< RESOLUTION_WHRScreenResolutions (float refreshrate)
 
std::vector< REFRESHRATERefreshRates (int width, int height, uint32_t dwFlags)
 
REFRESHRATE DefaultRefreshRate (std::vector< REFRESHRATE > rates)
 
virtual bool HasCalibration (const RESOLUTION_INFO &resInfo)
 
virtual std::string GetClipboardText (void)
 
void RegisterRenderLoop (IRenderLoop *client)
 
void UnregisterRenderLoop (IRenderLoop *client)
 
void DriveRenderLoop ()
 
CGraphicContextGetGfxContext ()
 
- Public Member Functions inherited from CRenderSystemGLES
 CRenderSystemGLES ()
 
virtual ~CRenderSystemGLES ()
 
bool InitRenderSystem () override
 
bool DestroyRenderSystem () override
 
bool ResetRenderSystem (int width, int height) override
 
void PresentRender (bool rendered, bool videoLayer) override
 
bool ClearBuffers (UTILS::Color color) override
 
void SetVSync (bool vsync)
 
void ResetVSync ()
 
void SetViewPort (const CRect &viewPort) override
 
void GetViewPort (CRect &viewPort) override
 
bool ScissorsCanEffectClipping () override
 
CRect ClipRectToScissorRect (const CRect &rect) override
 
void SetScissors (const CRect &rect) override
 
void ResetScissors () override
 
void CaptureStateBlock () override
 
void ApplyStateBlock () override
 
void SetCameraPosition (const CPoint &camera, int screenWidth, int screenHeight, float stereoFactor=0.0f) override
 
bool SupportsStereo (RENDER_STEREO_MODE mode) const override
 
void Project (float &x, float &y, float &z) override
 
std::string GetShaderPath (const std::string &filename) override
 
void InitialiseShaders ()
 
void ReleaseShaders ()
 
void EnableGUIShader (ESHADERMETHOD method)
 
void DisableGUIShader ()
 
GLint GUIShaderGetPos ()
 
GLint GUIShaderGetCol ()
 
GLint GUIShaderGetCoord0 ()
 
GLint GUIShaderGetCoord1 ()
 
GLint GUIShaderGetUniCol ()
 
GLint GUIShaderGetCoord0Matrix ()
 
GLint GUIShaderGetField ()
 
GLint GUIShaderGetStep ()
 
GLint GUIShaderGetContrast ()
 
GLint GUIShaderGetBrightness ()
 
GLint GUIShaderGetModel ()
 
- Public Member Functions inherited from CRenderSystemBase
 CRenderSystemBase ()
 
virtual ~CRenderSystemBase ()
 
virtual void RestoreViewPort ()
 
virtual void SetStereoMode (RENDER_STEREO_MODE mode, RENDER_STEREO_VIEW view)
 
void GetRenderVersion (unsigned int &major, unsigned int &minor) const
 
const std::string & GetRenderVendor () const
 
const std::string & GetRenderRenderer () const
 
const std::string & GetRenderVersionString () const
 
virtual bool SupportsNPOT (bool dxt) const
 
unsigned int GetMaxTextureSize () const
 
unsigned int GetMinDXTPitch () const
 
virtual void ShowSplash (const std::string &message)
 

Protected Member Functions

void PresentRenderImpl (bool rendered) override
 
void SetVSyncImpl (bool enable) override
 
- Protected Member Functions inherited from CWinSystemBase
void UpdateDesktopResolution (RESOLUTION_INFO &newRes, const std::string &output, int width, int height, float refreshRate, uint32_t dwFlags)
 
virtual std::unique_ptr< KODI::WINDOWING::IOSScreenSaverGetOSScreenSaverImpl ()
 
- Protected Member Functions inherited from CRenderSystemGLES
void CalculateMaxTexturesize ()
 

Protected Attributes

voidm_glView
 
voidm_WorkingContext
 
bool m_bWasFullScreenBeforeMinimize
 
std::string m_eglext
 
CCriticalSection m_resourceSection
 
std::vector< IDispResource * > m_resources
 
bool m_bIsBackgrounded
 
- Protected Attributes inherited from CWinSystemBase
int m_nWidth = 0
 
int m_nHeight = 0
 
int m_nTop = 0
 
int m_nLeft = 0
 
bool m_bWindowCreated = false
 
bool m_bFullScreen = false
 
bool m_bBlankOtherDisplay = false
 
float m_fRefreshRate = 0.0f
 
std::unique_ptr< KODI::WINDOWING::COSScreenSaverManagerm_screenSaverManager
 
CCriticalSection m_renderLoopSection
 
std::vector< IRenderLoop * > m_renderLoopClients
 
std::unique_ptr< IWinEventsm_winEvents
 
std::unique_ptr< CGraphicContextm_gfxContext
 
- Protected Attributes inherited from CRenderSystemGLES
bool m_bVsyncInit {false}
 
int m_width
 
int m_height
 
std::string m_RenderExtensions
 
std::array< std::unique_ptr< CGLESShader >, SM_MAXm_pShader
 
ESHADERMETHOD m_method = SM_DEFAULT
 
GLint m_viewPort [4]
 
- Protected Attributes inherited from CRenderSystemBase
bool m_bRenderCreated
 
bool m_bVSync
 
unsigned int m_maxTextureSize
 
unsigned int m_minDXTPitch
 
std::string m_RenderRenderer
 
std::string m_RenderVendor
 
std::string m_RenderVersion
 
int m_RenderVersionMinor
 
int m_RenderVersionMajor
 
RENDER_STEREO_VIEW m_stereoView = RENDER_STEREO_VIEW_OFF
 
RENDER_STEREO_MODE m_stereoMode = RENDER_STEREO_MODE_OFF
 
bool m_limitedColorRange = false
 
std::unique_ptr< CGUIImagem_splashImage
 
std::unique_ptr< CGUITextLayoutm_splashMessageLayout
 

Additional Inherited Members

- Static Public Member Functions inherited from CWinSystemBase
static std::unique_ptr< CWinSystemBaseCreateWinSystem ()
 

Constructor & Destructor Documentation

◆ CWinSystemIOS()

CWinSystemIOS::CWinSystemIOS ( )

◆ ~CWinSystemIOS()

CWinSystemIOS::~CWinSystemIOS ( )
virtual

Member Function Documentation

◆ BeginRender()

bool CWinSystemIOS::BeginRender ( )
overridevirtual

Reimplemented from CRenderSystemGLES.

◆ CanDoWindowed()

bool CWinSystemIOS::CanDoWindowed ( )
inlineoverridevirtual

Reimplemented from CWinSystemBase.

◆ CreateNewWindow()

bool CWinSystemIOS::CreateNewWindow ( const std::string &  name,
bool  fullScreen,
RESOLUTION_INFO res 
)
overridevirtual

Implements CWinSystemBase.

◆ DeinitDisplayLink()

void CWinSystemIOS::DeinitDisplayLink ( void  )

◆ DestroyWindow()

bool CWinSystemIOS::DestroyWindow ( )
overridevirtual

Reimplemented from CWinSystemBase.

◆ DestroyWindowSystem()

bool CWinSystemIOS::DestroyWindowSystem ( )
overridevirtual

Reimplemented from CWinSystemBase.

◆ EndRender()

bool CWinSystemIOS::EndRender ( )
overridevirtual

Reimplemented from CRenderSystemGLES.

◆ GetConnectedOutputs()

void CWinSystemIOS::GetConnectedOutputs ( std::vector< std::string > *  outputs)

◆ GetDisplayIndexFromSettings()

int CWinSystemIOS::GetDisplayIndexFromSettings ( )

◆ GetEAGLContextObj()

void * CWinSystemIOS::GetEAGLContextObj ( )

◆ GetRenderSystem()

CRenderSystemBase * CWinSystemIOS::GetRenderSystem ( )
inlineoverridevirtual

Reimplemented from CWinSystemBase.

◆ GetVideoSync()

std::unique_ptr< CVideoSync > CWinSystemIOS::GetVideoSync ( void clock)
overridevirtual

Reimplemented from CWinSystemBase.

◆ HasCursor()

bool CWinSystemIOS::HasCursor ( )
overridevirtual

Reimplemented from CWinSystemBase.

◆ Hide()

bool CWinSystemIOS::Hide ( )
overridevirtual

Reimplemented from CWinSystemBase.

◆ InitDisplayLink()

bool CWinSystemIOS::InitDisplayLink ( CVideoSyncIos syncImpl)

◆ InitWindowSystem()

bool CWinSystemIOS::InitWindowSystem ( )
overridevirtual

Reimplemented from CWinSystemBase.

◆ IsBackgrounded()

bool CWinSystemIOS::IsBackgrounded ( ) const
inline

◆ IsExtSupported()

bool CWinSystemIOS::IsExtSupported ( const char *  extension) const
overridevirtual

Reimplemented from CRenderSystemGLES.

◆ MessagePump()

bool CWinSystemIOS::MessagePump ( )
overridevirtual

Reimplemented from CWinSystemBase.

◆ Minimize()

bool CWinSystemIOS::Minimize ( )
overridevirtual

Reimplemented from CWinSystemBase.

◆ MoveToTouchscreen()

void CWinSystemIOS::MoveToTouchscreen ( )

◆ NotifyAppActiveChange()

void CWinSystemIOS::NotifyAppActiveChange ( bool  bActivated)
overridevirtual

Reimplemented from CWinSystemBase.

◆ OnAppFocusChange()

void CWinSystemIOS::OnAppFocusChange ( bool  focus)

◆ PresentRenderImpl()

void CWinSystemIOS::PresentRenderImpl ( bool  rendered)
overrideprotectedvirtual

Implements CRenderSystemGLES.

◆ Register()

void CWinSystemIOS::Register ( IDispResource resource)
overridevirtual

Implements CWinSystemBase.

◆ ResizeWindow()

bool CWinSystemIOS::ResizeWindow ( int  newWidth,
int  newHeight,
int  newLeft,
int  newTop 
)
overridevirtual

Implements CWinSystemBase.

◆ Restore()

bool CWinSystemIOS::Restore ( )
overridevirtual

Reimplemented from CWinSystemBase.

◆ SetFullScreen()

bool CWinSystemIOS::SetFullScreen ( bool  fullScreen,
RESOLUTION_INFO res,
bool  blankOtherDisplays 
)
overridevirtual

Implements CWinSystemBase.

◆ SetVSyncImpl()

void CWinSystemIOS::SetVSyncImpl ( bool  enable)
inlineoverrideprotectedvirtual

Implements CRenderSystemGLES.

◆ Show()

bool CWinSystemIOS::Show ( bool  raise = true)
overridevirtual

Reimplemented from CWinSystemBase.

◆ ShowOSMouse()

void CWinSystemIOS::ShowOSMouse ( bool  show)
inlineoverridevirtual

Reimplemented from CWinSystemBase.

◆ Unregister()

void CWinSystemIOS::Unregister ( IDispResource resource)
overridevirtual

Implements CWinSystemBase.

◆ UpdateResolutions()

void CWinSystemIOS::UpdateResolutions ( )
overridevirtual

Reimplemented from CWinSystemBase.

Member Data Documentation

◆ m_bIsBackgrounded

bool CWinSystemIOS::m_bIsBackgrounded
protected

◆ m_bWasFullScreenBeforeMinimize

bool CWinSystemIOS::m_bWasFullScreenBeforeMinimize
protected

◆ m_eglext

std::string CWinSystemIOS::m_eglext
protected

◆ m_glView

void* CWinSystemIOS::m_glView
protected

◆ m_resources

std::vector<IDispResource*> CWinSystemIOS::m_resources
protected

◆ m_resourceSection

CCriticalSection CWinSystemIOS::m_resourceSection
protected

◆ m_WorkingContext

void* CWinSystemIOS::m_WorkingContext
protected

The documentation for this class was generated from the following files: