objc2_quartz/generated/ImageKit/
IKFilterBrowserView.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_app_kit::*;
7use objc2_foundation::*;
8
9use crate::*;
10
11extern_class!(
12 #[unsafe(super(NSView, NSResponder, NSObject))]
23 #[derive(Debug, PartialEq, Eq, Hash)]
24 pub struct IKFilterBrowserView;
25);
26
27extern_conformance!(
28 unsafe impl NSAccessibility for IKFilterBrowserView {}
29);
30
31extern_conformance!(
32 unsafe impl NSAccessibilityElementProtocol for IKFilterBrowserView {}
33);
34
35extern_conformance!(
36 unsafe impl NSAnimatablePropertyContainer for IKFilterBrowserView {}
37);
38
39extern_conformance!(
40 unsafe impl NSAppearanceCustomization for IKFilterBrowserView {}
41);
42
43extern_conformance!(
44 unsafe impl NSCoding for IKFilterBrowserView {}
45);
46
47extern_conformance!(
48 unsafe impl NSDraggingDestination for IKFilterBrowserView {}
49);
50
51extern_conformance!(
52 unsafe impl NSObjectProtocol for IKFilterBrowserView {}
53);
54
55extern_conformance!(
56 unsafe impl NSUserInterfaceItemIdentification for IKFilterBrowserView {}
57);
58
59impl IKFilterBrowserView {
60 extern_methods!(
61 #[unsafe(method(setPreviewState:))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn setPreviewState(&self, in_state: bool);
69
70 #[unsafe(method(filterName))]
74 #[unsafe(method_family = none)]
75 pub unsafe fn filterName(&self) -> Option<Retained<NSString>>;
76 );
77}
78
79impl IKFilterBrowserView {
81 extern_methods!(
82 #[unsafe(method(initWithFrame:))]
83 #[unsafe(method_family = init)]
84 pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
85
86 #[unsafe(method(initWithCoder:))]
87 #[unsafe(method_family = init)]
88 pub unsafe fn initWithCoder(
89 this: Allocated<Self>,
90 coder: &NSCoder,
91 ) -> Option<Retained<Self>>;
92 );
93}
94
95impl IKFilterBrowserView {
97 extern_methods!(
98 #[unsafe(method(init))]
99 #[unsafe(method_family = init)]
100 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
101 );
102}
103
104impl IKFilterBrowserView {
106 extern_methods!(
107 #[unsafe(method(new))]
108 #[unsafe(method_family = new)]
109 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
110 );
111}