objc2_web_kit/generated/
DOMObject.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10/// [Apple's documentation](https://developer.apple.com/documentation/webkit/domtimestamp?language=objc)
11pub type DOMTimeStamp = c_ulonglong;
12
13extern_class!(
14    /// [Apple's documentation](https://developer.apple.com/documentation/webkit/domobject?language=objc)
15    #[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")]
23extern_conformance!(
24    unsafe impl NSCopying for DOMObject {}
25);
26
27#[cfg(feature = "WebScriptObject")]
28unsafe impl CopyingHelper for DOMObject {
29    type Result = Self;
30}
31
32#[cfg(feature = "WebScriptObject")]
33extern_conformance!(
34    unsafe impl NSObjectProtocol for DOMObject {}
35);
36
37#[cfg(feature = "WebScriptObject")]
38impl DOMObject {
39    extern_methods!(
40        #[deprecated]
41        #[unsafe(method(init))]
42        #[unsafe(method_family = init)]
43        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
44    );
45}
46
47/// Methods declared on superclass `NSObject`.
48#[cfg(feature = "WebScriptObject")]
49impl DOMObject {
50    extern_methods!(
51        #[unsafe(method(new))]
52        #[unsafe(method_family = new)]
53        pub unsafe fn new() -> Retained<Self>;
54    );
55}
56
57/// DOMLinkStyle.
58#[cfg(feature = "WebScriptObject")]
59impl DOMObject {
60    extern_methods!(
61        #[cfg(feature = "DOMStyleSheet")]
62        #[unsafe(method(sheet))]
63        #[unsafe(method_family = none)]
64        pub unsafe fn sheet(&self) -> Option<Retained<DOMStyleSheet>>;
65    );
66}