summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/quartzcore/CATextLayer.inc
blob: fac0ffeabd986a885233ba5d1ddba4e7c7abdae2 (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 Quartzcore.framework CATextLayer.h }

{$ifdef TYPES}
{$ifndef CATEXTLAYER_PAS_T}
{$define CATEXTLAYER_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef CATEXTLAYER_PAS_R}
{$define CATEXTLAYER_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef CATEXTLAYER_PAS_F}
{$define CATEXTLAYER_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef CATEXTLAYER_PAS_S}
{$define CATEXTLAYER_PAS_S}

{ External string constants }
var
  kCATruncationNone: NSString; cvar; external;
  kCATruncationStart: NSString; cvar; external;
  kCATruncationEnd: NSString; cvar; external;
  kCATruncationMiddle: NSString; cvar; external;
  kCAAlignmentNatural: NSString; cvar; external;
  kCAAlignmentLeft: NSString; cvar; external;
  kCAAlignmentRight: NSString; cvar; external;
  kCAAlignmentCenter: NSString; cvar; external;
  kCAAlignmentJustified: NSString; cvar; external;

{$endif}
{$endif}

{$ifdef FORWARD}
  CATextLayer = objcclass;
  CATextLayerPointer = ^CATextLayer;
  CATextLayerPtr = CATextLayerPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef CATEXTLAYER_PAS_C}
{$define CATEXTLAYER_PAS_C}

{ CATextLayer }
  CATextLayer = objcclass external (CALayer)
  private
    __state: Pointer;
    
  public
    procedure setString (newValue: id); message 'setString:';
    function string_: id; message 'string_';
    procedure setFont (newValue: CFTypeRef); message 'setFont:';
    function font: CFTypeRef; message 'font';
    procedure setFontSize (newValue: CGFloat); message 'setFontSize:';
    function fontSize: CGFloat; message 'fontSize';
    procedure setForegroundColor (newValue: CGColorRef); message 'setForegroundColor:';
    function foregroundColor: CGColorRef; message 'foregroundColor';
    procedure setWrapped (newValue: Boolean); message 'setWrapped:';
    function isWrapped: Boolean; message 'isWrapped';
    procedure setTruncationMode (newValue: NSString); message 'setTruncationMode:';
    function truncationMode: NSString; message 'truncationMode';
    procedure setAlignmentMode (newValue: NSString); message 'setAlignmentMode:';
    function alignmentMode: NSString; message 'alignmentMode';
  end;

{$endif}
{$endif}