blob: 15c421db705298135599a07496596f7d9344dd27 (
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
|
{ Parsed from Appkit.framework NSLevelIndicatorCell.h }
{$ifdef TYPES}
{$ifndef NSLEVELINDICATORCELL_PAS_T}
{$define NSLEVELINDICATORCELL_PAS_T}
{ Constants }
const
NSRelevancyLevelIndicatorStyle = 0;
NSContinuousCapacityLevelIndicatorStyle = 1;
NSDiscreteCapacityLevelIndicatorStyle = 2;
NSRatingLevelIndicatorStyle = 3;
{ Types }
type
NSLevelIndicatorStyle = NSUInteger;
NSLevelIndicatorStylePtr = ^NSLevelIndicatorStyle;
{$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_S}
{$define NSLEVELINDICATORCELL_PAS_S}
{$endif}
{$endif}
{$ifdef FORWARD}
NSLevelIndicatorCell = objcclass;
NSLevelIndicatorCellPointer = ^NSLevelIndicatorCell;
NSLevelIndicatorCellPtr = NSLevelIndicatorCellPointer;
{$endif}
{$ifdef CLASSES}
{$ifndef NSLEVELINDICATORCELL_PAS_C}
{$define NSLEVELINDICATORCELL_PAS_C}
{ NSLevelIndicatorCell }
NSLevelIndicatorCell = objcclass external (NSActionCell)
private
_value: double;
_minValue: double;
_maxValue: double;
_warningValue: double;
_criticalValue: double;
_numberOfTickMarks: cint;
_numberOfMajorTickMarks: cint;
__liFlags: record
case byte of
0: (_anonbitfield_NSLevelIndicatorCell0: cuint);
1: (data: bitpacked record
indicatorStyle: 0..((1 shl 4)-1);
_tickMarkPosition: 0..1;
selectable: 0..1;
reserved: 0..((1 shl 26)-1);
end;
);
end;
_cellFrame: NSRect;
_reserved1: cint;
_reserved2: cint;
_reserved3: cint;
_reserved4: cint;
public
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;
{$endif}
{$endif}
|