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

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

#[cfg(feature = "WebKit_DOMStyleSheet")]
unsafe impl NSCopying for DOMStyleSheet {}

#[cfg(feature = "WebKit_DOMStyleSheet")]
unsafe impl NSObjectProtocol for DOMStyleSheet {}

extern_methods!(
    #[cfg(feature = "WebKit_DOMStyleSheet")]
    unsafe impl DOMStyleSheet {
        #[cfg(feature = "Foundation_NSString")]
        #[deprecated]
        #[method_id(@__retain_semantics Other type)]
        pub unsafe fn r#type(&self) -> Id<NSString>;

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

        #[deprecated]
        #[method(setDisabled:)]
        pub unsafe fn setDisabled(&self, disabled: bool);

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

        #[deprecated]
        #[method_id(@__retain_semantics Other parentStyleSheet)]
        pub unsafe fn parentStyleSheet(&self) -> Option<Id<DOMStyleSheet>>;

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

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

        #[cfg(feature = "WebKit_DOMMediaList")]
        #[deprecated]
        #[method_id(@__retain_semantics Other media)]
        pub unsafe fn media(&self) -> Option<Id<DOMMediaList>>;
    }
);

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