summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/appkit/NSTrackingArea.inc
blob: f1a0dca6d09f9d9cd32205c6e46938622b558dcd (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
92
93
{ Parsed from Appkit.framework NSTrackingArea.h }
{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }

{$ifdef HEADER}
{$ifndef NSTRACKINGAREA_PAS_H}
{$define NSTRACKINGAREA_PAS_H}
type
  NSTrackingAreaPointer = Pointer;

{$endif}
{$endif}

{$ifdef TYPES}
{$ifndef NSTRACKINGAREA_PAS_T}
{$define NSTRACKINGAREA_PAS_T}

{ Constants }

const
  NSTrackingMouseEnteredAndExited = $01;
  NSTrackingMouseMoved = $02;
  NSTrackingCursorUpdate = $04;

const
  NSTrackingActiveWhenFirstResponder = $10;
  NSTrackingActiveInKeyWindow = $20;
  NSTrackingActiveInActiveApp = $40;
  NSTrackingActiveAlways = $80;

const
  NSTrackingAssumeInside = $100;
  NSTrackingInVisibleRect = $200;
  NSTrackingEnabledDuringMouseDrag = $400;

{ Types }
type
  NSTrackingAreaOptions = culong;

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSTRACKINGAREA_PAS_R}
{$define NSTRACKINGAREA_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSTRACKINGAREA_PAS_F}
{$define NSTRACKINGAREA_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSTRACKINGAREA_PAS_T}
{$define NSTRACKINGAREA_PAS_T}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSTrackingArea = objcclass;

{$endif}

{$ifdef CLASSES}
{$ifndef NSTRACKINGAREA_PAS_C}
{$define NSTRACKINGAREA_PAS_C}

{ NSTrackingArea }
  NSTrackingArea = objcclass(NSObject, NSCopyingProtocol, NSCodingProtocol)
  private
    __rect: NSRect;
    __owner: id; {garbage collector: __weak }
    __userInfo: NSDictionary;
    __options: NSTrackingAreaOptions;
    __privateFlags: clong;
    __reserved: Pointer;
    
  public
    class function alloc: NSTrackingArea; message 'alloc';

    function initWithRect_options_owner_userInfo(rect_: NSRect; options_: NSTrackingAreaOptions; owner_: id; userInfo_: NSDictionary): NSTrackingArea; message 'initWithRect:options:owner:userInfo:';
    function rect: NSRect; message 'rect';
    function options: NSTrackingAreaOptions; message 'options';
    function owner: id; message 'owner';
    function userInfo: NSDictionary; message 'userInfo';
  end; external;

{$endif}
{$endif}