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_DOMProgressEvent")]
    #[deprecated]
    pub struct DOMProgressEvent;

    #[cfg(feature = "WebKit_DOMProgressEvent")]
    unsafe impl ClassType for DOMProgressEvent {
        #[inherits(DOMObject, WebScriptObject, NSObject)]
        type Super = DOMEvent;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "WebKit_DOMProgressEvent")]
unsafe impl NSCopying for DOMProgressEvent {}

#[cfg(feature = "WebKit_DOMProgressEvent")]
unsafe impl NSObjectProtocol for DOMProgressEvent {}

extern_methods!(
    #[cfg(feature = "WebKit_DOMProgressEvent")]
    unsafe impl DOMProgressEvent {
        #[deprecated]
        #[method(lengthComputable)]
        pub unsafe fn lengthComputable(&self) -> bool;

        #[deprecated]
        #[method(loaded)]
        pub unsafe fn loaded(&self) -> c_ulonglong;

        #[deprecated]
        #[method(total)]
        pub unsafe fn total(&self) -> c_ulonglong;
    }
);

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

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "WebKit_DOMProgressEvent")]
    unsafe impl DOMProgressEvent {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);