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)];
}
- (NSDictionary<NSDeviceDescriptionKey, id> *) deviceDescription {
return @{};
}
@end
@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 <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;