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