objc2_web_kit/generated/
WebFrameView.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(NSView, NSResponder, NSObject))]
16 #[derive(Debug, PartialEq, Eq, Hash)]
17 #[cfg(feature = "objc2-app-kit")]
18 #[cfg(target_os = "macos")]
19 #[deprecated]
20 pub struct WebFrameView;
21);
22
23#[cfg(feature = "objc2-app-kit")]
24#[cfg(target_os = "macos")]
25unsafe impl NSAccessibility for WebFrameView {}
26
27#[cfg(feature = "objc2-app-kit")]
28#[cfg(target_os = "macos")]
29unsafe impl NSAccessibilityElementProtocol for WebFrameView {}
30
31#[cfg(feature = "objc2-app-kit")]
32#[cfg(target_os = "macos")]
33unsafe impl NSAnimatablePropertyContainer for WebFrameView {}
34
35#[cfg(feature = "objc2-app-kit")]
36#[cfg(target_os = "macos")]
37unsafe impl NSAppearanceCustomization for WebFrameView {}
38
39#[cfg(feature = "objc2-app-kit")]
40#[cfg(target_os = "macos")]
41unsafe impl NSCoding for WebFrameView {}
42
43#[cfg(feature = "objc2-app-kit")]
44#[cfg(target_os = "macos")]
45unsafe impl NSDraggingDestination for WebFrameView {}
46
47#[cfg(feature = "objc2-app-kit")]
48#[cfg(target_os = "macos")]
49unsafe impl NSObjectProtocol for WebFrameView {}
50
51#[cfg(feature = "objc2-app-kit")]
52#[cfg(target_os = "macos")]
53unsafe impl NSUserInterfaceItemIdentification for WebFrameView {}
54
55#[cfg(feature = "objc2-app-kit")]
56#[cfg(target_os = "macos")]
57impl WebFrameView {
58 extern_methods!(
59 #[cfg(feature = "WebFrame")]
60 #[deprecated]
62 #[unsafe(method(webFrame))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn webFrame(&self) -> Option<Retained<WebFrame>>;
65
66 #[cfg(feature = "WebDocument")]
67 #[deprecated]
71 #[unsafe(method(documentView))]
72 #[unsafe(method_family = none)]
73 pub unsafe fn documentView(&self) -> Option<Retained<NSView>>;
74
75 #[deprecated]
77 #[unsafe(method(allowsScrolling))]
78 #[unsafe(method_family = none)]
79 pub unsafe fn allowsScrolling(&self) -> bool;
80
81 #[deprecated]
83 #[unsafe(method(setAllowsScrolling:))]
84 #[unsafe(method_family = none)]
85 pub unsafe fn setAllowsScrolling(&self, allows_scrolling: bool);
86
87 #[deprecated]
89 #[unsafe(method(canPrintHeadersAndFooters))]
90 #[unsafe(method_family = none)]
91 pub unsafe fn canPrintHeadersAndFooters(&self) -> bool;
92
93 #[deprecated]
97 #[unsafe(method(printOperationWithPrintInfo:))]
98 #[unsafe(method_family = none)]
99 pub unsafe fn printOperationWithPrintInfo(
100 &self,
101 print_info: Option<&NSPrintInfo>,
102 ) -> Option<Retained<NSPrintOperation>>;
103
104 #[deprecated]
110 #[unsafe(method(documentViewShouldHandlePrint))]
111 #[unsafe(method_family = none)]
112 pub unsafe fn documentViewShouldHandlePrint(&self) -> bool;
113
114 #[deprecated]
116 #[unsafe(method(printDocumentView))]
117 #[unsafe(method_family = none)]
118 pub unsafe fn printDocumentView(&self);
119 );
120}
121
122#[cfg(feature = "objc2-app-kit")]
124#[cfg(target_os = "macos")]
125impl WebFrameView {
126 extern_methods!(
127 #[unsafe(method(initWithFrame:))]
128 #[unsafe(method_family = init)]
129 pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
130
131 #[unsafe(method(initWithCoder:))]
132 #[unsafe(method_family = init)]
133 pub unsafe fn initWithCoder(
134 this: Allocated<Self>,
135 coder: &NSCoder,
136 ) -> Option<Retained<Self>>;
137 );
138}
139
140#[cfg(feature = "objc2-app-kit")]
142#[cfg(target_os = "macos")]
143impl WebFrameView {
144 extern_methods!(
145 #[unsafe(method(init))]
146 #[unsafe(method_family = init)]
147 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
148 );
149}
150
151#[cfg(feature = "objc2-app-kit")]
153#[cfg(target_os = "macos")]
154impl WebFrameView {
155 extern_methods!(
156 #[unsafe(method(new))]
157 #[unsafe(method_family = new)]
158 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
159 );
160}