Merge pull request #36 from sirnacnud/nsscreen

Stub out NSScreen deviceDescription
This commit is contained in:
CuriousTommy 2024-02-16 09:35:13 -08:00 committed by GitHub
commit ad281f226c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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;