![]() |
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <WinSystemWin32.h>
Public Member Functions | |
CWinSystemWin32 () | |
virtual | ~CWinSystemWin32 () |
bool | InitWindowSystem () override |
bool | DestroyWindowSystem () override |
bool | ResizeWindow (int newWidth, int newHeight, int newLeft, int newTop) override |
void | FinishWindowResize (int newWidth, int newHeight) override |
void | ForceFullScreen (const RESOLUTION_INFO &resInfo) override |
Forces the window to fullscreen provided the window resolution. | |
void | UpdateResolutions () override |
bool | CenterWindow () override |
virtual void | NotifyAppFocusChange (bool bGaining) override |
void | ShowOSMouse (bool show) override |
bool | HasInertialGestures () override |
bool | Minimize () override |
bool | Restore () override |
bool | Hide () override |
bool | Show (bool raise=true) override |
std::string | GetClipboardText () override |
bool | UseLimitedColor () override |
float | GetGuiSdrPeakLuminance () const override |
Max luminance for GUI SDR content in HDR mode. | |
bool | HasSystemSdrPeakLuminance () override |
Test support of the OS for a SDR max luminance in HDR mode setting. | |
std::unique_ptr< CVideoSync > | GetVideoSync (CVideoReferenceClock *clock) override |
bool | SetFullScreen (bool fullScreen, RESOLUTION_INFO &res, bool blankOtherDisplays) override |
std::vector< std::string > | GetConnectedOutputs () override |
HWND | GetHwnd () const |
bool | IsAlteringWindow () const |
void | SetAlteringWindow (bool altering) |
bool | IsTogglingHDR () const |
void | SetTogglingHDR (bool toggling) |
virtual bool | DPIChanged (WORD dpi, RECT windowRect) const |
bool | IsMinimized () const |
void | SetMinimized (bool minimized) |
void | CacheSystemSdrPeakLuminance () |
Cache the system HDR/SDR balance for use during rendering, instead of querying the API for each frame. | |
void | SetSizeMoveMode (bool mode) |
bool | IsInSizeMoveMode () const |
bool | MessagePump () override |
![]() | |
CWinSystemBase () | |
virtual | ~CWinSystemBase () |
virtual CRenderSystemBase * | GetRenderSystem () |
virtual const std::string | GetName () |
virtual bool | DestroyWindow () |
virtual bool | DisplayHardwareScalingEnabled () |
virtual void | UpdateDisplayHardwareScaling (const RESOLUTION_INFO &resInfo) |
virtual void | SetDirtyRegions (const CDirtyRegionList &dirtyRegionsList) |
virtual int | GetBufferAge () |
virtual bool | MoveWindow (int topLeft, int topRight) |
virtual void | FinishModeChange (RESOLUTION res) |
virtual bool | IsCreated () |
virtual void | NotifyAppActiveChange (bool bActivated) |
virtual bool | HasCursor () |
virtual int | NoOfBuffers () |
virtual float | GetDisplayLatency () |
Get average display latency. | |
virtual float | GetFrameLatencyAdjustment () |
Get time that should be subtracted from the display latency for this frame in milliseconds. | |
virtual void | OnMove (int x, int y) |
virtual unsigned int | GetScreenId (const std::string &screen) |
Get the screen ID provided the screen name. | |
virtual void | MoveToScreen (unsigned int screenIdx) |
Window was requested to move to the given screen. | |
virtual void | OnChangeScreen (unsigned int screenIdx) |
Used to signal the windowing system about the change of the current screen. | |
KODI::WINDOWING::COSScreenSaverManager * | GetOSScreenSaver () |
Get OS screen saver inhibit implementation if available. | |
unsigned int | GetWidth () |
unsigned int | GetHeight () |
virtual bool | CanDoWindowed () |
bool | IsFullScreen () |
virtual bool | SupportsScreenMove () |
Check if the windowing system supports moving windows across screens. | |
void | SetWindowResolution (int width, int height) |
std::vector< RESOLUTION_WHR > | ScreenResolutions (float refreshrate) |
std::vector< REFRESHRATE > | RefreshRates (int width, int height, uint32_t dwFlags) |
REFRESHRATE | DefaultRefreshRate (const std::vector< REFRESHRATE > &rates) |
virtual bool | HasCalibration (const RESOLUTION_INFO &resInfo) |
void | RegisterRenderLoop (IRenderLoop *client) |
void | UnregisterRenderLoop (IRenderLoop *client) |
void | DriveRenderLoop () |
virtual CGraphicContext & | GetGfxContext () const |
virtual void * | GetHWContext () |
Get OS specific hardware context. | |
std::shared_ptr< CDPMSSupport > | GetDPMSManager () |
virtual bool | SetHDR (const VideoPicture *videoPicture) |
Set the HDR metadata. Passing nullptr as the parameter should disable HDR. | |
virtual bool | IsHDRDisplay () |
virtual HDR_STATUS | ToggleHDR () |
virtual HDR_STATUS | GetOSHDRStatus () |
virtual CHDRCapabilities | GetDisplayHDRCapabilities () const |
virtual bool | SupportsVideoSuperResolution () |
System supports Video Super Resolution HW upscaler i.e.: "NVIDIA RTX Video Super Resolution" or "Intel Video Super Resolution". | |
virtual DEBUG_INFO_RENDER | GetDebugInfo () |
Gets debug info from video renderer for use in "Debug Info OSD" (Alt + O) | |
bool | IsHDRDisplaySettingEnabled () |
Return true when HDR display is available and enabled in settings. | |
bool | IsVideoSuperResolutionSettingEnabled () |
Return true when "Video Super Resolution" is supported and enabled in settings. | |
bool | IsHighPrecisionProcessingSettingEnabled () |
Return true when setting "High Precision Processing" is enabled. | |
std::pair< bool, int > | GetDitherSettings () |
Get dither settings. | |
virtual bool | BindTextureUploadContext () |
Binds a shared context to the current thread, in order to upload textures asynchronously. | |
virtual bool | UnbindTextureUploadContext () |
Unbinds the shared context. | |
virtual bool | HasContext () |
Checks if a graphics context is already bound to the current thread. | |
Protected Member Functions | |
bool | CreateNewWindow (const std::string &name, bool fullScreen, RESOLUTION_INFO &res) override=0 |
virtual void | UpdateStates (bool fullScreen) |
WINDOW_STATE | GetState (bool fullScreen) const |
virtual void | SetDeviceFullScreen (bool fullScreen, RESOLUTION_INFO &res)=0 |
virtual void | ReleaseBackBuffer ()=0 |
virtual void | CreateBackBuffer ()=0 |
virtual void | ResizeDeviceBuffers ()=0 |
virtual bool | IsStereoEnabled ()=0 |
virtual void | OnScreenChange (HMONITOR monitor)=0 |
virtual void | AdjustWindow (bool forceResize=false) |
void | CenterCursor () const |
virtual void | Register (IDispResource *resource) |
virtual void | Unregister (IDispResource *resource) |
virtual bool | ChangeResolution (const RESOLUTION_INFO &res, bool forceChange=false) |
virtual bool | CreateBlankWindows () |
virtual bool | BlankNonActiveMonitors (bool bBlank) |
MONITOR_DETAILS * | GetDisplayDetails (const std::string &name) |
MONITOR_DETAILS * | GetDisplayDetails (HMONITOR handle) |
void | RestoreDesktopResolution (MONITOR_DETAILS *details) |
RECT | ScreenRect (HMONITOR handle) |
void | GetConnectedDisplays (std::vector< MONITOR_DETAILS > &outputs) |
void | OnDisplayLost () |
void | OnDisplayReset () |
void | OnDisplayBack () |
void | ResolutionChanged () |
RECT | GetScreenWorkArea (HMONITOR handle) const |
RECT | GetNcAreaOffsets (DWORD dwStyle, BOOL bMenu, DWORD dwExStyle) const |
![]() | |
void | UpdateDesktopResolution (RESOLUTION_INFO &newRes, const std::string &output, int width, int height, float refreshRate, uint32_t dwFlags) |
void | UpdateDesktopResolution (RESOLUTION_INFO &newRes, const std::string &output, int width, int height, int screenWidth, int screenHeight, float refreshRate, uint32_t dwFlags) |
virtual std::unique_ptr< KODI::WINDOWING::IOSScreenSaver > | GetOSScreenSaverImpl () |
Static Protected Member Functions | |
static bool | AddResolution (const RESOLUTION_INFO &res) |
Adds a resolution to the list of resolutions if we don't already have it. | |
static void | SetForegroundWindowInternal (HWND hWnd) |
static RECT | GetVirtualScreenRect () |
Static Protected Attributes | |
static const char * | SETTING_WINDOW_TOP = "window.top" |
static const char * | SETTING_WINDOW_LEFT = "window.left" |
Additional Inherited Members | |
![]() | |
static std::unique_ptr< CWinSystemBase > | CreateWinSystem () |
![]() | |
static const char * | SETTING_WINSYSTEM_IS_HDR_DISPLAY = "winsystem.ishdrdisplay" |
CWinSystemWin32::CWinSystemWin32 | ( | ) |
|
virtual |
|
staticprotected |
Adds a resolution to the list of resolutions if we don't already have it.
res | resolution to add. |
void CWinSystemWin32::CacheSystemSdrPeakLuminance | ( | ) |
Cache the system HDR/SDR balance for use during rendering, instead of querying the API for each frame.
|
protected |
|
overridevirtual |
Reimplemented from CWinSystemBase.
|
protectedvirtual |
Reimplemented in CWinSystemWin32DX.
|
protectedpure virtual |
Implemented in CWinSystemWin32DX.
|
protectedvirtual |
|
overrideprotectedpure virtual |
Implements CWinSystemBase.
Implemented in CWinSystemWin32DX.
|
overridevirtual |
Reimplemented from CWinSystemBase.
|
virtual |
Reimplemented in CWinSystemWin32DX.
Reimplemented from CWinSystemBase.
|
overridevirtual |
Forces the window to fullscreen provided the window resolution.
resInfo | - the resolution info |
Reimplemented from CWinSystemBase.
|
overridevirtual |
Reimplemented from CWinSystemBase.
|
protected |
|
overridevirtual |
Reimplemented from CWinSystemBase.
|
protected |
|
protected |
|
overridevirtual |
Max luminance for GUI SDR content in HDR mode.
Reimplemented from CWinSystemBase.
|
inline |
|
protected |
Retrieve size of the title bar and borders Add to coordinates to convert client coordinates to window coordinates Substract from coordinates to convert from window coordinates to client coordinates
|
protected |
Retrieve the work area of the screen (exclude task bar and other occlusions)
|
protected |
|
overridevirtual |
Reimplemented from CWinSystemBase.
|
staticprotected |
|
inlineoverridevirtual |
Reimplemented from CWinSystemBase.
|
overridevirtual |
Test support of the OS for a SDR max luminance in HDR mode setting.
Reimplemented from CWinSystemBase.
|
overridevirtual |
Reimplemented from CWinSystemBase.
|
overridevirtual |
Reimplemented from CWinSystemBase.
|
inline |
|
inline |
|
inline |
|
protectedpure virtual |
Implemented in CWinSystemWin32DX.
|
inline |
|
overridevirtual |
Reimplemented from CWinSystemBase.
|
overridevirtual |
Reimplemented from CWinSystemBase.
Reimplemented from CWinSystemBase.
|
protected |
|
protected |
|
protected |
|
protectedpure virtual |
Implemented in CWinSystemWin32DX.
|
protectedvirtual |
Implements CWinSystemBase.
Reimplemented in CWinSystemWin32DX.
|
protectedpure virtual |
Implemented in CWinSystemWin32DX.
|
protectedpure virtual |
Implemented in CWinSystemWin32DX.
|
overridevirtual |
Implements CWinSystemBase.
Reimplemented in CWinSystemWin32DX.
|
protected |
|
overridevirtual |
Reimplemented from CWinSystemBase.
|
protected |
|
protected |
|
protectedpure virtual |
Implemented in CWinSystemWin32DX.
|
staticprotected |
|
overridevirtual |
Implements CWinSystemBase.
Reimplemented in CWinSystemWin32DX.
Reimplemented from CWinSystemBase.
Reimplemented from CWinSystemBase.
|
protectedvirtual |
Implements CWinSystemBase.
Reimplemented in CWinSystemWin32DX.
|
overridevirtual |
Reimplemented from CWinSystemBase.
|
overridevirtual |
Reimplemented from CWinSystemBase.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |