icrate 0.1.2

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::WebKit::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "WebKit_WKOpenPanelParameters")]
    pub struct WKOpenPanelParameters;

    #[cfg(feature = "WebKit_WKOpenPanelParameters")]
    unsafe impl ClassType for WKOpenPanelParameters {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "WebKit_WKOpenPanelParameters")]
unsafe impl NSObjectProtocol for WKOpenPanelParameters {}

extern_methods!(
    #[cfg(feature = "WebKit_WKOpenPanelParameters")]
    unsafe impl WKOpenPanelParameters {
        #[method(allowsMultipleSelection)]
        pub unsafe fn allowsMultipleSelection(&self) -> bool;

        #[method(allowsDirectories)]
        pub unsafe fn allowsDirectories(&self) -> bool;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "WebKit_WKOpenPanelParameters")]
    unsafe impl WKOpenPanelParameters {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);