blob: f60a34af19fe968fa8d00f53a72da034f5ce9b9f (
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
|
{ Parsed from Appkit.framework NSColorWell.h }
{$ifdef TYPES}
{$ifndef NSCOLORWELL_PAS_T}
{$define NSCOLORWELL_PAS_T}
{$endif}
{$endif}
{$ifdef RECORDS}
{$ifndef NSCOLORWELL_PAS_R}
{$define NSCOLORWELL_PAS_R}
{$endif}
{$endif}
{$ifdef FUNCTIONS}
{$ifndef NSCOLORWELL_PAS_F}
{$define NSCOLORWELL_PAS_F}
{$endif}
{$endif}
{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSCOLORWELL_PAS_S}
{$define NSCOLORWELL_PAS_S}
{$endif}
{$endif}
{$ifdef FORWARD}
NSColorWell = objcclass;
NSColorWellPointer = ^NSColorWell;
NSColorWellPtr = NSColorWellPointer;
{$endif}
{$ifdef CLASSES}
{$ifndef NSCOLORWELL_PAS_C}
{$define NSCOLORWELL_PAS_C}
{ NSColorWell }
NSColorWell = objcclass external (NSControl)
private
_color: NSColor;
_target: id;
_action: SEL;
__cwFlags: record
case byte of
0: (_anonbitfield_NSColorWell0: cuint);
1: (data: bitpacked record
_isActive: 0..1;
_isBordered: 0..1;
cantDraw: 0..1;
isNotContinuous: 0..1;
reservedColorWell: 0..((1 shl 28)-1);
end;
);
end;
public
procedure deactivate; message 'deactivate';
procedure activate(exclusive: Boolean); message 'activate:';
function isActive: Boolean; message 'isActive';
procedure drawWellInside(insideRect: NSRect); message 'drawWellInside:';
function isBordered: Boolean; message 'isBordered';
procedure setBordered(flag: Boolean); message 'setBordered:';
procedure takeColorFrom(sender: id); message 'takeColorFrom:';
procedure setColor(color_: NSColor); message 'setColor:';
function color: NSColor; message 'color';
end;
{$endif}
{$endif}
|