summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/foundation/NSPointerFunctions.inc
blob: c0ec7c0ac2e5f0cadb01e1eb1a821f189b3ae135 (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
80
81
82
83
84
85
86
87
88
89
90
91
{ Parsed from Foundation.framework NSPointerFunctions.h }

{$ifdef TYPES}
{$ifndef NSPOINTERFUNCTIONS_PAS_T}
{$define NSPOINTERFUNCTIONS_PAS_T}

{ Constants }

const
  NSPointerFunctionsStrongMemory = 0 shl 0;
  NSPointerFunctionsZeroingWeakMemory = 1 shl 0;
  NSPointerFunctionsOpaqueMemory = 2 shl 0;
  NSPointerFunctionsMallocMemory = 3 shl 0;
  NSPointerFunctionsMachVirtualMemory = 4 shl 0;
  NSPointerFunctionsObjectPersonality = 0 shl 8;
  NSPointerFunctionsOpaquePersonality = 1 shl 8;
  NSPointerFunctionsObjectPointerPersonality = 2 shl 8;
  NSPointerFunctionsCStringPersonality = 3 shl 8;
  NSPointerFunctionsStructPersonality = 4 shl 8;
  NSPointerFunctionsIntegerPersonality = 5 shl 8;
  NSPointerFunctionsCopyIn = 1 shl 16;

{ Types }
type
  NSPointerFunctionsOptions = NSUInteger;
  NSPointerFunctionsOptionsPointer = ^NSPointerFunctionsOptions;
  NSPointerFunctionsOptionsPtr = NSPointerFunctionsOptionsPointer;

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSPOINTERFUNCTIONS_PAS_R}
{$define NSPOINTERFUNCTIONS_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSPOINTERFUNCTIONS_PAS_F}
{$define NSPOINTERFUNCTIONS_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSPOINTERFUNCTIONS_PAS_S}
{$define NSPOINTERFUNCTIONS_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSPointerFunctions = objcclass;
  NSPointerFunctionsPtr = ^NSPointerFunctions;

{$endif}

{$ifdef CLASSES}
{$ifndef NSPOINTERFUNCTIONS_PAS_C}
{$define NSPOINTERFUNCTIONS_PAS_C}

{ NSPointerFunctions }
  NSPointerFunctions = objcclass external (NSObject, NSCopyingProtocol)
    
  public
    function initWithOptions(options: NSPointerFunctionsOptions): id; message 'initWithOptions:';
    class function pointerFunctionsWithOptions(options: NSPointerFunctionsOptions): id; message 'pointerFunctionsWithOptions:';
(*
    procedure setItem (newValue: NSUInteger); message 'setItem:';
    function item: NSUInteger; message 'item';
    procedure setItem1 (newValue: Boolean); message 'setItem1:';
    function item1: Boolean; message 'item1';
    procedure setItem2 (newValue: Boolean); message 'setItem2:';
    function item2: Boolean; message 'item2';
    procedure set_ (newValue: NSUInteger); message 'set_:';
    function : NSUInteger; message '';
    procedure setSrc (newValue: Pointer); message 'setSrc:';
    function src: Pointer; message 'src';
*)
    procedure setUsesStrongWriteBarrier (newValue: Boolean); message 'setUsesStrongWriteBarrier:';
    function usesStrongWriteBarrier: Boolean; message 'usesStrongWriteBarrier';
    procedure setUsesWeakReadAndWriteBarriers (newValue: Boolean); message 'setUsesWeakReadAndWriteBarriers:';
    function usesWeakReadAndWriteBarriers: Boolean; message 'usesWeakReadAndWriteBarriers';

    { Adopted Protocols }
    function copyWithZone(zone_: NSZonePtr): id;
  end;

{$endif}
{$endif}