mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-23 04:00:00 +00:00
Merge pull request #36 from sirnacnud/nsscreen
Stub out NSScreen deviceDescription
This commit is contained in:
commit
ad281f226c
@ -69,6 +69,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
NSStringFromRect(_visibleFrame)];
|
||||
}
|
||||
|
||||
- (NSDictionary<NSDeviceDescriptionKey, id> *) deviceDescription {
|
||||
return @{};
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSScreen (Darling)
|
||||
|
@ -20,6 +20,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
#import <CoreGraphics/CGDirectDisplay.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
typedef NSString *NSDeviceDescriptionKey;
|
||||
|
||||
@interface NSScreen : NSObject {
|
||||
NSRect _frame;
|
||||
NSRect _visibleFrame;
|
||||
@ -27,6 +29,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
CGDirectDisplayID _directDisplayID;
|
||||
}
|
||||
|
||||
@property(readonly, copy) NSDictionary<NSDeviceDescriptionKey, id> *deviceDescription;
|
||||
|
||||
+ (NSScreen *) mainScreen;
|
||||
|
||||
+ (NSArray *) screens;
|
||||
|
Loading…
Reference in New Issue
Block a user