Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
WinSystemOSX.mm File Reference
#include "WinSystemOSX.h"
#include "WinEventsOSX.h"
#include "VideoSyncOsx.h"
#include "OSScreenSaverOSX.h"
#include "AppInboundProtocol.h"
#include "ServiceBroker.h"
#include "messaging/ApplicationMessenger.h"
#include "CompileInfo.h"
#include "cores/AudioEngine/AESinkFactory.h"
#include "cores/AudioEngine/Sinks/AESinkDARWINOSX.h"
#include "cores/RetroPlayer/process/osx/RPProcessInfoOSX.h"
#include "cores/RetroPlayer/rendering/VideoRenderers/RPRendererOpenGL.h"
#include "cores/VideoPlayer/DVDCodecs/DVDFactoryCodec.h"
#include "cores/VideoPlayer/DVDCodecs/Video/VTB.h"
#include "cores/VideoPlayer/Process/osx/ProcessInfoOSX.h"
#include "cores/VideoPlayer/VideoRenderers/RenderFactory.h"
#include "cores/VideoPlayer/VideoRenderers/LinuxRendererGL.h"
#include "cores/VideoPlayer/VideoRenderers/HwDecRender/RendererVTBGL.h"
#include "guilib/DispResource.h"
#include "guilib/GUIWindowManager.h"
#include "platform/darwin/osx/powermanagement/CocoaPowerSyscall.h"
#include "settings/DisplaySettings.h"
#include "settings/Settings.h"
#include "settings/SettingsComponent.h"
#include "input/KeyboardStat.h"
#include "threads/SingleLock.h"
#include "utils/log.h"
#include "utils/StringUtils.h"
#include "platform/darwin/osx/XBMCHelper.h"
#include "utils/SystemInfo.h"
#include "platform/darwin/osx/CocoaInterface.h"
#include "platform/darwin/DictionaryUtils.h"
#include "platform/darwin/DarwinUtils.h"
#include <cstdlib>
#include <signal.h>
#import <SDL/SDL.h>
#import <Cocoa/Cocoa.h>
#import <QuartzCore/QuartzCore.h>
#import <IOKit/pwr_mgt/IOPMLib.h>
#import <IOKit/graphics/IOGraphicsLib.h>
#import "platform/darwin/osx/OSXTextInputResponder.h"

Classes

class  windowDidMoveNoteClass
 
class  windowDidReSizeNoteClass
 
class  windowDidChangeScreenNoteClass
 

Macros

#define MAX_DISPLAYS   32
 
#define LOST_DEVICE_TIMEOUT_MS   3000
 

Functions

CRect CGRectToCRect (CGRect cgrect)
 
void SetMenuBarVisible (bool visible)
 
CGDirectDisplayID GetDisplayID (int screen_index)
 
size_t DisplayBitsPerPixelForMode (CGDisplayModeRef mode)
 
CFArrayRef GetAllDisplayModes (CGDirectDisplayID display)
 
CGDisplayModeRef BestMatchForMode (CGDirectDisplayID display, size_t bitsPerPixel, size_t width, size_t height, boolean_t &match)
 
CGDirectDisplayID GetDisplayIDFromScreen (NSScreen *screen)
 
int GetDisplayIndex (CGDirectDisplayID display)
 
void BlankOtherDisplays (int screen_index)
 
void UnblankDisplays (void)
 
CGDisplayFadeReservationToken DisplayFadeToBlack (bool fade)
 
void DisplayFadeFromBlack (CGDisplayFadeReservationToken fade_token, bool fade)
 
NSString * screenNameForDisplay (CGDirectDisplayID displayID)
 
int GetDisplayIndex (std::string dispName)
 
void ShowHideNSWindow (NSWindow *wind, bool show)
 
void fadeInDisplay (NSScreen *theScreen, double fadeTime)
 
void fadeOutDisplay (NSScreen *theScreen, double fadeTime)
 
CGDisplayModeRef GetMode (int width, int height, double refreshrate, int screenIdx)
 
void SDL_SetWidthHeight (int w, int h)
 

Variables

OSXTextInputResponderg_textInputResponder = nil
 

Macro Definition Documentation

◆ LOST_DEVICE_TIMEOUT_MS

#define LOST_DEVICE_TIMEOUT_MS   3000

◆ MAX_DISPLAYS

#define MAX_DISPLAYS   32

Function Documentation

◆ BestMatchForMode()

CGDisplayModeRef BestMatchForMode ( CGDirectDisplayID  display,
size_t  bitsPerPixel,
size_t  width,
size_t  height,
boolean_t &  match 
)

◆ BlankOtherDisplays()

void BlankOtherDisplays ( int  screen_index)

◆ CGRectToCRect()

CRect CGRectToCRect ( CGRect  cgrect)

◆ DisplayBitsPerPixelForMode()

size_t DisplayBitsPerPixelForMode ( CGDisplayModeRef  mode)

◆ DisplayFadeFromBlack()

void DisplayFadeFromBlack ( CGDisplayFadeReservationToken  fade_token,
bool  fade 
)

◆ DisplayFadeToBlack()

CGDisplayFadeReservationToken DisplayFadeToBlack ( bool  fade)

◆ fadeInDisplay()

void fadeInDisplay ( NSScreen *  theScreen,
double  fadeTime 
)

◆ fadeOutDisplay()

void fadeOutDisplay ( NSScreen *  theScreen,
double  fadeTime 
)

◆ GetAllDisplayModes()

CFArrayRef GetAllDisplayModes ( CGDirectDisplayID  display)

◆ GetDisplayID()

CGDirectDisplayID GetDisplayID ( int  screen_index)

◆ GetDisplayIDFromScreen()

CGDirectDisplayID GetDisplayIDFromScreen ( NSScreen *  screen)

◆ GetDisplayIndex() [1/2]

int GetDisplayIndex ( CGDirectDisplayID  display)

◆ GetDisplayIndex() [2/2]

int GetDisplayIndex ( std::string  dispName)

◆ GetMode()

CGDisplayModeRef GetMode ( int  width,
int  height,
double  refreshrate,
int  screenIdx 
)

◆ screenNameForDisplay()

NSString * screenNameForDisplay ( CGDirectDisplayID  displayID)

◆ SDL_SetWidthHeight()

void SDL_SetWidthHeight ( int  w,
int  h 
)

◆ SetMenuBarVisible()

void SetMenuBarVisible ( bool  visible)

◆ ShowHideNSWindow()

void ShowHideNSWindow ( NSWindow *  wind,
bool  show 
)

◆ UnblankDisplays()

void UnblankDisplays ( void  )

Variable Documentation

◆ g_textInputResponder

OSXTextInputResponder* g_textInputResponder = nil