mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-23 12:09:51 +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)];
|
NSStringFromRect(_visibleFrame)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (NSDictionary<NSDeviceDescriptionKey, id> *) deviceDescription {
|
||||||
|
return @{};
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation NSScreen (Darling)
|
@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 <CoreGraphics/CGDirectDisplay.h>
|
||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
|
typedef NSString *NSDeviceDescriptionKey;
|
||||||
|
|
||||||
@interface NSScreen : NSObject {
|
@interface NSScreen : NSObject {
|
||||||
NSRect _frame;
|
NSRect _frame;
|
||||||
NSRect _visibleFrame;
|
NSRect _visibleFrame;
|
||||||
@ -27,6 +29,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|||||||
CGDirectDisplayID _directDisplayID;
|
CGDirectDisplayID _directDisplayID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@property(readonly, copy) NSDictionary<NSDeviceDescriptionKey, id> *deviceDescription;
|
||||||
|
|
||||||
+ (NSScreen *) mainScreen;
|
+ (NSScreen *) mainScreen;
|
||||||
|
|
||||||
+ (NSArray *) screens;
|
+ (NSArray *) screens;
|
||||||
|
Loading…
Reference in New Issue
Block a user