objc2_browser_engine_kit/generated/
BELayerHierarchyHostingView.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-core-foundation")]
7use objc2_core_foundation::*;
8use objc2_foundation::*;
9#[cfg(feature = "objc2-quartz-core")]
10use objc2_quartz_core::*;
11use objc2_ui_kit::*;
12
13use crate::*;
14
15extern_class!(
16    /// [Apple's documentation](https://developer.apple.com/documentation/browserenginekit/belayerhierarchyhostingview?language=objc)
17    #[unsafe(super(UIView, UIResponder, NSObject))]
18    #[thread_kind = MainThreadOnly]
19    #[derive(Debug, PartialEq, Eq, Hash)]
20    pub struct BELayerHierarchyHostingView;
21);
22
23#[cfg(feature = "objc2-quartz-core")]
24extern_conformance!(
25    unsafe impl CALayerDelegate for BELayerHierarchyHostingView {}
26);
27
28extern_conformance!(
29    unsafe impl NSCoding for BELayerHierarchyHostingView {}
30);
31
32extern_conformance!(
33    unsafe impl NSObjectProtocol for BELayerHierarchyHostingView {}
34);
35
36extern_conformance!(
37    unsafe impl UIAppearance for BELayerHierarchyHostingView {}
38);
39
40extern_conformance!(
41    unsafe impl UIAppearanceContainer for BELayerHierarchyHostingView {}
42);
43
44extern_conformance!(
45    unsafe impl UICoordinateSpace for BELayerHierarchyHostingView {}
46);
47
48extern_conformance!(
49    unsafe impl UIDynamicItem for BELayerHierarchyHostingView {}
50);
51
52extern_conformance!(
53    unsafe impl UIFocusEnvironment for BELayerHierarchyHostingView {}
54);
55
56extern_conformance!(
57    unsafe impl UIFocusItem for BELayerHierarchyHostingView {}
58);
59
60extern_conformance!(
61    unsafe impl UIFocusItemContainer for BELayerHierarchyHostingView {}
62);
63
64extern_conformance!(
65    unsafe impl UIResponderStandardEditActions for BELayerHierarchyHostingView {}
66);
67
68extern_conformance!(
69    unsafe impl UITraitEnvironment for BELayerHierarchyHostingView {}
70);
71
72impl BELayerHierarchyHostingView {
73    extern_methods!(
74        #[cfg(feature = "BELayerHierarchyHandle")]
75        /// a reference to a BELayerHierarchy whose contents should appear as the contents of this view
76        #[unsafe(method(handle))]
77        #[unsafe(method_family = none)]
78        pub unsafe fn handle(&self) -> Option<Retained<BELayerHierarchyHandle>>;
79
80        #[cfg(feature = "BELayerHierarchyHandle")]
81        /// Setter for [`handle`][Self::handle].
82        #[unsafe(method(setHandle:))]
83        #[unsafe(method_family = none)]
84        pub unsafe fn setHandle(&self, handle: Option<&BELayerHierarchyHandle>);
85    );
86}
87
88/// Methods declared on superclass `UIView`.
89impl BELayerHierarchyHostingView {
90    extern_methods!(
91        #[cfg(feature = "objc2-core-foundation")]
92        #[unsafe(method(initWithFrame:))]
93        #[unsafe(method_family = init)]
94        pub unsafe fn initWithFrame(this: Allocated<Self>, frame: CGRect) -> Retained<Self>;
95
96        /// # Safety
97        ///
98        /// `coder` possibly has further requirements.
99        #[unsafe(method(initWithCoder:))]
100        #[unsafe(method_family = init)]
101        pub unsafe fn initWithCoder(
102            this: Allocated<Self>,
103            coder: &NSCoder,
104        ) -> Option<Retained<Self>>;
105
106        #[unsafe(method(init))]
107        #[unsafe(method_family = init)]
108        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
109    );
110}
111
112/// Methods declared on superclass `NSObject`.
113impl BELayerHierarchyHostingView {
114    extern_methods!(
115        #[unsafe(method(new))]
116        #[unsafe(method_family = new)]
117        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
118    );
119}