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_enum!(
    #[underlying(c_uint)]
    #[deprecated]
    pub enum __anonymous__ {
        #[deprecated]
        DOM_ANY_TYPE = 0,
        #[deprecated]
        DOM_NUMBER_TYPE = 1,
        #[deprecated]
        DOM_STRING_TYPE = 2,
        #[deprecated]
        DOM_BOOLEAN_TYPE = 3,
        #[deprecated]
        DOM_UNORDERED_NODE_ITERATOR_TYPE = 4,
        #[deprecated]
        DOM_ORDERED_NODE_ITERATOR_TYPE = 5,
        #[deprecated]
        DOM_UNORDERED_NODE_SNAPSHOT_TYPE = 6,
        #[deprecated]
        DOM_ORDERED_NODE_SNAPSHOT_TYPE = 7,
        #[deprecated]
        DOM_ANY_UNORDERED_NODE_TYPE = 8,
        #[deprecated]
        DOM_FIRST_ORDERED_NODE_TYPE = 9,
    }
);

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

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

#[cfg(feature = "WebKit_DOMXPathResult")]
unsafe impl NSCopying for DOMXPathResult {}

#[cfg(feature = "WebKit_DOMXPathResult")]
unsafe impl NSObjectProtocol for DOMXPathResult {}

extern_methods!(
    #[cfg(feature = "WebKit_DOMXPathResult")]
    unsafe impl DOMXPathResult {
        #[deprecated]
        #[method(resultType)]
        pub unsafe fn resultType(&self) -> c_ushort;

        #[deprecated]
        #[method(numberValue)]
        pub unsafe fn numberValue(&self) -> c_double;

        #[cfg(feature = "Foundation_NSString")]
        #[deprecated]
        #[method_id(@__retain_semantics Other stringValue)]
        pub unsafe fn stringValue(&self) -> Id<NSString>;

        #[deprecated]
        #[method(booleanValue)]
        pub unsafe fn booleanValue(&self) -> bool;

        #[cfg(feature = "WebKit_DOMNode")]
        #[deprecated]
        #[method_id(@__retain_semantics Other singleNodeValue)]
        pub unsafe fn singleNodeValue(&self) -> Option<Id<DOMNode>>;

        #[deprecated]
        #[method(invalidIteratorState)]
        pub unsafe fn invalidIteratorState(&self) -> bool;

        #[deprecated]
        #[method(snapshotLength)]
        pub unsafe fn snapshotLength(&self) -> c_uint;

        #[cfg(feature = "WebKit_DOMNode")]
        #[deprecated]
        #[method_id(@__retain_semantics Other iterateNext)]
        pub unsafe fn iterateNext(&self) -> Option<Id<DOMNode>>;

        #[cfg(feature = "WebKit_DOMNode")]
        #[deprecated]
        #[method_id(@__retain_semantics Other snapshotItem:)]
        pub unsafe fn snapshotItem(&self, index: c_uint) -> Option<Id<DOMNode>>;
    }
);

extern_methods!(
    /// Methods declared on superclass `DOMObject`
    #[cfg(feature = "WebKit_DOMXPathResult")]
    unsafe impl DOMXPathResult {
        #[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_DOMXPathResult")]
    unsafe impl DOMXPathResult {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);