icrate/generated/Automator/
AMWorkflowView.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use crate::common::*;
4use crate::AppKit::*;
5use crate::Automator::*;
6use crate::Foundation::*;
7use crate::OSAKit::*;
8
9extern_class!(
10    #[derive(Debug, PartialEq, Eq, Hash)]
11    #[cfg(feature = "Automator_AMWorkflowView")]
12    pub struct AMWorkflowView;
13
14    #[cfg(feature = "Automator_AMWorkflowView")]
15    unsafe impl ClassType for AMWorkflowView {
16        #[inherits(NSResponder, NSObject)]
17        type Super = NSView;
18        type Mutability = MainThreadOnly;
19    }
20);
21
22#[cfg(feature = "Automator_AMWorkflowView")]
23unsafe impl NSAccessibility for AMWorkflowView {}
24
25#[cfg(feature = "Automator_AMWorkflowView")]
26unsafe impl NSAccessibilityElementProtocol for AMWorkflowView {}
27
28#[cfg(feature = "Automator_AMWorkflowView")]
29unsafe impl NSAnimatablePropertyContainer for AMWorkflowView {}
30
31#[cfg(feature = "Automator_AMWorkflowView")]
32unsafe impl NSAppearanceCustomization for AMWorkflowView {}
33
34#[cfg(feature = "Automator_AMWorkflowView")]
35unsafe impl NSCoding for AMWorkflowView {}
36
37#[cfg(feature = "Automator_AMWorkflowView")]
38unsafe impl NSDraggingDestination for AMWorkflowView {}
39
40#[cfg(feature = "Automator_AMWorkflowView")]
41unsafe impl NSObjectProtocol for AMWorkflowView {}
42
43#[cfg(feature = "Automator_AMWorkflowView")]
44unsafe impl NSUserInterfaceItemIdentification for AMWorkflowView {}
45
46extern_methods!(
47    #[cfg(feature = "Automator_AMWorkflowView")]
48    unsafe impl AMWorkflowView {
49        #[method(isEditable)]
50        pub unsafe fn isEditable(&self) -> bool;
51
52        #[method(setEditable:)]
53        pub unsafe fn setEditable(&self, editable: bool);
54
55        #[cfg(feature = "Automator_AMWorkflowController")]
56        #[method_id(@__retain_semantics Other workflowController)]
57        pub unsafe fn workflowController(&self) -> Option<Id<AMWorkflowController>>;
58
59        #[cfg(feature = "Automator_AMWorkflowController")]
60        #[method(setWorkflowController:)]
61        pub unsafe fn setWorkflowController(
62            &self,
63            workflow_controller: Option<&AMWorkflowController>,
64        );
65    }
66);
67
68extern_methods!(
69    /// Methods declared on superclass `NSView`
70    #[cfg(feature = "Automator_AMWorkflowView")]
71    unsafe impl AMWorkflowView {
72        #[method_id(@__retain_semantics Init initWithFrame:)]
73        pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Id<Self>;
74
75        #[cfg(feature = "Foundation_NSCoder")]
76        #[method_id(@__retain_semantics Init initWithCoder:)]
77        pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Option<Id<Self>>;
78    }
79);
80
81extern_methods!(
82    /// Methods declared on superclass `NSResponder`
83    #[cfg(feature = "Automator_AMWorkflowView")]
84    unsafe impl AMWorkflowView {
85        #[method_id(@__retain_semantics Init init)]
86        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
87    }
88);
89
90extern_methods!(
91    /// Methods declared on superclass `NSObject`
92    #[cfg(feature = "Automator_AMWorkflowView")]
93    unsafe impl AMWorkflowView {
94        #[method_id(@__retain_semantics New new)]
95        pub unsafe fn new(mtm: MainThreadMarker) -> Id<Self>;
96    }
97);