summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/appkit/NSGlyphInfo.inc
blob: 869a20c7d95eeb399a548b47708e750261e27a96 (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
{ Parsed from Appkit.framework NSGlyphInfo.h }

{$ifdef TYPES}
{$ifndef NSGLYPHINFO_PAS_T}
{$define NSGLYPHINFO_PAS_T}

{ Constants }

const
  NSIdentityMappingCharacterCollection = 0;
  NSAdobeCNS1CharacterCollection = 1;
  NSAdobeGB1CharacterCollection = 2;
  NSAdobeJapan1CharacterCollection = 3;
  NSAdobeJapan2CharacterCollection = 4;
  NSAdobeKorea1CharacterCollection = 5;

{ Types }
type
  NSCharacterCollection = NSUInteger;
  NSCharacterCollectionPtr = ^NSCharacterCollection;

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSGLYPHINFO_PAS_R}
{$define NSGLYPHINFO_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSGLYPHINFO_PAS_F}
{$define NSGLYPHINFO_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSGLYPHINFO_PAS_S}
{$define NSGLYPHINFO_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSGlyphInfo = objcclass;
  NSGlyphInfoPointer = ^NSGlyphInfo;
  NSGlyphInfoPtr = NSGlyphInfoPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSGLYPHINFO_PAS_C}
{$define NSGLYPHINFO_PAS_C}

{ NSGlyphInfo }
  NSGlyphInfo = objcclass external (NSObject, NSCopyingProtocol, NSCodingProtocol)
  private
    _baseString: NSString;
    
  public
    class function glyphInfoWithGlyphName_forFont_baseString(glyphName_: NSString; font: NSFont; theString: NSString): NSGlyphInfo; message 'glyphInfoWithGlyphName:forFont:baseString:';
    class function glyphInfoWithGlyph_forFont_baseString(glyph: NSGlyph; font: NSFont; theString: NSString): NSGlyphInfo; message 'glyphInfoWithGlyph:forFont:baseString:';
    class function glyphInfoWithCharacterIdentifier_collection_baseString(cid: NSUInteger; characterCollection_: NSCharacterCollection; theString: NSString): NSGlyphInfo; message 'glyphInfoWithCharacterIdentifier:collection:baseString:';
    function glyphName: NSString; message 'glyphName';
    function characterIdentifier: NSUInteger; message 'characterIdentifier';
    function characterCollection: NSCharacterCollection; message 'characterCollection';

    { Adopted Protocols }
    function copyWithZone(zone_: NSZonePtr): id;
    procedure encodeWithCoder(aCoder: NSCoder);
    function initWithCoder(aDecoder: NSCoder): id;
  end;

{$endif}
{$endif}