xbmc
TVOSDisplayManager.h
1 /*
2  * Copyright (C) 2019 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #import <CoreGraphics/CGBase.h>
10 #import <CoreGraphics/CGGeometry.h>
11 #import <Foundation/Foundation.h>
12 
13 @class CADisplayLink;
14 
15 class CWinSystemTVOS;
16 
17 @interface TVOSDisplayManager : NSObject
18 {
19  CADisplayLink* m_displayLink;
20  CWinSystemTVOS* m_winSystem;
21  float m_displayRate;
22  CGSize m_screensize;
23 }
24 
25 @property(readwrite) CGFloat screenScale;
26 
27 - (float)getDisplayRate;
28 - (void)displayLinkTick:(CADisplayLink*)sender;
29 - (void)displayRateSwitch:(float)refreshRate withDynamicRange:(int)dynamicRange;
30 - (void)displayRateReset;
31 - (void)removeModeSwitchObserver;
32 - (void)addModeSwitchObserver;
33 - (void)observeValueForKeyPath:(NSString*)keyPath
34  ofObject:(id)object
35  change:(NSDictionary*)change
36  context:(void*)context;
37 - (const char*)stringFromDynamicRange:(int)dynamicRange;
38 - (CGSize)getScreenSize;
39 - (instancetype)init;
40 @end
Definition: TVOSDisplayManager.h:17
Definition: WinSystemTVOS.h:27