NSAppearance.inc 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. { Parsed from AppKit.framework NSAppearance.h }
  2. {$ifdef TYPES}
  3. type
  4. NSAppearancePtr = ^NSAppearance;
  5. NSAppearanceCustomizationProtocolPtr = ^NSAppearanceCustomizationProtocol;
  6. {$endif}
  7. {$ifdef CLASSES}
  8. type
  9. NSAppearance = objcclass external (NSObject, NSCodingProtocol)
  10. private
  11. _name: NSString;
  12. _bundle: NSBundle;
  13. _private: pointer;
  14. _reserved: id;
  15. _auxiliary: id;
  16. {$if not defined(__LP64__)}
  17. _extra:array[0..1] of id;
  18. {$endif}
  19. public
  20. function name: NSString; message 'name';
  21. class function currentAppearance: NSAppearance; message 'currentAppearance';
  22. class procedure setCurrentAppearance (appearance: NSAppearance); message 'setCurrentAppearance:';
  23. class function appearanceNamed (name_: NSString): NSAppearance; message 'appearanceNamed:';
  24. function initWithAppearanceNamed_bundle (name_: NSString; bundle: NSBundle): instancetype; message 'initWithAppearanceNamed:bundle:';
  25. function allowsVibrancy: ObjCBOOL; message 'allowsVibrancy';
  26. { Adopted protocols }
  27. procedure encodeWithCoder (aCoder: NSCoder); message 'encodeWithCoder:';
  28. function initWithCoder (aDecoder: NSCoder): id; message 'initWithCoder:';
  29. end;
  30. {$endif}
  31. {$ifdef EXTERNAL_SYMBOLS}
  32. var
  33. NSAppearanceNameAqua: NSString { available in 10_9 }; cvar; external;
  34. NSAppearanceNameLightContent: NSString deprecated 'in 10_9, 10_10, "Light content should use the default Aqua apppearance."'; cvar; external;
  35. NSAppearanceNameVibrantDark: NSString { available in 10_10 }; cvar; external;
  36. NSAppearanceNameVibrantLight: NSString { available in 10_10 }; cvar; external;
  37. {$endif}
  38. {$ifdef PROTOCOLS}
  39. type
  40. NSAppearanceCustomizationProtocol = objcprotocol external name 'NSAppearanceCustomization' (NSObjectProtocol)
  41. required
  42. procedure setAppearance(newValue: NSAppearance); message 'setAppearance:';
  43. function appearance: NSAppearance; message 'appearance';
  44. function effectiveAppearance: NSAppearance; message 'effectiveAppearance';
  45. end;
  46. {$endif}