objc2_web_kit/generated/
WKWindowFeatures.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
14 #[thread_kind = MainThreadOnly]
15 #[derive(Debug, PartialEq, Eq, Hash)]
16 pub struct WKWindowFeatures;
17);
18
19extern_conformance!(
20 unsafe impl NSObjectProtocol for WKWindowFeatures {}
21);
22
23impl WKWindowFeatures {
24 extern_methods!(
25 #[unsafe(method(menuBarVisibility))]
27 #[unsafe(method_family = none)]
28 pub unsafe fn menuBarVisibility(&self) -> Option<Retained<NSNumber>>;
29
30 #[unsafe(method(statusBarVisibility))]
32 #[unsafe(method_family = none)]
33 pub unsafe fn statusBarVisibility(&self) -> Option<Retained<NSNumber>>;
34
35 #[unsafe(method(toolbarsVisibility))]
37 #[unsafe(method_family = none)]
38 pub unsafe fn toolbarsVisibility(&self) -> Option<Retained<NSNumber>>;
39
40 #[unsafe(method(allowsResizing))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn allowsResizing(&self) -> Option<Retained<NSNumber>>;
44
45 #[unsafe(method(x))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn x(&self) -> Option<Retained<NSNumber>>;
49
50 #[unsafe(method(y))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn y(&self) -> Option<Retained<NSNumber>>;
54
55 #[unsafe(method(width))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn width(&self) -> Option<Retained<NSNumber>>;
59
60 #[unsafe(method(height))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn height(&self) -> Option<Retained<NSNumber>>;
64 );
65}
66
67impl WKWindowFeatures {
69 extern_methods!(
70 #[unsafe(method(init))]
71 #[unsafe(method_family = init)]
72 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
73
74 #[unsafe(method(new))]
75 #[unsafe(method_family = new)]
76 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
77 );
78}