objc2_web_kit/generated/
DOMRect.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/webkit/domrect?language=objc)
11    #[unsafe(super(DOMObject, WebScriptObject, NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    #[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
14    #[deprecated]
15    pub struct DOMRect;
16);
17
18#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
19unsafe impl NSCopying for DOMRect {}
20
21#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
22unsafe impl CopyingHelper for DOMRect {
23    type Result = Self;
24}
25
26#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
27unsafe impl NSObjectProtocol for DOMRect {}
28
29#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
30impl DOMRect {
31    extern_methods!(
32        #[cfg(all(feature = "DOMCSSPrimitiveValue", feature = "DOMCSSValue"))]
33        #[deprecated]
34        #[unsafe(method(top))]
35        #[unsafe(method_family = none)]
36        pub unsafe fn top(&self) -> Option<Retained<DOMCSSPrimitiveValue>>;
37
38        #[cfg(all(feature = "DOMCSSPrimitiveValue", feature = "DOMCSSValue"))]
39        #[deprecated]
40        #[unsafe(method(right))]
41        #[unsafe(method_family = none)]
42        pub unsafe fn right(&self) -> Option<Retained<DOMCSSPrimitiveValue>>;
43
44        #[cfg(all(feature = "DOMCSSPrimitiveValue", feature = "DOMCSSValue"))]
45        #[deprecated]
46        #[unsafe(method(bottom))]
47        #[unsafe(method_family = none)]
48        pub unsafe fn bottom(&self) -> Option<Retained<DOMCSSPrimitiveValue>>;
49
50        #[cfg(all(feature = "DOMCSSPrimitiveValue", feature = "DOMCSSValue"))]
51        #[deprecated]
52        #[unsafe(method(left))]
53        #[unsafe(method_family = none)]
54        pub unsafe fn left(&self) -> Option<Retained<DOMCSSPrimitiveValue>>;
55    );
56}
57
58/// Methods declared on superclass `DOMObject`.
59#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
60impl DOMRect {
61    extern_methods!(
62        #[deprecated]
63        #[unsafe(method(init))]
64        #[unsafe(method_family = init)]
65        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
66    );
67}
68
69/// Methods declared on superclass `NSObject`.
70#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
71impl DOMRect {
72    extern_methods!(
73        #[unsafe(method(new))]
74        #[unsafe(method_family = new)]
75        pub unsafe fn new() -> Retained<Self>;
76    );
77}