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_CSS_UNKNOWN = 0,
        #[deprecated]
        DOM_CSS_NUMBER = 1,
        #[deprecated]
        DOM_CSS_PERCENTAGE = 2,
        #[deprecated]
        DOM_CSS_EMS = 3,
        #[deprecated]
        DOM_CSS_EXS = 4,
        #[deprecated]
        DOM_CSS_PX = 5,
        #[deprecated]
        DOM_CSS_CM = 6,
        #[deprecated]
        DOM_CSS_MM = 7,
        #[deprecated]
        DOM_CSS_IN = 8,
        #[deprecated]
        DOM_CSS_PT = 9,
        #[deprecated]
        DOM_CSS_PC = 10,
        #[deprecated]
        DOM_CSS_DEG = 11,
        #[deprecated]
        DOM_CSS_RAD = 12,
        #[deprecated]
        DOM_CSS_GRAD = 13,
        #[deprecated]
        DOM_CSS_MS = 14,
        #[deprecated]
        DOM_CSS_S = 15,
        #[deprecated]
        DOM_CSS_HZ = 16,
        #[deprecated]
        DOM_CSS_KHZ = 17,
        #[deprecated]
        DOM_CSS_DIMENSION = 18,
        #[deprecated]
        DOM_CSS_STRING = 19,
        #[deprecated]
        DOM_CSS_URI = 20,
        #[deprecated]
        DOM_CSS_IDENT = 21,
        #[deprecated]
        DOM_CSS_ATTR = 22,
        #[deprecated]
        DOM_CSS_COUNTER = 23,
        #[deprecated]
        DOM_CSS_RECT = 24,
        #[deprecated]
        DOM_CSS_RGBCOLOR = 25,
        #[deprecated]
        DOM_CSS_VW = 26,
        #[deprecated]
        DOM_CSS_VH = 27,
        #[deprecated]
        DOM_CSS_VMIN = 28,
        #[deprecated]
        DOM_CSS_VMAX = 29,
    }
);

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

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

#[cfg(feature = "WebKit_DOMCSSPrimitiveValue")]
unsafe impl NSCopying for DOMCSSPrimitiveValue {}

#[cfg(feature = "WebKit_DOMCSSPrimitiveValue")]
unsafe impl NSObjectProtocol for DOMCSSPrimitiveValue {}

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

        #[method(setFloatValue:floatValue:)]
        pub unsafe fn setFloatValue_floatValue(&self, unit_type: c_ushort, float_value: c_float);

        #[deprecated]
        #[method(getFloatValue:)]
        pub unsafe fn getFloatValue(&self, unit_type: c_ushort) -> c_float;

        #[cfg(feature = "Foundation_NSString")]
        #[method(setStringValue:stringValue:)]
        pub unsafe fn setStringValue_stringValue(
            &self,
            string_type: c_ushort,
            string_value: Option<&NSString>,
        );

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

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

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

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

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

extern_methods!(
    /// DOMCSSPrimitiveValueDeprecated
    #[cfg(feature = "WebKit_DOMCSSPrimitiveValue")]
    unsafe impl DOMCSSPrimitiveValue {
        #[deprecated]
        #[method(setFloatValue::)]
        pub unsafe fn setFloatValue(&self, unit_type: c_ushort, float_value: c_float);

        #[cfg(feature = "Foundation_NSString")]
        #[deprecated]
        #[method(setStringValue::)]
        pub unsafe fn setStringValue(&self, string_type: c_ushort, string_value: Option<&NSString>);
    }
);