icrate/generated/WebKit/
WKOpenPanelParameters.rs1use crate::common::*;
4use crate::AppKit::*;
5use crate::Foundation::*;
6use crate::WebKit::*;
7
8extern_class!(
9    #[derive(Debug, PartialEq, Eq, Hash)]
10    #[cfg(feature = "WebKit_WKOpenPanelParameters")]
11    pub struct WKOpenPanelParameters;
12
13    #[cfg(feature = "WebKit_WKOpenPanelParameters")]
14    unsafe impl ClassType for WKOpenPanelParameters {
15        type Super = NSObject;
16        type Mutability = InteriorMutable;
17    }
18);
19
20#[cfg(feature = "WebKit_WKOpenPanelParameters")]
21unsafe impl NSObjectProtocol for WKOpenPanelParameters {}
22
23extern_methods!(
24    #[cfg(feature = "WebKit_WKOpenPanelParameters")]
25    unsafe impl WKOpenPanelParameters {
26        #[method(allowsMultipleSelection)]
27        pub unsafe fn allowsMultipleSelection(&self) -> bool;
28
29        #[method(allowsDirectories)]
30        pub unsafe fn allowsDirectories(&self) -> bool;
31    }
32);
33
34extern_methods!(
35    #[cfg(feature = "WebKit_WKOpenPanelParameters")]
37    unsafe impl WKOpenPanelParameters {
38        #[method_id(@__retain_semantics Init init)]
39        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
40
41        #[method_id(@__retain_semantics New new)]
42        pub unsafe fn new() -> Id<Self>;
43    }
44);