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")]
21unsafe impl NSAccessibility for AMWorkflowView {}
22
23#[cfg(feature = "objc2-app-kit")]
24unsafe impl NSAccessibilityElementProtocol for AMWorkflowView {}
25
26#[cfg(feature = "objc2-app-kit")]
27unsafe impl NSAnimatablePropertyContainer for AMWorkflowView {}
28
29#[cfg(feature = "objc2-app-kit")]
30unsafe impl NSAppearanceCustomization for AMWorkflowView {}
31
32#[cfg(feature = "objc2-app-kit")]
33unsafe impl NSCoding for AMWorkflowView {}
34
35#[cfg(feature = "objc2-app-kit")]
36unsafe impl NSDraggingDestination for AMWorkflowView {}
37
38#[cfg(feature = "objc2-app-kit")]
39unsafe impl NSObjectProtocol for AMWorkflowView {}
40
41#[cfg(feature = "objc2-app-kit")]
42unsafe impl NSUserInterfaceItemIdentification for AMWorkflowView {}
43
44#[cfg(feature = "objc2-app-kit")]
45impl AMWorkflowView {
46    extern_methods!(
47        #[unsafe(method(isEditable))]
48        #[unsafe(method_family = none)]
49        pub unsafe fn isEditable(&self) -> bool;
50
51        /// Setter for [`isEditable`][Self::isEditable].
52        #[unsafe(method(setEditable:))]
53        #[unsafe(method_family = none)]
54        pub unsafe fn setEditable(&self, editable: bool);
55
56        #[cfg(feature = "AMWorkflowController")]
57        #[unsafe(method(workflowController))]
58        #[unsafe(method_family = none)]
59        pub unsafe fn workflowController(&self) -> Option<Retained<AMWorkflowController>>;
60
61        #[cfg(feature = "AMWorkflowController")]
62        /// This is a [weak property][objc2::topics::weak_property].
63        /// Setter for [`workflowController`][Self::workflowController].
64        #[unsafe(method(setWorkflowController:))]
65        #[unsafe(method_family = none)]
66        pub unsafe fn setWorkflowController(
67            &self,
68            workflow_controller: Option<&AMWorkflowController>,
69        );
70    );
71}
72
73/// Methods declared on superclass `NSView`.
74#[cfg(feature = "objc2-app-kit")]
75impl AMWorkflowView {
76    extern_methods!(
77        #[unsafe(method(initWithFrame:))]
78        #[unsafe(method_family = init)]
79        pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
80
81        #[unsafe(method(initWithCoder:))]
82        #[unsafe(method_family = init)]
83        pub unsafe fn initWithCoder(
84            this: Allocated<Self>,
85            coder: &NSCoder,
86        ) -> Option<Retained<Self>>;
87    );
88}
89
90/// Methods declared on superclass `NSResponder`.
91#[cfg(feature = "objc2-app-kit")]
92impl AMWorkflowView {
93    extern_methods!(
94        #[unsafe(method(init))]
95        #[unsafe(method_family = init)]
96        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
97    );
98}
99
100/// Methods declared on superclass `NSObject`.
101#[cfg(feature = "objc2-app-kit")]
102impl AMWorkflowView {
103    extern_methods!(
104        #[unsafe(method(new))]
105        #[unsafe(method_family = new)]
106        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
107    );
108}