objc2_automator/generated/
AMWorkflowView.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")]
7use objc2_app_kit::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern_class!(
13    /// [Apple's documentation](https://developer.apple.com/documentation/automator/amworkflowview?language=objc)
14    #[unsafe(super(NSView, NSResponder, NSObject))]
15    #[derive(Debug, PartialEq, Eq, Hash)]
16    #[cfg(feature = "objc2-app-kit")]
17    pub struct AMWorkflowView;
18);
19
20#[cfg(feature = "objc2-app-kit")]
21extern_conformance!(
22    unsafe impl NSAccessibility for AMWorkflowView {}
23);
24
25#[cfg(feature = "objc2-app-kit")]
26extern_conformance!(
27    unsafe impl NSAccessibilityElementProtocol for AMWorkflowView {}
28);
29
30#[cfg(feature = "objc2-app-kit")]
31extern_conformance!(
32    unsafe impl NSAnimatablePropertyContainer for AMWorkflowView {}
33);
34
35#[cfg(feature = "objc2-app-kit")]
36extern_conformance!(
37    unsafe impl NSAppearanceCustomization for AMWorkflowView {}
38);
39
40#[cfg(feature = "objc2-app-kit")]
41extern_conformance!(
42    unsafe impl NSCoding for AMWorkflowView {}
43);
44
45#[cfg(feature = "objc2-app-kit")]
46extern_conformance!(
47    unsafe impl NSDraggingDestination for AMWorkflowView {}
48);
49
50#[cfg(feature = "objc2-app-kit")]
51extern_conformance!(
52    unsafe impl NSObjectProtocol for AMWorkflowView {}
53);
54
55#[cfg(feature = "objc2-app-kit")]
56extern_conformance!(
57    unsafe impl NSUserInterfaceItemIdentification for AMWorkflowView {}
58);
59
60#[cfg(feature = "objc2-app-kit")]
61impl AMWorkflowView {
62    extern_methods!(
63        #[unsafe(method(isEditable))]
64        #[unsafe(method_family = none)]
65        pub unsafe fn isEditable(&self) -> bool;
66
67        /// Setter for [`isEditable`][Self::isEditable].
68        #[unsafe(method(setEditable:))]
69        #[unsafe(method_family = none)]
70        pub unsafe fn setEditable(&self, editable: bool);
71
72        #[cfg(feature = "AMWorkflowController")]
73        #[unsafe(method(workflowController))]
74        #[unsafe(method_family = none)]
75        pub unsafe fn workflowController(&self) -> Option<Retained<AMWorkflowController>>;
76
77        #[cfg(feature = "AMWorkflowController")]
78        /// Setter for [`workflowController`][Self::workflowController].
79        ///
80        /// This is a [weak property][objc2::topics::weak_property].
81        #[unsafe(method(setWorkflowController:))]
82        #[unsafe(method_family = none)]
83        pub unsafe fn setWorkflowController(
84            &self,
85            workflow_controller: Option<&AMWorkflowController>,
86        );
87    );
88}
89
90/// Methods declared on superclass `NSView`.
91#[cfg(feature = "objc2-app-kit")]
92impl AMWorkflowView {
93    extern_methods!(
94        #[unsafe(method(initWithFrame:))]
95        #[unsafe(method_family = init)]
96        pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
97
98        /// # Safety
99        ///
100        /// `coder` possibly has further requirements.
101        #[unsafe(method(initWithCoder:))]
102        #[unsafe(method_family = init)]
103        pub unsafe fn initWithCoder(
104            this: Allocated<Self>,
105            coder: &NSCoder,
106        ) -> Option<Retained<Self>>;
107    );
108}
109
110/// Methods declared on superclass `NSResponder`.
111#[cfg(feature = "objc2-app-kit")]
112impl AMWorkflowView {
113    extern_methods!(
114        #[unsafe(method(init))]
115        #[unsafe(method_family = init)]
116        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
117    );
118}
119
120/// Methods declared on superclass `NSObject`.
121#[cfg(feature = "objc2-app-kit")]
122impl AMWorkflowView {
123    extern_methods!(
124        #[unsafe(method(new))]
125        #[unsafe(method_family = new)]
126        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
127    );
128}