1{ Parsed from AppKit.framework NSScreen.h }
2
3
4{$ifdef TYPES}
5type
6  NSScreenPtr = ^NSScreen;
7{$endif}
8
9{$ifdef TYPES}
10type
11  NSScreenAuxiliaryOpaque = OpaqueType;
12  NSScreenAuxiliaryOpaquePtr = ^NSScreenAuxiliaryOpaque;
13{$endif}
14
15{$ifdef CLASSES}
16
17type
18  NSScreen = objcclass external (NSObject)
19  private
20    _frame: NSRect;
21    _depth: NSWindowDepth;
22    _screenNumber: cint;
23    _auxiliaryStorage: id;
24  public
25    class function screens: NSArray; message 'screens';
26    class function mainScreen: NSScreen; message 'mainScreen';
27    class function deepestScreen: NSScreen; message 'deepestScreen';
28    class function screensHaveSeparateSpaces: ObjCBOOL; message 'screensHaveSeparateSpaces'; { available in 10_9 }
29    function depth: NSWindowDepth; message 'depth';
30    function frame: NSRect; message 'frame';
31    function visibleFrame: NSRect; message 'visibleFrame';
32    function deviceDescription: NSDictionary; message 'deviceDescription';
33    function colorSpace: NSColorSpace; message 'colorSpace';
34    function supportedWindowDepths: NSWindowDepthPtr; message 'supportedWindowDepths';
35    function convertRectToBacking (aRect: NSRect): NSRect; message 'convertRectToBacking:'; { available in 10_7 }
36    function convertRectFromBacking (aRect: NSRect): NSRect; message 'convertRectFromBacking:'; { available in 10_7 }
37    function backingAlignedRect_options (aRect: NSRect; options: NSAlignmentOptions): NSRect; message 'backingAlignedRect:options:'; { available in 10_7 }
38    function backingScaleFactor: CGFloat; message 'backingScaleFactor';
39  end;
40{$endif}
41
42{$ifdef EXTERNAL_SYMBOLS}
43var
44  NSScreenColorSpaceDidChangeNotification: NSString { available in 10_6 }; cvar; external;
45{$endif}
46
47{$ifdef CLASSES}
48
49type
50  NSScreen_NSDeprecated = objccategory external name 'NSDeprecated' (NSScreen)
51    function userSpaceScaleFactor: CGFloat; message 'userSpaceScaleFactor'; deprecated 'in 10_4, 10_7, "Use -convertRectToBacking: or -backingScaleFactor instead"';
52  end;
53{$endif}
54
55