PageRenderTime 28ms CodeModel.GetById 22ms app.highlight 5ms RepoModel.GetById 0ms app.codeStats 0ms

/packages/cocoaint/src/appkit/NSGlyphInfo.inc

https://github.com/slibre/freepascal
Pascal | 77 lines | 27 code | 18 blank | 32 comment | 0 complexity | 3f03837594bd04227f9b84b8b9774ebf MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
 1{ Parsed from Appkit.framework NSGlyphInfo.h }
 2
 3{$ifdef TYPES}
 4{$ifndef NSGLYPHINFO_PAS_T}
 5{$define NSGLYPHINFO_PAS_T}
 6
 7{ Constants }
 8
 9const
10  NSIdentityMappingCharacterCollection = 0;
11  NSAdobeCNS1CharacterCollection = 1;
12  NSAdobeGB1CharacterCollection = 2;
13  NSAdobeJapan1CharacterCollection = 3;
14  NSAdobeJapan2CharacterCollection = 4;
15  NSAdobeKorea1CharacterCollection = 5;
16
17{ Types }
18type
19  NSCharacterCollection = NSUInteger;
20  NSCharacterCollectionPtr = ^NSCharacterCollection;
21
22{$endif}
23{$endif}
24
25{$ifdef RECORDS}
26{$ifndef NSGLYPHINFO_PAS_R}
27{$define NSGLYPHINFO_PAS_R}
28
29{$endif}
30{$endif}
31
32{$ifdef FUNCTIONS}
33{$ifndef NSGLYPHINFO_PAS_F}
34{$define NSGLYPHINFO_PAS_F}
35
36{$endif}
37{$endif}
38
39{$ifdef EXTERNAL_SYMBOLS}
40{$ifndef NSGLYPHINFO_PAS_S}
41{$define NSGLYPHINFO_PAS_S}
42
43{$endif}
44{$endif}
45
46{$ifdef FORWARD}
47  NSGlyphInfo = objcclass;
48  NSGlyphInfoPointer = ^NSGlyphInfo;
49  NSGlyphInfoPtr = NSGlyphInfoPointer;
50
51{$endif}
52
53{$ifdef CLASSES}
54{$ifndef NSGLYPHINFO_PAS_C}
55{$define NSGLYPHINFO_PAS_C}
56
57{ NSGlyphInfo }
58  NSGlyphInfo = objcclass external (NSObject, NSCopyingProtocol, NSCodingProtocol)
59  private
60    _baseString: NSString;
61    
62  public
63    class function glyphInfoWithGlyphName_forFont_baseString(glyphName_: NSString; font: NSFont; theString: NSString): NSGlyphInfo; message 'glyphInfoWithGlyphName:forFont:baseString:';
64    class function glyphInfoWithGlyph_forFont_baseString(glyph: NSGlyph; font: NSFont; theString: NSString): NSGlyphInfo; message 'glyphInfoWithGlyph:forFont:baseString:';
65    class function glyphInfoWithCharacterIdentifier_collection_baseString(cid: NSUInteger; characterCollection_: NSCharacterCollection; theString: NSString): NSGlyphInfo; message 'glyphInfoWithCharacterIdentifier:collection:baseString:';
66    function glyphName: NSString; message 'glyphName';
67    function characterIdentifier: NSUInteger; message 'characterIdentifier';
68    function characterCollection: NSCharacterCollection; message 'characterCollection';
69
70    { Adopted Protocols }
71    function copyWithZone(zone_: NSZonePtr): id;
72    procedure encodeWithCoder(aCoder: NSCoder);
73    function initWithCoder(aDecoder: NSCoder): id;
74  end;
75
76{$endif}
77{$endif}