objc2_web_kit/generated/
DOMStyleSheet.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(DOMObject, WebScriptObject, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
15 #[deprecated]
16 pub struct DOMStyleSheet;
17);
18
19#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
20extern_conformance!(
21 unsafe impl NSCopying for DOMStyleSheet {}
22);
23
24#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
25unsafe impl CopyingHelper for DOMStyleSheet {
26 type Result = Self;
27}
28
29#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
30extern_conformance!(
31 unsafe impl NSObjectProtocol for DOMStyleSheet {}
32);
33
34#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
35impl DOMStyleSheet {
36 extern_methods!(
37 #[deprecated]
38 #[unsafe(method(type))]
39 #[unsafe(method_family = none)]
40 pub unsafe fn r#type(&self) -> Retained<NSString>;
41
42 #[deprecated]
43 #[unsafe(method(disabled))]
44 #[unsafe(method_family = none)]
45 pub unsafe fn disabled(&self) -> bool;
46
47 #[deprecated]
49 #[unsafe(method(setDisabled:))]
50 #[unsafe(method_family = none)]
51 pub unsafe fn setDisabled(&self, disabled: bool);
52
53 #[cfg(feature = "DOMNode")]
54 #[deprecated]
55 #[unsafe(method(ownerNode))]
56 #[unsafe(method_family = none)]
57 pub unsafe fn ownerNode(&self) -> Option<Retained<DOMNode>>;
58
59 #[deprecated]
60 #[unsafe(method(parentStyleSheet))]
61 #[unsafe(method_family = none)]
62 pub unsafe fn parentStyleSheet(&self) -> Option<Retained<DOMStyleSheet>>;
63
64 #[deprecated]
65 #[unsafe(method(href))]
66 #[unsafe(method_family = none)]
67 pub unsafe fn href(&self) -> Retained<NSString>;
68
69 #[deprecated]
70 #[unsafe(method(title))]
71 #[unsafe(method_family = none)]
72 pub unsafe fn title(&self) -> Retained<NSString>;
73
74 #[cfg(feature = "DOMMediaList")]
75 #[deprecated]
76 #[unsafe(method(media))]
77 #[unsafe(method_family = none)]
78 pub unsafe fn media(&self) -> Option<Retained<DOMMediaList>>;
79 );
80}
81
82#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
84impl DOMStyleSheet {
85 extern_methods!(
86 #[deprecated]
87 #[unsafe(method(init))]
88 #[unsafe(method_family = init)]
89 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
90 );
91}
92
93#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
95impl DOMStyleSheet {
96 extern_methods!(
97 #[unsafe(method(new))]
98 #[unsafe(method_family = new)]
99 pub unsafe fn new() -> Retained<Self>;
100 );
101}