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        /// This is a [weak property][objc2::topics::weak_property].
79        /// Setter for [`workflowController`][Self::workflowController].
80        #[unsafe(method(setWorkflowController:))]
81        #[unsafe(method_family = none)]
82        pub unsafe fn setWorkflowController(
83            &self,
84            workflow_controller: Option<&AMWorkflowController>,
85        );
86    );
87}
88
89/// Methods declared on superclass `NSView`.
90#[cfg(feature = "objc2-app-kit")]
91impl AMWorkflowView {
92    extern_methods!(
93        #[unsafe(method(initWithFrame:))]
94        #[unsafe(method_family = init)]
95        pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
96
97        #[unsafe(method(initWithCoder:))]
98        #[unsafe(method_family = init)]
99        pub unsafe fn initWithCoder(
100            this: Allocated<Self>,
101            coder: &NSCoder,
102        ) -> Option<Retained<Self>>;
103    );
104}
105
106/// Methods declared on superclass `NSResponder`.
107#[cfg(feature = "objc2-app-kit")]
108impl AMWorkflowView {
109    extern_methods!(
110        #[unsafe(method(init))]
111        #[unsafe(method_family = init)]
112        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
113    );
114}
115
116/// Methods declared on superclass `NSObject`.
117#[cfg(feature = "objc2-app-kit")]
118impl AMWorkflowView {
119    extern_methods!(
120        #[unsafe(method(new))]
121        #[unsafe(method_family = new)]
122        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
123    );
124}