objc2_web_kit/generated/
DOMObject.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10pub type DOMTimeStamp = c_ulonglong;
12
13extern_class!(
14 #[unsafe(super(WebScriptObject, NSObject))]
16 #[derive(Debug, PartialEq, Eq, Hash)]
17 #[cfg(feature = "WebScriptObject")]
18 #[deprecated]
19 pub struct DOMObject;
20);
21
22#[cfg(feature = "WebScriptObject")]
23unsafe impl NSCopying for DOMObject {}
24
25#[cfg(feature = "WebScriptObject")]
26unsafe impl CopyingHelper for DOMObject {
27 type Result = Self;
28}
29
30#[cfg(feature = "WebScriptObject")]
31unsafe impl NSObjectProtocol for DOMObject {}
32
33#[cfg(feature = "WebScriptObject")]
34impl DOMObject {
35 extern_methods!(
36 #[deprecated]
37 #[unsafe(method(init))]
38 #[unsafe(method_family = init)]
39 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
40 );
41}
42
43#[cfg(feature = "WebScriptObject")]
45impl DOMObject {
46 extern_methods!(
47 #[unsafe(method(new))]
48 #[unsafe(method_family = new)]
49 pub unsafe fn new() -> Retained<Self>;
50 );
51}
52
53#[cfg(feature = "WebScriptObject")]
55impl DOMObject {
56 extern_methods!(
57 #[cfg(feature = "DOMStyleSheet")]
58 #[unsafe(method(sheet))]
59 #[unsafe(method_family = none)]
60 pub unsafe fn sheet(&self) -> Option<Retained<DOMStyleSheet>>;
61 );
62}