objc2_pdf_kit/generated/
PDFAnnotationUtilities.rs1use 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#[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#[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#[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#[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#[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 #[cfg(feature = "PDFAnnotation")]
144 pub static PDFAnnotationSubtypeText: &'static PDFAnnotationSubtype;
145}
146
147extern "C" {
148 #[cfg(feature = "PDFAnnotation")]
150 pub static PDFAnnotationSubtypeLink: &'static PDFAnnotationSubtype;
151}
152
153extern "C" {
154 #[cfg(feature = "PDFAnnotation")]
156 pub static PDFAnnotationSubtypeFreeText: &'static PDFAnnotationSubtype;
157}
158
159extern "C" {
160 #[cfg(feature = "PDFAnnotation")]
162 pub static PDFAnnotationSubtypeLine: &'static PDFAnnotationSubtype;
163}
164
165extern "C" {
166 #[cfg(feature = "PDFAnnotation")]
168 pub static PDFAnnotationSubtypeSquare: &'static PDFAnnotationSubtype;
169}
170
171extern "C" {
172 #[cfg(feature = "PDFAnnotation")]
174 pub static PDFAnnotationSubtypeCircle: &'static PDFAnnotationSubtype;
175}
176
177extern "C" {
178 #[cfg(feature = "PDFAnnotation")]
180 pub static PDFAnnotationSubtypeHighlight: &'static PDFAnnotationSubtype;
181}
182
183extern "C" {
184 #[cfg(feature = "PDFAnnotation")]
186 pub static PDFAnnotationSubtypeUnderline: &'static PDFAnnotationSubtype;
187}
188
189extern "C" {
190 #[cfg(feature = "PDFAnnotation")]
192 pub static PDFAnnotationSubtypeStrikeOut: &'static PDFAnnotationSubtype;
193}
194
195extern "C" {
196 #[cfg(feature = "PDFAnnotation")]
198 pub static PDFAnnotationSubtypeInk: &'static PDFAnnotationSubtype;
199}
200
201extern "C" {
202 #[cfg(feature = "PDFAnnotation")]
204 pub static PDFAnnotationSubtypeStamp: &'static PDFAnnotationSubtype;
205}
206
207extern "C" {
208 #[cfg(feature = "PDFAnnotation")]
210 pub static PDFAnnotationSubtypePopup: &'static PDFAnnotationSubtype;
211}
212
213extern "C" {
214 #[cfg(feature = "PDFAnnotation")]
216 pub static PDFAnnotationSubtypeWidget: &'static PDFAnnotationSubtype;
217}
218
219pub type PDFAnnotationWidgetSubtype = NSString;
222
223extern "C" {
224 pub static PDFAnnotationWidgetSubtypeButton: &'static PDFAnnotationWidgetSubtype;
226}
227
228extern "C" {
229 pub static PDFAnnotationWidgetSubtypeChoice: &'static PDFAnnotationWidgetSubtype;
231}
232
233extern "C" {
234 pub static PDFAnnotationWidgetSubtypeSignature: &'static PDFAnnotationWidgetSubtype;
236}
237
238extern "C" {
239 pub static PDFAnnotationWidgetSubtypeText: &'static PDFAnnotationWidgetSubtype;
241}
242
243pub type PDFAnnotationLineEndingStyle = NSString;
246
247extern "C" {
248 pub static PDFAnnotationLineEndingStyleNone: &'static PDFAnnotationLineEndingStyle;
250}
251
252extern "C" {
253 pub static PDFAnnotationLineEndingStyleSquare: &'static PDFAnnotationLineEndingStyle;
255}
256
257extern "C" {
258 pub static PDFAnnotationLineEndingStyleCircle: &'static PDFAnnotationLineEndingStyle;
260}
261
262extern "C" {
263 pub static PDFAnnotationLineEndingStyleDiamond: &'static PDFAnnotationLineEndingStyle;
265}
266
267extern "C" {
268 pub static PDFAnnotationLineEndingStyleOpenArrow: &'static PDFAnnotationLineEndingStyle;
270}
271
272extern "C" {
273 pub static PDFAnnotationLineEndingStyleClosedArrow: &'static PDFAnnotationLineEndingStyle;
275}
276
277pub type PDFAnnotationTextIconType = NSString;
280
281extern "C" {
282 pub static PDFAnnotationTextIconTypeComment: &'static PDFAnnotationTextIconType;
284}
285
286extern "C" {
287 pub static PDFAnnotationTextIconTypeKey: &'static PDFAnnotationTextIconType;
289}
290
291extern "C" {
292 pub static PDFAnnotationTextIconTypeNote: &'static PDFAnnotationTextIconType;
294}
295
296extern "C" {
297 pub static PDFAnnotationTextIconTypeHelp: &'static PDFAnnotationTextIconType;
299}
300
301extern "C" {
302 pub static PDFAnnotationTextIconTypeNewParagraph: &'static PDFAnnotationTextIconType;
304}
305
306extern "C" {
307 pub static PDFAnnotationTextIconTypeParagraph: &'static PDFAnnotationTextIconType;
309}
310
311extern "C" {
312 pub static PDFAnnotationTextIconTypeInsert: &'static PDFAnnotationTextIconType;
314}
315
316pub type PDFAnnotationHighlightingMode = NSString;
319
320extern "C" {
321 pub static PDFAnnotationHighlightingModeNone: &'static PDFAnnotationHighlightingMode;
323}
324
325extern "C" {
326 pub static PDFAnnotationHighlightingModeInvert: &'static PDFAnnotationHighlightingMode;
328}
329
330extern "C" {
331 pub static PDFAnnotationHighlightingModeOutline: &'static PDFAnnotationHighlightingMode;
333}
334
335extern "C" {
336 pub static PDFAnnotationHighlightingModePush: &'static PDFAnnotationHighlightingMode;
338}
339
340#[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[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 #[unsafe(method(setStampName:))]
730 #[unsafe(method_family = none)]
731 pub unsafe fn setStampName(&self, stamp_name: Option<&NSString>);
732 );
733}