icrate/generated/WebKit/
DOMCSSRule.rs1use crate::common::*;
4use crate::AppKit::*;
5use crate::Foundation::*;
6use crate::WebKit::*;
7
8extern_enum!(
9 #[underlying(c_uint)]
10 #[deprecated]
11 pub enum __anonymous__ {
12 #[deprecated]
13 DOM_UNKNOWN_RULE = 0,
14 #[deprecated]
15 DOM_STYLE_RULE = 1,
16 #[deprecated]
17 DOM_CHARSET_RULE = 2,
18 #[deprecated]
19 DOM_IMPORT_RULE = 3,
20 #[deprecated]
21 DOM_MEDIA_RULE = 4,
22 #[deprecated]
23 DOM_FONT_FACE_RULE = 5,
24 #[deprecated]
25 DOM_PAGE_RULE = 6,
26 #[deprecated]
27 DOM_KEYFRAMES_RULE = 7,
28 #[deprecated]
29 DOM_KEYFRAME_RULE = 8,
30 #[deprecated]
31 DOM_NAMESPACE_RULE = 10,
32 #[deprecated]
33 DOM_SUPPORTS_RULE = 12,
34 #[deprecated]
35 DOM_WEBKIT_REGION_RULE = 16,
36 #[deprecated]
37 DOM_WEBKIT_KEYFRAMES_RULE = 7,
38 #[deprecated]
39 DOM_WEBKIT_KEYFRAME_RULE = 8,
40 }
41);
42
43extern_class!(
44 #[derive(Debug, PartialEq, Eq, Hash)]
45 #[cfg(feature = "WebKit_DOMCSSRule")]
46 #[deprecated]
47 pub struct DOMCSSRule;
48
49 #[cfg(feature = "WebKit_DOMCSSRule")]
50 unsafe impl ClassType for DOMCSSRule {
51 #[inherits(WebScriptObject, NSObject)]
52 type Super = DOMObject;
53 type Mutability = InteriorMutable;
54 }
55);
56
57#[cfg(feature = "WebKit_DOMCSSRule")]
58unsafe impl NSCopying for DOMCSSRule {}
59
60#[cfg(feature = "WebKit_DOMCSSRule")]
61unsafe impl NSObjectProtocol for DOMCSSRule {}
62
63extern_methods!(
64 #[cfg(feature = "WebKit_DOMCSSRule")]
65 unsafe impl DOMCSSRule {
66 #[deprecated]
67 #[method(type)]
68 pub unsafe fn r#type(&self) -> c_ushort;
69
70 #[cfg(feature = "Foundation_NSString")]
71 #[deprecated]
72 #[method_id(@__retain_semantics Other cssText)]
73 pub unsafe fn cssText(&self) -> Id<NSString>;
74
75 #[cfg(feature = "Foundation_NSString")]
76 #[deprecated]
77 #[method(setCssText:)]
78 pub unsafe fn setCssText(&self, css_text: Option<&NSString>);
79
80 #[cfg(feature = "WebKit_DOMCSSStyleSheet")]
81 #[deprecated]
82 #[method_id(@__retain_semantics Other parentStyleSheet)]
83 pub unsafe fn parentStyleSheet(&self) -> Option<Id<DOMCSSStyleSheet>>;
84
85 #[deprecated]
86 #[method_id(@__retain_semantics Other parentRule)]
87 pub unsafe fn parentRule(&self) -> Option<Id<DOMCSSRule>>;
88 }
89);
90
91extern_methods!(
92 #[cfg(feature = "WebKit_DOMCSSRule")]
94 unsafe impl DOMCSSRule {
95 #[deprecated]
96 #[method_id(@__retain_semantics Init init)]
97 pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
98 }
99);
100
101extern_methods!(
102 #[cfg(feature = "WebKit_DOMCSSRule")]
104 unsafe impl DOMCSSRule {
105 #[method_id(@__retain_semantics New new)]
106 pub unsafe fn new() -> Id<Self>;
107 }
108);