objc2_web_kit/generated/
DOMRect.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[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"))]
19extern_conformance!(
20 unsafe impl NSCopying for DOMRect {}
21);
22
23#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
24unsafe impl CopyingHelper for DOMRect {
25 type Result = Self;
26}
27
28#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
29extern_conformance!(
30 unsafe impl NSObjectProtocol for DOMRect {}
31);
32
33#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
34impl DOMRect {
35 extern_methods!(
36 #[cfg(all(feature = "DOMCSSPrimitiveValue", feature = "DOMCSSValue"))]
37 #[deprecated]
38 #[unsafe(method(top))]
39 #[unsafe(method_family = none)]
40 pub unsafe fn top(&self) -> Option<Retained<DOMCSSPrimitiveValue>>;
41
42 #[cfg(all(feature = "DOMCSSPrimitiveValue", feature = "DOMCSSValue"))]
43 #[deprecated]
44 #[unsafe(method(right))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn right(&self) -> Option<Retained<DOMCSSPrimitiveValue>>;
47
48 #[cfg(all(feature = "DOMCSSPrimitiveValue", feature = "DOMCSSValue"))]
49 #[deprecated]
50 #[unsafe(method(bottom))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn bottom(&self) -> Option<Retained<DOMCSSPrimitiveValue>>;
53
54 #[cfg(all(feature = "DOMCSSPrimitiveValue", feature = "DOMCSSValue"))]
55 #[deprecated]
56 #[unsafe(method(left))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn left(&self) -> Option<Retained<DOMCSSPrimitiveValue>>;
59 );
60}
61
62#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
64impl DOMRect {
65 extern_methods!(
66 #[deprecated]
67 #[unsafe(method(init))]
68 #[unsafe(method_family = init)]
69 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
70 );
71}
72
73#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
75impl DOMRect {
76 extern_methods!(
77 #[unsafe(method(new))]
78 #[unsafe(method_family = new)]
79 pub unsafe fn new() -> Retained<Self>;
80 );
81}