Stub out NSScreen deviceDescription

This commit is contained in:
Duncan Cunningham 2024-02-09 21:59:44 +01:00
parent 7ea8bb5c26
commit 41a67f02bb
2 changed files with 8 additions and 0 deletions

View File

@ -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)

View File

@ -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;