//! 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_DOMRect")]
    #[deprecated]
    pub struct DOMRect;

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

#[cfg(feature = "WebKit_DOMRect")]
unsafe impl NSCopying for DOMRect {}

#[cfg(feature = "WebKit_DOMRect")]
unsafe impl NSObjectProtocol for DOMRect {}

extern_methods!(
    #[cfg(feature = "WebKit_DOMRect")]
    unsafe impl DOMRect {
        #[cfg(feature = "WebKit_DOMCSSPrimitiveValue")]
        #[method_id(@__retain_semantics Other top)]
        pub unsafe fn top(&self) -> Option<Id<DOMCSSPrimitiveValue>>;

        #[cfg(feature = "WebKit_DOMCSSPrimitiveValue")]
        #[method_id(@__retain_semantics Other right)]
        pub unsafe fn right(&self) -> Option<Id<DOMCSSPrimitiveValue>>;

        #[cfg(feature = "WebKit_DOMCSSPrimitiveValue")]
        #[method_id(@__retain_semantics Other bottom)]
        pub unsafe fn bottom(&self) -> Option<Id<DOMCSSPrimitiveValue>>;

        #[cfg(feature = "WebKit_DOMCSSPrimitiveValue")]
        #[method_id(@__retain_semantics Other left)]
        pub unsafe fn left(&self) -> Option<Id<DOMCSSPrimitiveValue>>;
    }
);

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

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