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"))]
20unsafe impl NSCopying for DOMStyleSheet {}
21
22#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
23unsafe impl CopyingHelper for DOMStyleSheet {
24 type Result = Self;
25}
26
27#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
28unsafe impl NSObjectProtocol for DOMStyleSheet {}
29
30#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
31impl DOMStyleSheet {
32 extern_methods!(
33 #[deprecated]
34 #[unsafe(method(type))]
35 #[unsafe(method_family = none)]
36 pub unsafe fn r#type(&self) -> Retained<NSString>;
37
38 #[deprecated]
39 #[unsafe(method(disabled))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn disabled(&self) -> bool;
42
43 #[deprecated]
45 #[unsafe(method(setDisabled:))]
46 #[unsafe(method_family = none)]
47 pub unsafe fn setDisabled(&self, disabled: bool);
48
49 #[cfg(feature = "DOMNode")]
50 #[deprecated]
51 #[unsafe(method(ownerNode))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn ownerNode(&self) -> Option<Retained<DOMNode>>;
54
55 #[deprecated]
56 #[unsafe(method(parentStyleSheet))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn parentStyleSheet(&self) -> Option<Retained<DOMStyleSheet>>;
59
60 #[deprecated]
61 #[unsafe(method(href))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn href(&self) -> Retained<NSString>;
64
65 #[deprecated]
66 #[unsafe(method(title))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn title(&self) -> Retained<NSString>;
69
70 #[cfg(feature = "DOMMediaList")]
71 #[deprecated]
72 #[unsafe(method(media))]
73 #[unsafe(method_family = none)]
74 pub unsafe fn media(&self) -> Option<Retained<DOMMediaList>>;
75 );
76}
77
78#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
80impl DOMStyleSheet {
81 extern_methods!(
82 #[deprecated]
83 #[unsafe(method(init))]
84 #[unsafe(method_family = init)]
85 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
86 );
87}
88
89#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
91impl DOMStyleSheet {
92 extern_methods!(
93 #[unsafe(method(new))]
94 #[unsafe(method_family = new)]
95 pub unsafe fn new() -> Retained<Self>;
96 );
97}