summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/appkit/NSGlyphGenerator.inc
blob: 135a58a1de0942976dc1f108c6b756295e2bceb3 (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
{ Parsed from Appkit.framework NSGlyphGenerator.h }
{ Version: 2.1.2 - Wed Dec 8 10:06:06 CET 2010 }


{$ifdef TYPES}
{$ifndef NSGLYPHGENERATOR_PAS_T}
{$define NSGLYPHGENERATOR_PAS_T}

{ Constants }

const
  NSShowControlGlyphs = 1 shl 0;
  NSShowInvisibleGlyphs = 1 shl 1;
  NSWantsBidiLevels = 1 shl 2;

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSGLYPHGENERATOR_PAS_R}
{$define NSGLYPHGENERATOR_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSGLYPHGENERATOR_PAS_F}
{$define NSGLYPHGENERATOR_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSGLYPHGENERATOR_PAS_S}
{$define NSGLYPHGENERATOR_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSGlyphStorageProtocol = objcprotocol;
  NSGlyphGenerator = objcclass;
  NSGlyphGeneratorPointer = ^NSGlyphGenerator;
  NSGlyphGeneratorPtr = NSGlyphGeneratorPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSGLYPHGENERATOR_PAS_C}
{$define NSGLYPHGENERATOR_PAS_C}

{ NSGlyphGenerator }
  NSGlyphGenerator = objcclass(NSObject)
    
  public
    class function alloc: NSGlyphGenerator; message 'alloc';

    procedure generateGlyphsForGlyphStorage_desiredNumberOfCharacters_glyphIndex_characterIndex(glyphStorage: id; nChars: NSUInteger; glyphIndex: NSUIntegerPtr; charIndex: NSUIntegerPtr); message 'generateGlyphsForGlyphStorage:desiredNumberOfCharacters:glyphIndex:characterIndex:';
    class function sharedGlyphGenerator: id; message 'sharedGlyphGenerator';
  end; external;

{$endif}
{$endif}
{$ifdef PROTOCOLS}
{$ifndef NSGLYPHGENERATOR_PAS_P}
{$define NSGLYPHGENERATOR_PAS_P}
  
{ NSGlyphStorage Protocol }
  NSGlyphStorageProtocol = objcprotocol
    procedure insertGlyphs_length_forStartingGlyphAtIndex_characterIndex(glyphs: NSGlyphPtr; length: NSUInteger; glyphIndex: NSUInteger; charIndex: NSUInteger); message 'insertGlyphs:length:forStartingGlyphAtIndex:characterIndex:';
    procedure setIntAttribute_value_forGlyphAtIndex(attributeTag: NSInteger; val: NSInteger; glyphIndex: NSUInteger); message 'setIntAttribute:value:forGlyphAtIndex:';
    function attributedString: NSAttributedString; message 'attributedString';
    function layoutOptions: NSUInteger; message 'layoutOptions';
  end; external name 'NSGlyphStorage';
{$endif}
{$endif}