objc2_quartz/generated/ImageKit/
IKFilterBrowserView.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::*;
6use objc2_app_kit::*;
7use objc2_foundation::*;
8
9use crate::*;
10
11extern_class!(
12    /// IKFilterBrowserView
13    ///
14    /// 2006 Apple Inc. All rights reserved.
15    /// Availability: Coming to a Leopard installation near you
16    ///
17    /// View containing the elements of the IKFilterBrowser
18    ///
19    /// See discussion in IKFilterBrowserPanel
20    ///
21    /// See also [Apple's documentation](https://developer.apple.com/documentation/quartz/ikfilterbrowserview?language=objc)
22    #[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        /// Use this method to show and hide the Preview
62        ///
63        /// Use this method to show and hide the Preview from the program.
64        ///
65        /// Parameter `inState`: Boolean for visibility of the preview.
66        #[unsafe(method(setPreviewState:))]
67        #[unsafe(method_family = none)]
68        pub unsafe fn setPreviewState(&self, in_state: bool);
69
70        /// Returns the name of the currently selected filter.
71        ///
72        /// Use this method in response to a IKFilterBrowserFilterSelectedNotification or IKFilterBrowserFilterDoubleClickNotification or afer returning from a modal session.
73        #[unsafe(method(filterName))]
74        #[unsafe(method_family = none)]
75        pub unsafe fn filterName(&self) -> Option<Retained<NSString>>;
76    );
77}
78
79/// Methods declared on superclass `NSView`.
80impl 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        /// # Safety
87        ///
88        /// `coder` possibly has further requirements.
89        #[unsafe(method(initWithCoder:))]
90        #[unsafe(method_family = init)]
91        pub unsafe fn initWithCoder(
92            this: Allocated<Self>,
93            coder: &NSCoder,
94        ) -> Option<Retained<Self>>;
95    );
96}
97
98/// Methods declared on superclass `NSResponder`.
99impl IKFilterBrowserView {
100    extern_methods!(
101        #[unsafe(method(init))]
102        #[unsafe(method_family = init)]
103        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
104    );
105}
106
107/// Methods declared on superclass `NSObject`.
108impl IKFilterBrowserView {
109    extern_methods!(
110        #[unsafe(method(new))]
111        #[unsafe(method_family = new)]
112        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
113    );
114}