objc2_game_controller/generated/
GCEventViewController.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
13extern_class!(
14 #[unsafe(super(NSViewController, NSResponder, NSObject))]
20 #[derive(Debug, PartialEq, Eq, Hash)]
21 #[cfg(feature = "objc2-app-kit")]
22 #[cfg(target_os = "macos")]
23 pub struct GCEventViewController;
24);
25
26#[cfg(feature = "objc2-app-kit")]
27#[cfg(target_os = "macos")]
28extern_conformance!(
29 unsafe impl NSCoding for GCEventViewController {}
30);
31
32#[cfg(feature = "objc2-app-kit")]
33#[cfg(target_os = "macos")]
34extern_conformance!(
35 unsafe impl NSEditor for GCEventViewController {}
36);
37
38#[cfg(feature = "objc2-app-kit")]
39#[cfg(target_os = "macos")]
40extern_conformance!(
41 unsafe impl NSObjectProtocol for GCEventViewController {}
42);
43
44#[cfg(feature = "objc2-app-kit")]
45#[cfg(target_os = "macos")]
46extern_conformance!(
47 unsafe impl NSSeguePerforming for GCEventViewController {}
48);
49
50#[cfg(feature = "objc2-app-kit")]
51#[cfg(target_os = "macos")]
52extern_conformance!(
53 unsafe impl NSUserInterfaceItemIdentification for GCEventViewController {}
54);
55
56#[cfg(feature = "objc2-app-kit")]
57#[cfg(target_os = "macos")]
58impl GCEventViewController {
59 extern_methods!(
60 #[unsafe(method(controllerUserInteractionEnabled))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn controllerUserInteractionEnabled(&self) -> bool;
84
85 #[unsafe(method(setControllerUserInteractionEnabled:))]
87 #[unsafe(method_family = none)]
88 pub unsafe fn setControllerUserInteractionEnabled(
89 &self,
90 controller_user_interaction_enabled: bool,
91 );
92 );
93}
94
95#[cfg(feature = "objc2-app-kit")]
97#[cfg(target_os = "macos")]
98impl GCEventViewController {
99 extern_methods!(
100 #[unsafe(method(initWithNibName:bundle:))]
101 #[unsafe(method_family = init)]
102 pub unsafe fn initWithNibName_bundle(
103 this: Allocated<Self>,
104 nib_name_or_nil: Option<&NSNibName>,
105 nib_bundle_or_nil: Option<&NSBundle>,
106 ) -> Retained<Self>;
107
108 #[unsafe(method(initWithCoder:))]
112 #[unsafe(method_family = init)]
113 pub unsafe fn initWithCoder(
114 this: Allocated<Self>,
115 coder: &NSCoder,
116 ) -> Option<Retained<Self>>;
117 );
118}
119
120#[cfg(feature = "objc2-app-kit")]
122#[cfg(target_os = "macos")]
123impl GCEventViewController {
124 extern_methods!(
125 #[unsafe(method(init))]
126 #[unsafe(method_family = init)]
127 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
128 );
129}
130
131#[cfg(feature = "objc2-app-kit")]
133#[cfg(target_os = "macos")]
134impl GCEventViewController {
135 extern_methods!(
136 #[unsafe(method(new))]
137 #[unsafe(method_family = new)]
138 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
139 );
140}