summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/quartzcore/CIVector.inc
blob: 2e09e63fd5c74ddc1eadbdc53de4b218d8ef71e4 (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
{ Parsed from Quartzcore.framework CIVector.h }

{$ifdef TYPES}
{$ifndef CIVECTOR_PAS_T}
{$define CIVECTOR_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef CIVECTOR_PAS_R}
{$define CIVECTOR_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef CIVECTOR_PAS_F}
{$define CIVECTOR_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef CIVECTOR_PAS_S}
{$define CIVECTOR_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  CIVector = objcclass;
  CIVectorPointer = ^CIVector;
  CIVectorPtr = CIVectorPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef CIVECTOR_PAS_C}
{$define CIVECTOR_PAS_C}

{ CIVector }
  CIVector = objcclass external (NSObject, NSCopyingProtocol, NSCodingProtocol)
  private
    _count: size_t;
    vec: array[0..(4)-1] of CGFloat;
    ptr: CGFloatPtr;
    __u: record
      end;
    
  public
    class function vectorWithValues_count(values: CGFloatPtr; count_: size_t): CIVector; message 'vectorWithValues:count:';
    class function vectorWithX(x_: CGFloat): CIVector; message 'vectorWithX:';
    class function vectorWithX_Y(x_: CGFloat; y_: CGFloat): CIVector; message 'vectorWithX:Y:';
    class function vectorWithX_Y_Z(x_: CGFloat; y_: CGFloat; z_: CGFloat): CIVector; message 'vectorWithX:Y:Z:';
    class function vectorWithX_Y_Z_W(x_: CGFloat; y_: CGFloat; z_: CGFloat; w_: CGFloat): CIVector; message 'vectorWithX:Y:Z:W:';
    class function vectorWithString(representation: NSString): CIVector; message 'vectorWithString:';
    function initWithValues_count(values: CGFloatPtr; count_: size_t): id; message 'initWithValues:count:';
    function initWithX(x_: CGFloat): id; message 'initWithX:';
    function initWithX_Y(x_: CGFloat; y_: CGFloat): id; message 'initWithX:Y:';
    function initWithX_Y_Z(x_: CGFloat; y_: CGFloat; z_: CGFloat): id; message 'initWithX:Y:Z:';
    function initWithX_Y_Z_W(x_: CGFloat; y_: CGFloat; z_: CGFloat; w_: CGFloat): id; message 'initWithX:Y:Z:W:';
    function initWithString(representation: NSString): id; message 'initWithString:';
    function valueAtIndex(index: size_t): CGFloat; message 'valueAtIndex:';
    function count: size_t; message 'count';
    function X: CGFloat; message 'X';
    function Y: CGFloat; message 'Y';
    function Z: CGFloat; message 'Z';
    function W: CGFloat; message 'W';
    function stringRepresentation: NSString; message 'stringRepresentation';

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

{$endif}
{$endif}