2
0

NSFontCollection.inc 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. { Parsed from AppKit.framework NSFontCollection.h }
  2. {$ifdef TYPES}
  3. type
  4. NSFontCollectionPtr = ^NSFontCollection;
  5. NSMutableFontCollectionPtr = ^NSMutableFontCollection;
  6. {$endif}
  7. {$ifdef TYPES}
  8. type
  9. NSFontCollectionVisibility = NSUInteger;
  10. NSFontCollectionVisibilityPtr = ^NSFontCollectionVisibility;
  11. const
  12. NSFontCollectionVisibilityProcess = 1 shl 0;
  13. NSFontCollectionVisibilityUser = 1 shl 1;
  14. NSFontCollectionVisibilityComputer = 1 shl 2;
  15. {$endif}
  16. {$ifdef CLASSES}
  17. type
  18. NSFontCollection = objcclass external (NSObject, NSCopyingProtocol, NSMutableCopyingProtocol, NSCodingProtocol)
  19. public
  20. class function fontCollectionWithDescriptors (queryDescriptors: NSArray): NSFontCollection; message 'fontCollectionWithDescriptors:';
  21. class function fontCollectionWithAllAvailableDescriptors: NSFontCollection; message 'fontCollectionWithAllAvailableDescriptors';
  22. class function fontCollectionWithLocale (locale: NSLocale): NSFontCollection; message 'fontCollectionWithLocale:';
  23. class function showFontCollection_withName_visibility_error (collection: NSFontCollection; name: NSString; visibility: NSFontCollectionVisibility; error: NSErrorPtr): ObjCBOOL; message 'showFontCollection:withName:visibility:error:';
  24. class function hideFontCollectionWithName_visibility_error (name: NSString; visibility: NSFontCollectionVisibility; error: NSErrorPtr): ObjCBOOL; message 'hideFontCollectionWithName:visibility:error:';
  25. class function renameFontCollectionWithName_visibility_toName_error (name: NSString; visibility: NSFontCollectionVisibility; name3: NSString; error: NSErrorPtr): ObjCBOOL; message 'renameFontCollectionWithName:visibility:toName:error:';
  26. class function allFontCollectionNames: NSArray; message 'allFontCollectionNames';
  27. class function fontCollectionWithName (name: NSString): NSFontCollection; message 'fontCollectionWithName:';
  28. class function fontCollectionWithName_visibility (name: NSString; visibility: NSFontCollectionVisibility): NSFontCollection; message 'fontCollectionWithName:visibility:';
  29. function queryDescriptors: NSArray; message 'queryDescriptors';
  30. function exclusionDescriptors: NSArray; message 'exclusionDescriptors';
  31. function matchingDescriptors: NSArray; message 'matchingDescriptors';
  32. function matchingDescriptorsWithOptions (options: NSDictionary): NSArray; message 'matchingDescriptorsWithOptions:';
  33. function matchingDescriptorsForFamily (family: NSString): NSArray; message 'matchingDescriptorsForFamily:';
  34. function matchingDescriptorsForFamily_options (family: NSString; options: NSDictionary): NSArray; message 'matchingDescriptorsForFamily:options:';
  35. { Adopted protocols }
  36. function copyWithZone (zone: NSZonePtr): id; message 'copyWithZone:';
  37. procedure encodeWithCoder (aCoder: NSCoder); message 'encodeWithCoder:';
  38. function initWithCoder (aDecoder: NSCoder): id; message 'initWithCoder:';
  39. function mutableCopyWithZone (zone: NSZonePtr): id; message 'mutableCopyWithZone:';
  40. end;
  41. type
  42. NSMutableFontCollection = objcclass external (NSFontCollection)
  43. public
  44. class function fontCollectionWithDescriptors (queryDescriptors_: NSArray): NSMutableFontCollection; message 'fontCollectionWithDescriptors:';
  45. class function fontCollectionWithAllAvailableDescriptors: NSMutableFontCollection; message 'fontCollectionWithAllAvailableDescriptors';
  46. class function fontCollectionWithLocale (locale: NSLocale): NSMutableFontCollection; message 'fontCollectionWithLocale:';
  47. class function fontCollectionWithName (name: NSString): NSMutableFontCollection; message 'fontCollectionWithName:';
  48. class function fontCollectionWithName_visibility (name: NSString; visibility: NSFontCollectionVisibility): NSMutableFontCollection; message 'fontCollectionWithName:visibility:';
  49. procedure setQueryDescriptors(newValue: NSArray); message 'setQueryDescriptors:';
  50. function queryDescriptors: NSArray; message 'queryDescriptors';
  51. procedure setExclusionDescriptors(newValue: NSArray); message 'setExclusionDescriptors:';
  52. function exclusionDescriptors: NSArray; message 'exclusionDescriptors';
  53. procedure addQueryForDescriptors (descriptors: NSArray); message 'addQueryForDescriptors:';
  54. procedure removeQueryForDescriptors (descriptors: NSArray); message 'removeQueryForDescriptors:';
  55. end;
  56. {$endif}
  57. {$ifdef EXTERNAL_SYMBOLS}
  58. var
  59. NSFontCollectionIncludeDisabledFontsOption: NSString { available in 10_7 }; cvar; external;
  60. NSFontCollectionRemoveDuplicatesOption: NSString { available in 10_7 }; cvar; external;
  61. NSFontCollectionDisallowAutoActivationOption: NSString { available in 10_7 }; cvar; external;
  62. NSFontCollectionDidChangeNotification: NSString { available in 10_7 }; cvar; external;
  63. NSFontCollectionActionKey: NSString { available in 10_7 }; cvar; external;
  64. NSFontCollectionNameKey: NSString { available in 10_7 }; cvar; external;
  65. NSFontCollectionOldNameKey: NSString { available in 10_7 }; cvar; external;
  66. NSFontCollectionVisibilityKey: NSString { available in 10_7 }; cvar; external;
  67. NSFontCollectionWasShown: NSString { available in 10_7 }; cvar; external;
  68. NSFontCollectionWasHidden: NSString { available in 10_7 }; cvar; external;
  69. NSFontCollectionWasRenamed: NSString { available in 10_7 }; cvar; external;
  70. NSFontCollectionAllFonts: NSString { available in 10_7 }; cvar; external;
  71. NSFontCollectionUser: NSString { available in 10_7 }; cvar; external;
  72. NSFontCollectionFavorites: NSString { available in 10_7 }; cvar; external;
  73. NSFontCollectionRecentlyUsed: NSString { available in 10_7 }; cvar; external;
  74. {$endif}