objc2-browser-engine-kit 0.3.2

Bindings to the BrowserEngineKit framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-foundation")]
use objc2_core_foundation::*;
use objc2_foundation::*;
#[cfg(feature = "objc2-quartz-core")]
use objc2_quartz_core::*;
use objc2_ui_kit::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/browserenginekit/belayerhierarchyhostingview?language=objc)
    #[unsafe(super(UIView, UIResponder, NSObject))]
    #[thread_kind = MainThreadOnly]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct BELayerHierarchyHostingView;
);

#[cfg(feature = "objc2-quartz-core")]
extern_conformance!(
    unsafe impl CALayerDelegate for BELayerHierarchyHostingView {}
);

extern_conformance!(
    unsafe impl NSCoding for BELayerHierarchyHostingView {}
);

extern_conformance!(
    unsafe impl NSObjectProtocol for BELayerHierarchyHostingView {}
);

extern_conformance!(
    unsafe impl UIAppearance for BELayerHierarchyHostingView {}
);

extern_conformance!(
    unsafe impl UIAppearanceContainer for BELayerHierarchyHostingView {}
);

extern_conformance!(
    unsafe impl UICoordinateSpace for BELayerHierarchyHostingView {}
);

extern_conformance!(
    unsafe impl UIDynamicItem for BELayerHierarchyHostingView {}
);

extern_conformance!(
    unsafe impl UIFocusEnvironment for BELayerHierarchyHostingView {}
);

extern_conformance!(
    unsafe impl UIFocusItem for BELayerHierarchyHostingView {}
);

extern_conformance!(
    unsafe impl UIFocusItemContainer for BELayerHierarchyHostingView {}
);

extern_conformance!(
    unsafe impl UIResponderStandardEditActions for BELayerHierarchyHostingView {}
);

extern_conformance!(
    unsafe impl UITraitEnvironment for BELayerHierarchyHostingView {}
);

impl BELayerHierarchyHostingView {
    extern_methods!(
        #[cfg(feature = "BELayerHierarchyHandle")]
        /// a reference to a BELayerHierarchy whose contents should appear as the contents of this view
        #[unsafe(method(handle))]
        #[unsafe(method_family = none)]
        pub unsafe fn handle(&self) -> Option<Retained<BELayerHierarchyHandle>>;

        #[cfg(feature = "BELayerHierarchyHandle")]
        /// Setter for [`handle`][Self::handle].
        #[unsafe(method(setHandle:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setHandle(&self, handle: Option<&BELayerHierarchyHandle>);
    );
}

/// Methods declared on superclass `UIView`.
impl BELayerHierarchyHostingView {
    extern_methods!(
        #[cfg(feature = "objc2-core-foundation")]
        #[unsafe(method(initWithFrame:))]
        #[unsafe(method_family = init)]
        pub unsafe fn initWithFrame(this: Allocated<Self>, frame: CGRect) -> Retained<Self>;

        /// # Safety
        ///
        /// `coder` possibly has further requirements.
        #[unsafe(method(initWithCoder:))]
        #[unsafe(method_family = init)]
        pub unsafe fn initWithCoder(
            this: Allocated<Self>,
            coder: &NSCoder,
        ) -> Option<Retained<Self>>;

        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
    );
}

/// Methods declared on superclass `NSObject`.
impl BELayerHierarchyHostingView {
    extern_methods!(
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
    );
}