objc2_pdf_kit/generated/
PDFAnnotationUtilities.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-app-kit")]
7#[cfg(target_os = "macos")]
8use objc2_app_kit::*;
9use objc2_foundation::*;
10
11use crate::*;
12
13/// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdflinestyle?language=objc)
14// NS_ENUM
15#[repr(transparent)]
16#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
17pub struct PDFLineStyle(pub NSInteger);
18impl PDFLineStyle {
19    #[doc(alias = "kPDFLineStyleNone")]
20    pub const None: Self = Self(0);
21    #[doc(alias = "kPDFLineStyleSquare")]
22    pub const Square: Self = Self(1);
23    #[doc(alias = "kPDFLineStyleCircle")]
24    pub const Circle: Self = Self(2);
25    #[doc(alias = "kPDFLineStyleDiamond")]
26    pub const Diamond: Self = Self(3);
27    #[doc(alias = "kPDFLineStyleOpenArrow")]
28    pub const OpenArrow: Self = Self(4);
29    #[doc(alias = "kPDFLineStyleClosedArrow")]
30    pub const ClosedArrow: Self = Self(5);
31}
32
33unsafe impl Encode for PDFLineStyle {
34    const ENCODING: Encoding = NSInteger::ENCODING;
35}
36
37unsafe impl RefEncode for PDFLineStyle {
38    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
39}
40
41/// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdftextannotationicontype?language=objc)
42// NS_ENUM
43#[repr(transparent)]
44#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
45pub struct PDFTextAnnotationIconType(pub NSInteger);
46impl PDFTextAnnotationIconType {
47    #[doc(alias = "kPDFTextAnnotationIconComment")]
48    pub const Comment: Self = Self(0);
49    #[doc(alias = "kPDFTextAnnotationIconKey")]
50    pub const Key: Self = Self(1);
51    #[doc(alias = "kPDFTextAnnotationIconNote")]
52    pub const Note: Self = Self(2);
53    #[doc(alias = "kPDFTextAnnotationIconHelp")]
54    pub const Help: Self = Self(3);
55    #[doc(alias = "kPDFTextAnnotationIconNewParagraph")]
56    pub const NewParagraph: Self = Self(4);
57    #[doc(alias = "kPDFTextAnnotationIconParagraph")]
58    pub const Paragraph: Self = Self(5);
59    #[doc(alias = "kPDFTextAnnotationIconInsert")]
60    pub const Insert: Self = Self(6);
61}
62
63unsafe impl Encode for PDFTextAnnotationIconType {
64    const ENCODING: Encoding = NSInteger::ENCODING;
65}
66
67unsafe impl RefEncode for PDFTextAnnotationIconType {
68    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
69}
70
71/// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfmarkuptype?language=objc)
72// NS_ENUM
73#[repr(transparent)]
74#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
75pub struct PDFMarkupType(pub NSInteger);
76impl PDFMarkupType {
77    #[doc(alias = "kPDFMarkupTypeHighlight")]
78    pub const Highlight: Self = Self(0);
79    #[doc(alias = "kPDFMarkupTypeStrikeOut")]
80    pub const StrikeOut: Self = Self(1);
81    #[doc(alias = "kPDFMarkupTypeUnderline")]
82    pub const Underline: Self = Self(2);
83    #[doc(alias = "kPDFMarkupTypeRedact")]
84    pub const Redact: Self = Self(3);
85}
86
87unsafe impl Encode for PDFMarkupType {
88    const ENCODING: Encoding = NSInteger::ENCODING;
89}
90
91unsafe impl RefEncode for PDFMarkupType {
92    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
93}
94
95/// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfwidgetcontroltype?language=objc)
96// NS_ENUM
97#[repr(transparent)]
98#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
99pub struct PDFWidgetControlType(pub NSInteger);
100impl PDFWidgetControlType {
101    #[doc(alias = "kPDFWidgetUnknownControl")]
102    pub const UnknownControl: Self = Self(-1);
103    #[doc(alias = "kPDFWidgetPushButtonControl")]
104    pub const PushButtonControl: Self = Self(0);
105    #[doc(alias = "kPDFWidgetRadioButtonControl")]
106    pub const RadioButtonControl: Self = Self(1);
107    #[doc(alias = "kPDFWidgetCheckBoxControl")]
108    pub const CheckBoxControl: Self = Self(2);
109}
110
111unsafe impl Encode for PDFWidgetControlType {
112    const ENCODING: Encoding = NSInteger::ENCODING;
113}
114
115unsafe impl RefEncode for PDFWidgetControlType {
116    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
117}
118
119/// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfwidgetcellstate?language=objc)
120// NS_ENUM
121#[repr(transparent)]
122#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
123pub struct PDFWidgetCellState(pub NSInteger);
124impl PDFWidgetCellState {
125    #[doc(alias = "kPDFWidgetMixedState")]
126    pub const MixedState: Self = Self(-1);
127    #[doc(alias = "kPDFWidgetOffState")]
128    pub const OffState: Self = Self(0);
129    #[doc(alias = "kPDFWidgetOnState")]
130    pub const OnState: Self = Self(1);
131}
132
133unsafe impl Encode for PDFWidgetCellState {
134    const ENCODING: Encoding = NSInteger::ENCODING;
135}
136
137unsafe impl RefEncode for PDFWidgetCellState {
138    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
139}
140
141extern "C" {
142    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationsubtypetext?language=objc)
143    #[cfg(feature = "PDFAnnotation")]
144    pub static PDFAnnotationSubtypeText: &'static PDFAnnotationSubtype;
145}
146
147extern "C" {
148    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationsubtypelink?language=objc)
149    #[cfg(feature = "PDFAnnotation")]
150    pub static PDFAnnotationSubtypeLink: &'static PDFAnnotationSubtype;
151}
152
153extern "C" {
154    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationsubtypefreetext?language=objc)
155    #[cfg(feature = "PDFAnnotation")]
156    pub static PDFAnnotationSubtypeFreeText: &'static PDFAnnotationSubtype;
157}
158
159extern "C" {
160    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationsubtypeline?language=objc)
161    #[cfg(feature = "PDFAnnotation")]
162    pub static PDFAnnotationSubtypeLine: &'static PDFAnnotationSubtype;
163}
164
165extern "C" {
166    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationsubtypesquare?language=objc)
167    #[cfg(feature = "PDFAnnotation")]
168    pub static PDFAnnotationSubtypeSquare: &'static PDFAnnotationSubtype;
169}
170
171extern "C" {
172    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationsubtypecircle?language=objc)
173    #[cfg(feature = "PDFAnnotation")]
174    pub static PDFAnnotationSubtypeCircle: &'static PDFAnnotationSubtype;
175}
176
177extern "C" {
178    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationsubtypehighlight?language=objc)
179    #[cfg(feature = "PDFAnnotation")]
180    pub static PDFAnnotationSubtypeHighlight: &'static PDFAnnotationSubtype;
181}
182
183extern "C" {
184    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationsubtypeunderline?language=objc)
185    #[cfg(feature = "PDFAnnotation")]
186    pub static PDFAnnotationSubtypeUnderline: &'static PDFAnnotationSubtype;
187}
188
189extern "C" {
190    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationsubtypestrikeout?language=objc)
191    #[cfg(feature = "PDFAnnotation")]
192    pub static PDFAnnotationSubtypeStrikeOut: &'static PDFAnnotationSubtype;
193}
194
195extern "C" {
196    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationsubtypeink?language=objc)
197    #[cfg(feature = "PDFAnnotation")]
198    pub static PDFAnnotationSubtypeInk: &'static PDFAnnotationSubtype;
199}
200
201extern "C" {
202    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationsubtypestamp?language=objc)
203    #[cfg(feature = "PDFAnnotation")]
204    pub static PDFAnnotationSubtypeStamp: &'static PDFAnnotationSubtype;
205}
206
207extern "C" {
208    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationsubtypepopup?language=objc)
209    #[cfg(feature = "PDFAnnotation")]
210    pub static PDFAnnotationSubtypePopup: &'static PDFAnnotationSubtype;
211}
212
213extern "C" {
214    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationsubtypewidget?language=objc)
215    #[cfg(feature = "PDFAnnotation")]
216    pub static PDFAnnotationSubtypeWidget: &'static PDFAnnotationSubtype;
217}
218
219/// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationwidgetsubtype?language=objc)
220// NS_TYPED_ENUM
221pub type PDFAnnotationWidgetSubtype = NSString;
222
223extern "C" {
224    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationwidgetsubtypebutton?language=objc)
225    pub static PDFAnnotationWidgetSubtypeButton: &'static PDFAnnotationWidgetSubtype;
226}
227
228extern "C" {
229    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationwidgetsubtypechoice?language=objc)
230    pub static PDFAnnotationWidgetSubtypeChoice: &'static PDFAnnotationWidgetSubtype;
231}
232
233extern "C" {
234    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationwidgetsubtypesignature?language=objc)
235    pub static PDFAnnotationWidgetSubtypeSignature: &'static PDFAnnotationWidgetSubtype;
236}
237
238extern "C" {
239    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationwidgetsubtypetext?language=objc)
240    pub static PDFAnnotationWidgetSubtypeText: &'static PDFAnnotationWidgetSubtype;
241}
242
243/// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationlineendingstyle?language=objc)
244// NS_TYPED_ENUM
245pub type PDFAnnotationLineEndingStyle = NSString;
246
247extern "C" {
248    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationlineendingstylenone?language=objc)
249    pub static PDFAnnotationLineEndingStyleNone: &'static PDFAnnotationLineEndingStyle;
250}
251
252extern "C" {
253    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationlineendingstylesquare?language=objc)
254    pub static PDFAnnotationLineEndingStyleSquare: &'static PDFAnnotationLineEndingStyle;
255}
256
257extern "C" {
258    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationlineendingstylecircle?language=objc)
259    pub static PDFAnnotationLineEndingStyleCircle: &'static PDFAnnotationLineEndingStyle;
260}
261
262extern "C" {
263    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationlineendingstylediamond?language=objc)
264    pub static PDFAnnotationLineEndingStyleDiamond: &'static PDFAnnotationLineEndingStyle;
265}
266
267extern "C" {
268    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationlineendingstyleopenarrow?language=objc)
269    pub static PDFAnnotationLineEndingStyleOpenArrow: &'static PDFAnnotationLineEndingStyle;
270}
271
272extern "C" {
273    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationlineendingstyleclosedarrow?language=objc)
274    pub static PDFAnnotationLineEndingStyleClosedArrow: &'static PDFAnnotationLineEndingStyle;
275}
276
277/// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationtexticontype?language=objc)
278// NS_TYPED_ENUM
279pub type PDFAnnotationTextIconType = NSString;
280
281extern "C" {
282    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationtexticontypecomment?language=objc)
283    pub static PDFAnnotationTextIconTypeComment: &'static PDFAnnotationTextIconType;
284}
285
286extern "C" {
287    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationtexticontypekey?language=objc)
288    pub static PDFAnnotationTextIconTypeKey: &'static PDFAnnotationTextIconType;
289}
290
291extern "C" {
292    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationtexticontypenote?language=objc)
293    pub static PDFAnnotationTextIconTypeNote: &'static PDFAnnotationTextIconType;
294}
295
296extern "C" {
297    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationtexticontypehelp?language=objc)
298    pub static PDFAnnotationTextIconTypeHelp: &'static PDFAnnotationTextIconType;
299}
300
301extern "C" {
302    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationtexticontypenewparagraph?language=objc)
303    pub static PDFAnnotationTextIconTypeNewParagraph: &'static PDFAnnotationTextIconType;
304}
305
306extern "C" {
307    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationtexticontypeparagraph?language=objc)
308    pub static PDFAnnotationTextIconTypeParagraph: &'static PDFAnnotationTextIconType;
309}
310
311extern "C" {
312    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationtexticontypeinsert?language=objc)
313    pub static PDFAnnotationTextIconTypeInsert: &'static PDFAnnotationTextIconType;
314}
315
316/// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationhighlightingmode?language=objc)
317// NS_TYPED_ENUM
318pub type PDFAnnotationHighlightingMode = NSString;
319
320extern "C" {
321    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationhighlightingmodenone?language=objc)
322    pub static PDFAnnotationHighlightingModeNone: &'static PDFAnnotationHighlightingMode;
323}
324
325extern "C" {
326    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationhighlightingmodeinvert?language=objc)
327    pub static PDFAnnotationHighlightingModeInvert: &'static PDFAnnotationHighlightingMode;
328}
329
330extern "C" {
331    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationhighlightingmodeoutline?language=objc)
332    pub static PDFAnnotationHighlightingModeOutline: &'static PDFAnnotationHighlightingMode;
333}
334
335extern "C" {
336    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationhighlightingmodepush?language=objc)
337    pub static PDFAnnotationHighlightingModePush: &'static PDFAnnotationHighlightingMode;
338}
339
340/// PDFAnnotationUtilities.
341#[cfg(feature = "PDFAnnotation")]
342impl PDFAnnotation {
343    extern_methods!(
344        #[cfg(feature = "objc2-app-kit")]
345        #[cfg(target_os = "macos")]
346        #[unsafe(method(font))]
347        #[unsafe(method_family = none)]
348        pub unsafe fn font(&self) -> Option<Retained<NSFont>>;
349
350        #[cfg(feature = "objc2-app-kit")]
351        #[cfg(target_os = "macos")]
352        /// Setter for [`font`][Self::font].
353        ///
354        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
355        #[unsafe(method(setFont:))]
356        #[unsafe(method_family = none)]
357        pub unsafe fn setFont(&self, font: Option<&NSFont>);
358
359        #[cfg(feature = "objc2-app-kit")]
360        #[cfg(target_os = "macos")]
361        #[unsafe(method(fontColor))]
362        #[unsafe(method_family = none)]
363        pub unsafe fn fontColor(&self) -> Option<Retained<NSColor>>;
364
365        #[cfg(feature = "objc2-app-kit")]
366        #[cfg(target_os = "macos")]
367        /// Setter for [`fontColor`][Self::fontColor].
368        ///
369        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
370        #[unsafe(method(setFontColor:))]
371        #[unsafe(method_family = none)]
372        pub unsafe fn setFontColor(&self, font_color: Option<&NSColor>);
373
374        #[cfg(feature = "objc2-app-kit")]
375        #[cfg(target_os = "macos")]
376        #[unsafe(method(interiorColor))]
377        #[unsafe(method_family = none)]
378        pub unsafe fn interiorColor(&self) -> Option<Retained<NSColor>>;
379
380        #[cfg(feature = "objc2-app-kit")]
381        #[cfg(target_os = "macos")]
382        /// Setter for [`interiorColor`][Self::interiorColor].
383        ///
384        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
385        #[unsafe(method(setInteriorColor:))]
386        #[unsafe(method_family = none)]
387        pub unsafe fn setInteriorColor(&self, interior_color: Option<&NSColor>);
388
389        #[cfg(feature = "objc2-app-kit")]
390        #[cfg(target_os = "macos")]
391        #[unsafe(method(alignment))]
392        #[unsafe(method_family = none)]
393        pub unsafe fn alignment(&self) -> NSTextAlignment;
394
395        #[cfg(feature = "objc2-app-kit")]
396        #[cfg(target_os = "macos")]
397        /// Setter for [`alignment`][Self::alignment].
398        #[unsafe(method(setAlignment:))]
399        #[unsafe(method_family = none)]
400        pub unsafe fn setAlignment(&self, alignment: NSTextAlignment);
401
402        #[unsafe(method(startPoint))]
403        #[unsafe(method_family = none)]
404        pub unsafe fn startPoint(&self) -> NSPoint;
405
406        /// Setter for [`startPoint`][Self::startPoint].
407        #[unsafe(method(setStartPoint:))]
408        #[unsafe(method_family = none)]
409        pub unsafe fn setStartPoint(&self, start_point: NSPoint);
410
411        #[unsafe(method(endPoint))]
412        #[unsafe(method_family = none)]
413        pub unsafe fn endPoint(&self) -> NSPoint;
414
415        /// Setter for [`endPoint`][Self::endPoint].
416        #[unsafe(method(setEndPoint:))]
417        #[unsafe(method_family = none)]
418        pub unsafe fn setEndPoint(&self, end_point: NSPoint);
419
420        #[unsafe(method(startLineStyle))]
421        #[unsafe(method_family = none)]
422        pub unsafe fn startLineStyle(&self) -> PDFLineStyle;
423
424        /// Setter for [`startLineStyle`][Self::startLineStyle].
425        #[unsafe(method(setStartLineStyle:))]
426        #[unsafe(method_family = none)]
427        pub unsafe fn setStartLineStyle(&self, start_line_style: PDFLineStyle);
428
429        #[unsafe(method(endLineStyle))]
430        #[unsafe(method_family = none)]
431        pub unsafe fn endLineStyle(&self) -> PDFLineStyle;
432
433        /// Setter for [`endLineStyle`][Self::endLineStyle].
434        #[unsafe(method(setEndLineStyle:))]
435        #[unsafe(method_family = none)]
436        pub unsafe fn setEndLineStyle(&self, end_line_style: PDFLineStyle);
437
438        #[unsafe(method(lineStyleFromName:))]
439        #[unsafe(method_family = none)]
440        pub unsafe fn lineStyleFromName(name: &NSString) -> PDFLineStyle;
441
442        #[unsafe(method(nameForLineStyle:))]
443        #[unsafe(method_family = none)]
444        pub unsafe fn nameForLineStyle(style: PDFLineStyle) -> Retained<NSString>;
445
446        #[unsafe(method(iconType))]
447        #[unsafe(method_family = none)]
448        pub unsafe fn iconType(&self) -> PDFTextAnnotationIconType;
449
450        /// Setter for [`iconType`][Self::iconType].
451        #[unsafe(method(setIconType:))]
452        #[unsafe(method_family = none)]
453        pub unsafe fn setIconType(&self, icon_type: PDFTextAnnotationIconType);
454
455        #[unsafe(method(quadrilateralPoints))]
456        #[unsafe(method_family = none)]
457        pub unsafe fn quadrilateralPoints(&self) -> Option<Retained<NSArray<NSValue>>>;
458
459        /// Setter for [`quadrilateralPoints`][Self::quadrilateralPoints].
460        ///
461        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
462        #[unsafe(method(setQuadrilateralPoints:))]
463        #[unsafe(method_family = none)]
464        pub unsafe fn setQuadrilateralPoints(
465            &self,
466            quadrilateral_points: Option<&NSArray<NSValue>>,
467        );
468
469        #[unsafe(method(markupType))]
470        #[unsafe(method_family = none)]
471        pub unsafe fn markupType(&self) -> PDFMarkupType;
472
473        /// Setter for [`markupType`][Self::markupType].
474        #[unsafe(method(setMarkupType:))]
475        #[unsafe(method_family = none)]
476        pub unsafe fn setMarkupType(&self, markup_type: PDFMarkupType);
477
478        #[unsafe(method(widgetFieldType))]
479        #[unsafe(method_family = none)]
480        pub unsafe fn widgetFieldType(&self) -> Retained<PDFAnnotationWidgetSubtype>;
481
482        /// Setter for [`widgetFieldType`][Self::widgetFieldType].
483        ///
484        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
485        #[unsafe(method(setWidgetFieldType:))]
486        #[unsafe(method_family = none)]
487        pub unsafe fn setWidgetFieldType(&self, widget_field_type: &PDFAnnotationWidgetSubtype);
488
489        #[unsafe(method(widgetControlType))]
490        #[unsafe(method_family = none)]
491        pub unsafe fn widgetControlType(&self) -> PDFWidgetControlType;
492
493        /// Setter for [`widgetControlType`][Self::widgetControlType].
494        #[unsafe(method(setWidgetControlType:))]
495        #[unsafe(method_family = none)]
496        pub unsafe fn setWidgetControlType(&self, widget_control_type: PDFWidgetControlType);
497
498        #[unsafe(method(isMultiline))]
499        #[unsafe(method_family = none)]
500        pub unsafe fn isMultiline(&self) -> bool;
501
502        /// Setter for [`isMultiline`][Self::isMultiline].
503        #[unsafe(method(setMultiline:))]
504        #[unsafe(method_family = none)]
505        pub unsafe fn setMultiline(&self, multiline: bool);
506
507        #[unsafe(method(isActivatableTextField))]
508        #[unsafe(method_family = none)]
509        pub unsafe fn isActivatableTextField(&self) -> bool;
510
511        #[unsafe(method(isPasswordField))]
512        #[unsafe(method_family = none)]
513        pub unsafe fn isPasswordField(&self) -> bool;
514
515        #[unsafe(method(hasComb))]
516        #[unsafe(method_family = none)]
517        pub unsafe fn hasComb(&self) -> bool;
518
519        /// Setter for [`hasComb`][Self::hasComb].
520        #[unsafe(method(setComb:))]
521        #[unsafe(method_family = none)]
522        pub unsafe fn setComb(&self, comb: bool);
523
524        #[unsafe(method(maximumLength))]
525        #[unsafe(method_family = none)]
526        pub unsafe fn maximumLength(&self) -> NSInteger;
527
528        /// Setter for [`maximumLength`][Self::maximumLength].
529        #[unsafe(method(setMaximumLength:))]
530        #[unsafe(method_family = none)]
531        pub unsafe fn setMaximumLength(&self, maximum_length: NSInteger);
532
533        #[unsafe(method(widgetStringValue))]
534        #[unsafe(method_family = none)]
535        pub unsafe fn widgetStringValue(&self) -> Option<Retained<NSString>>;
536
537        /// Setter for [`widgetStringValue`][Self::widgetStringValue].
538        ///
539        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
540        #[unsafe(method(setWidgetStringValue:))]
541        #[unsafe(method_family = none)]
542        pub unsafe fn setWidgetStringValue(&self, widget_string_value: Option<&NSString>);
543
544        #[unsafe(method(widgetDefaultStringValue))]
545        #[unsafe(method_family = none)]
546        pub unsafe fn widgetDefaultStringValue(&self) -> Option<Retained<NSString>>;
547
548        /// Setter for [`widgetDefaultStringValue`][Self::widgetDefaultStringValue].
549        ///
550        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
551        #[unsafe(method(setWidgetDefaultStringValue:))]
552        #[unsafe(method_family = none)]
553        pub unsafe fn setWidgetDefaultStringValue(
554            &self,
555            widget_default_string_value: Option<&NSString>,
556        );
557
558        #[unsafe(method(allowsToggleToOff))]
559        #[unsafe(method_family = none)]
560        pub unsafe fn allowsToggleToOff(&self) -> bool;
561
562        /// Setter for [`allowsToggleToOff`][Self::allowsToggleToOff].
563        #[unsafe(method(setAllowsToggleToOff:))]
564        #[unsafe(method_family = none)]
565        pub unsafe fn setAllowsToggleToOff(&self, allows_toggle_to_off: bool);
566
567        #[unsafe(method(radiosInUnison))]
568        #[unsafe(method_family = none)]
569        pub unsafe fn radiosInUnison(&self) -> bool;
570
571        /// Setter for [`radiosInUnison`][Self::radiosInUnison].
572        #[unsafe(method(setRadiosInUnison:))]
573        #[unsafe(method_family = none)]
574        pub unsafe fn setRadiosInUnison(&self, radios_in_unison: bool);
575
576        #[unsafe(method(isReadOnly))]
577        #[unsafe(method_family = none)]
578        pub unsafe fn isReadOnly(&self) -> bool;
579
580        /// Setter for [`isReadOnly`][Self::isReadOnly].
581        #[unsafe(method(setReadOnly:))]
582        #[unsafe(method_family = none)]
583        pub unsafe fn setReadOnly(&self, read_only: bool);
584
585        #[unsafe(method(isListChoice))]
586        #[unsafe(method_family = none)]
587        pub unsafe fn isListChoice(&self) -> bool;
588
589        /// Setter for [`isListChoice`][Self::isListChoice].
590        #[unsafe(method(setListChoice:))]
591        #[unsafe(method_family = none)]
592        pub unsafe fn setListChoice(&self, list_choice: bool);
593
594        #[unsafe(method(choices))]
595        #[unsafe(method_family = none)]
596        pub unsafe fn choices(&self) -> Option<Retained<NSArray<NSString>>>;
597
598        /// Setter for [`choices`][Self::choices].
599        ///
600        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
601        #[unsafe(method(setChoices:))]
602        #[unsafe(method_family = none)]
603        pub unsafe fn setChoices(&self, choices: Option<&NSArray<NSString>>);
604
605        #[unsafe(method(values))]
606        #[unsafe(method_family = none)]
607        pub unsafe fn values(&self) -> Option<Retained<NSArray<NSString>>>;
608
609        /// Setter for [`values`][Self::values].
610        ///
611        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
612        #[unsafe(method(setValues:))]
613        #[unsafe(method_family = none)]
614        pub unsafe fn setValues(&self, values: Option<&NSArray<NSString>>);
615
616        #[unsafe(method(buttonWidgetState))]
617        #[unsafe(method_family = none)]
618        pub unsafe fn buttonWidgetState(&self) -> PDFWidgetCellState;
619
620        /// Setter for [`buttonWidgetState`][Self::buttonWidgetState].
621        #[unsafe(method(setButtonWidgetState:))]
622        #[unsafe(method_family = none)]
623        pub unsafe fn setButtonWidgetState(&self, button_widget_state: PDFWidgetCellState);
624
625        #[unsafe(method(buttonWidgetStateString))]
626        #[unsafe(method_family = none)]
627        pub unsafe fn buttonWidgetStateString(&self) -> Retained<NSString>;
628
629        /// Setter for [`buttonWidgetStateString`][Self::buttonWidgetStateString].
630        ///
631        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
632        #[unsafe(method(setButtonWidgetStateString:))]
633        #[unsafe(method_family = none)]
634        pub unsafe fn setButtonWidgetStateString(&self, button_widget_state_string: &NSString);
635
636        #[unsafe(method(isOpen))]
637        #[unsafe(method_family = none)]
638        pub unsafe fn isOpen(&self) -> bool;
639
640        /// Setter for [`isOpen`][Self::isOpen].
641        #[unsafe(method(setOpen:))]
642        #[unsafe(method_family = none)]
643        pub unsafe fn setOpen(&self, open: bool);
644
645        #[cfg(feature = "objc2-app-kit")]
646        #[cfg(target_os = "macos")]
647        #[unsafe(method(paths))]
648        #[unsafe(method_family = none)]
649        pub unsafe fn paths(&self) -> Option<Retained<NSArray<NSBezierPath>>>;
650
651        #[cfg(feature = "objc2-app-kit")]
652        #[cfg(target_os = "macos")]
653        #[unsafe(method(addBezierPath:))]
654        #[unsafe(method_family = none)]
655        pub unsafe fn addBezierPath(&self, path: &NSBezierPath);
656
657        #[cfg(feature = "objc2-app-kit")]
658        #[cfg(target_os = "macos")]
659        #[unsafe(method(removeBezierPath:))]
660        #[unsafe(method_family = none)]
661        pub unsafe fn removeBezierPath(&self, path: &NSBezierPath);
662
663        #[cfg(feature = "PDFDestination")]
664        #[unsafe(method(destination))]
665        #[unsafe(method_family = none)]
666        pub unsafe fn destination(&self) -> Option<Retained<PDFDestination>>;
667
668        #[cfg(feature = "PDFDestination")]
669        /// Setter for [`destination`][Self::destination].
670        #[unsafe(method(setDestination:))]
671        #[unsafe(method_family = none)]
672        pub unsafe fn setDestination(&self, destination: Option<&PDFDestination>);
673
674        #[unsafe(method(URL))]
675        #[unsafe(method_family = none)]
676        pub unsafe fn URL(&self) -> Option<Retained<NSURL>>;
677
678        /// Setter for [`URL`][Self::URL].
679        ///
680        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
681        #[unsafe(method(setURL:))]
682        #[unsafe(method_family = none)]
683        pub unsafe fn setURL(&self, url: Option<&NSURL>);
684
685        #[unsafe(method(fieldName))]
686        #[unsafe(method_family = none)]
687        pub unsafe fn fieldName(&self) -> Option<Retained<NSString>>;
688
689        /// Setter for [`fieldName`][Self::fieldName].
690        ///
691        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
692        #[unsafe(method(setFieldName:))]
693        #[unsafe(method_family = none)]
694        pub unsafe fn setFieldName(&self, field_name: Option<&NSString>);
695
696        #[unsafe(method(caption))]
697        #[unsafe(method_family = none)]
698        pub unsafe fn caption(&self) -> Option<Retained<NSString>>;
699
700        /// Setter for [`caption`][Self::caption].
701        ///
702        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
703        #[unsafe(method(setCaption:))]
704        #[unsafe(method_family = none)]
705        pub unsafe fn setCaption(&self, caption: Option<&NSString>);
706
707        #[cfg(feature = "objc2-app-kit")]
708        #[cfg(target_os = "macos")]
709        #[unsafe(method(backgroundColor))]
710        #[unsafe(method_family = none)]
711        pub unsafe fn backgroundColor(&self) -> Option<Retained<NSColor>>;
712
713        #[cfg(feature = "objc2-app-kit")]
714        #[cfg(target_os = "macos")]
715        /// Setter for [`backgroundColor`][Self::backgroundColor].
716        ///
717        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
718        #[unsafe(method(setBackgroundColor:))]
719        #[unsafe(method_family = none)]
720        pub unsafe fn setBackgroundColor(&self, background_color: Option<&NSColor>);
721
722        #[unsafe(method(stampName))]
723        #[unsafe(method_family = none)]
724        pub unsafe fn stampName(&self) -> Option<Retained<NSString>>;
725
726        /// Setter for [`stampName`][Self::stampName].
727        ///
728        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
729        #[unsafe(method(setStampName:))]
730        #[unsafe(method_family = none)]
731        pub unsafe fn setStampName(&self, stamp_name: Option<&NSString>);
732    );
733}