-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDisplayInfo.h
36 lines (30 loc) · 1.1 KB
/
DisplayInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// DisplayInfo.h
// AXRecord
//
// Created by Christian Frisson on 06/02/17.
// Copyright © 2016 Christian Frisson. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface DisplayInfo : NSObject
@property CGDirectDisplayID displayID;
@property NSNumber* screenNumber;
@property CGSize screenSize; // width and height of a display in millimeters.
@property double screenRotation; // rotation angle of a display in degrees
@property BOOL active;
@property BOOL main;
@property CGRect displayBounds; // bounds of the display, expressed as a rectangle in the global display coordinate space (relative to the upper-left corner of the main display).
@property long pixelsHigh;// display height in pixel units.
@property long pixelsWide;// display width in pixel units.
-(id)initWithDisplayID:(CGDirectDisplayID)displayID
screenNumber:(NSNumber*)screenNumber
screenSize:(CGSize)screenSize
screenRotation:(double)screenRotation
active:(BOOL)active
main:(BOOL)main
displayBounds:(CGRect)displayBounds
pixelsHigh:(long)pixelsHigh
pixelsWide:(long)pixelsWide
;
-(NSNumber *)displayIDNumber;
@end