blob: a71ff0df867bb6accbdd1aaca97d0dc9ac33727f (
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
|
{ Parsed from PDFKit.framework PDFAnnotationButtonWidget.h }
{ Types from PDFAnnotationButtonWidget }
{$ifdef TYPES}
{$endif}
{$ifdef TYPES}
type
PDFAnnotationButtonWidgetPtr = ^PDFAnnotationButtonWidget;
{$endif}
{$ifdef TYPES}
type
PDFWidgetControlType = NSInteger;
PDFWidgetControlTypePtr = ^PDFWidgetControlType;
const
kPDFWidgetUnknownControl = -1;
kPDFWidgetPushButtonControl = 0;
kPDFWidgetRadioButtonControl = 1;
kPDFWidgetCheckBoxControl = 2;
{$endif}
{$ifdef CLASSES}
type
PDFAnnotationButtonWidget = objcclass external (PDFAnnotation, NSCopyingProtocol)
private
_pdfPriv2: PDFAnnotationButtonWidgetPrivateVars;
public
function controlType: PDFWidgetControlType; message 'controlType';
{$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)}
procedure setControlType (type__: PDFWidgetControlType); message 'setControlType:';
{$endif}
function state: NSInteger; message 'state';
procedure setState (value: NSInteger); message 'setState:';
{$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)}
function isHighlighted: ObjCBOOL; message 'isHighlighted';
{$endif}
procedure setHighlighted (flag: ObjCBOOL); message 'setHighlighted:';
function backgroundColor: NSColor; message 'backgroundColor';
procedure setBackgroundColor (color_: NSColor); message 'setBackgroundColor:';
{$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)}
function allowsToggleToOff: ObjCBOOL; message 'allowsToggleToOff';
{$endif}
{$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)}
procedure setAllowsToggleToOff (allowOff: ObjCBOOL); message 'setAllowsToggleToOff:';
{$endif}
{$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)}
function font: NSFont; message 'font';
procedure setFont (font_: NSFont); message 'setFont:';
function fontColor: NSColor; message 'fontColor';
procedure setFontColor (color_: NSColor); message 'setFontColor:';
function caption: NSString; message 'caption';
procedure setCaption (name: NSString); message 'setCaption:';
function fieldName: NSString; message 'fieldName';
procedure setFieldName (name: NSString); message 'setFieldName:';
function onStateValue: NSString; message 'onStateValue';
procedure setOnStateValue (name: NSString); message 'setOnStateValue:';
{$endif}
end;
{$endif}
|