Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
WinSystemOSX.mm File Reference

Functions

size_t DisplayBitsPerPixelForMode (CGDisplayModeRef mode)
 
CGDirectDisplayID GetDisplayID (NSUInteger screen_index)
 
NSString * GetScreenName (NSUInteger screenIdx)
 
EdgeInsets GetScreenEdgeInsets (NSUInteger screenIdx)
 
NSString * screenNameForDisplay (NSUInteger screenIdx)
 
void CheckAndUpdateCurrentMonitor (NSUInteger screenNumber)
 
CGDirectDisplayID GetDisplayIDFromScreen (NSScreen *screen)
 
int GetDisplayIndex (CGDirectDisplayID display)
 
NSUInteger GetDisplayIndex (const std::string &dispName)
 
std::string ComputeVideoModeId (size_t resWidth, size_t resHeight, size_t pixelWidth, size_t pixelHeight, bool interlaced)
 
CFArrayRef CopyAllDisplayModes (CGDirectDisplayID display)
 
CGDisplayModeRef CreateModeById (const std::string &modeId, NSUInteger screenIdx)
 
CGDisplayModeRef CreateMode (size_t width, size_t height, double refreshrate, NSUInteger screenIdx)
 
CGDisplayModeRef BestMatchForMode (CGDirectDisplayID display, size_t bitsPerPixel, size_t width, size_t height)
 
void BlankOtherDisplays (NSUInteger screenBeingUsed)
 
void UnblankDisplay (NSUInteger screenToUnblank)
 
void UnblankDisplays (NSUInteger screenBeingUsed)
 

Function Documentation

◆ BestMatchForMode()

CGDisplayModeRef BestMatchForMode ( CGDirectDisplayID display,
size_t bitsPerPixel,
size_t width,
size_t height )

◆ BlankOtherDisplays()

void BlankOtherDisplays ( NSUInteger screenBeingUsed)

◆ CheckAndUpdateCurrentMonitor()

void CheckAndUpdateCurrentMonitor ( NSUInteger screenNumber)

◆ ComputeVideoModeId()

std::string ComputeVideoModeId ( size_t resWidth,
size_t resHeight,
size_t pixelWidth,
size_t pixelHeight,
bool interlaced )

◆ CopyAllDisplayModes()

CFArrayRef CopyAllDisplayModes ( CGDirectDisplayID display)

◆ CreateMode()

CGDisplayModeRef CreateMode ( size_t width,
size_t height,
double refreshrate,
NSUInteger screenIdx )

◆ CreateModeById()

CGDisplayModeRef CreateModeById ( const std::string & modeId,
NSUInteger screenIdx )

◆ DisplayBitsPerPixelForMode()

size_t DisplayBitsPerPixelForMode ( CGDisplayModeRef mode)

◆ GetDisplayID()

CGDirectDisplayID GetDisplayID ( NSUInteger screen_index)

◆ GetDisplayIDFromScreen()

CGDirectDisplayID GetDisplayIDFromScreen ( NSScreen * screen)

◆ GetDisplayIndex() [1/2]

int GetDisplayIndex ( CGDirectDisplayID display)

◆ GetDisplayIndex() [2/2]

NSUInteger GetDisplayIndex ( const std::string & dispName)

◆ GetScreenEdgeInsets()

EdgeInsets GetScreenEdgeInsets ( NSUInteger screenIdx)

@TODO update code block once minimal SDK version is bumped to at least 12.0 (remove NSInvocation and selector)

◆ GetScreenName()

NSString * GetScreenName ( NSUInteger screenIdx)

TODO: Remove when 10.15 is the minimal target

◆ screenNameForDisplay()

NSString * screenNameForDisplay ( NSUInteger screenIdx)

◆ UnblankDisplay()

void UnblankDisplay ( NSUInteger screenToUnblank)

◆ UnblankDisplays()

void UnblankDisplays ( NSUInteger screenBeingUsed)