use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_app_kit::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSView, NSResponder, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct IKFilterBrowserView;
);
extern_conformance!(
unsafe impl NSAccessibility for IKFilterBrowserView {}
);
extern_conformance!(
unsafe impl NSAccessibilityElementProtocol for IKFilterBrowserView {}
);
extern_conformance!(
unsafe impl NSAnimatablePropertyContainer for IKFilterBrowserView {}
);
extern_conformance!(
unsafe impl NSAppearanceCustomization for IKFilterBrowserView {}
);
extern_conformance!(
unsafe impl NSCoding for IKFilterBrowserView {}
);
extern_conformance!(
unsafe impl NSDraggingDestination for IKFilterBrowserView {}
);
extern_conformance!(
unsafe impl NSObjectProtocol for IKFilterBrowserView {}
);
extern_conformance!(
unsafe impl NSUserInterfaceItemIdentification for IKFilterBrowserView {}
);
impl IKFilterBrowserView {
extern_methods!(
#[unsafe(method(setPreviewState:))]
#[unsafe(method_family = none)]
pub unsafe fn setPreviewState(&self, in_state: bool);
#[unsafe(method(filterName))]
#[unsafe(method_family = none)]
pub unsafe fn filterName(&self) -> Option<Retained<NSString>>;
);
}
impl IKFilterBrowserView {
extern_methods!(
#[unsafe(method(initWithFrame:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
#[unsafe(method(initWithCoder:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCoder(
this: Allocated<Self>,
coder: &NSCoder,
) -> Option<Retained<Self>>;
);
}
impl IKFilterBrowserView {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
impl IKFilterBrowserView {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}