summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/appkit/NSLevelIndicatorCell.inc
blob: 8e25e9bcba095c733b6ed8e40c0c0a4fe66857ec (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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{ Parsed from Appkit.framework NSLevelIndicatorCell.h }
{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Thu Sep 17 14:52:48 ICT 2009 }

{$ifdef HEADER}
{$ifndef NSLEVELINDICATORCELL_PAS_H}
{$define NSLEVELINDICATORCELL_PAS_H}
type
  NSLevelIndicatorCellPointer = Pointer;

{$endif}
{$endif}

{$ifdef TYPES}
{$ifndef NSLEVELINDICATORCELL_PAS_T}
{$define NSLEVELINDICATORCELL_PAS_T}

{ Constants }

const
  NSRelevancyLevelIndicatorStyle = 0;
  NSContinuousCapacityLevelIndicatorStyle = 1;
  NSDiscreteCapacityLevelIndicatorStyle = 2;
  NSRatingLevelIndicatorStyle = 3;

{ Types }
type
  NSLevelIndicatorStyle = NSUInteger;

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSLEVELINDICATORCELL_PAS_R}
{$define NSLEVELINDICATORCELL_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSLEVELINDICATORCELL_PAS_F}
{$define NSLEVELINDICATORCELL_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSLEVELINDICATORCELL_PAS_T}
{$define NSLEVELINDICATORCELL_PAS_T}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSLevelIndicatorCell = objcclass;

{$endif}

{$ifdef CLASSES}
{$ifndef NSLEVELINDICATORCELL_PAS_C}
{$define NSLEVELINDICATORCELL_PAS_C}

{ NSLevelIndicatorCell }
  NSLevelIndicatorCell = objcclass(NSActionCell)
  private
    __value: double;
    __minValue: double;
    __maxValue: double;
    __warningValue: double;
    __criticalValue: double;
    __numberOfTickMarks: cint;
    __numberOfMajorTickMarks: cint;
    __liFlags: bitpacked record
        indicatorStyle: 0..((1 shl 4)-1);
        tickMarkPosition: 0..1;
        selectable: 0..1;
        reserved: 0..((1 shl 26)-1);
      end;
    __cellFrame: NSRect;
    __reserved1: cint;
    __reserved2: cint;
    __reserved3: cint;
    __reserved4: cint;
    
  public
    class function alloc: NSLevelIndicatorCell; message 'alloc';

    function initWithLevelIndicatorStyle(levelIndicatorStyle_: NSLevelIndicatorStyle): id; message 'initWithLevelIndicatorStyle:';
    function levelIndicatorStyle: NSLevelIndicatorStyle; message 'levelIndicatorStyle';
    procedure setLevelIndicatorStyle(levelIndicatorStyle_: NSLevelIndicatorStyle); message 'setLevelIndicatorStyle:';
    function minValue: double; message 'minValue';
    procedure setMinValue(minValue_: double); message 'setMinValue:';
    function maxValue: double; message 'maxValue';
    procedure setMaxValue(maxValue_: double); message 'setMaxValue:';
    function warningValue: double; message 'warningValue';
    procedure setWarningValue(warningValue_: double); message 'setWarningValue:';
    function criticalValue: double; message 'criticalValue';
    procedure setCriticalValue(criticalValue_: double); message 'setCriticalValue:';
    procedure setTickMarkPosition(position: NSTickMarkPosition); message 'setTickMarkPosition:';
    function tickMarkPosition: NSTickMarkPosition; message 'tickMarkPosition';
    procedure setNumberOfTickMarks(count: NSInteger); message 'setNumberOfTickMarks:';
    function numberOfTickMarks: NSInteger; message 'numberOfTickMarks';
    procedure setNumberOfMajorTickMarks(count: NSInteger); message 'setNumberOfMajorTickMarks:';
    function numberOfMajorTickMarks: NSInteger; message 'numberOfMajorTickMarks';
    function rectOfTickMarkAtIndex(index: NSInteger): NSRect; message 'rectOfTickMarkAtIndex:';
    function tickMarkValueAtIndex(index: NSInteger): double; message 'tickMarkValueAtIndex:';
    procedure setImage(image_: NSImage); message 'setImage:';
  end; external;

{$endif}
{$endif}