objc2_web_kit/generated/
DOMCSSStyleDeclaration.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
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/webkit/domcssstyledeclaration?language=objc)
12    #[unsafe(super(DOMObject, WebScriptObject, NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    #[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
15    #[deprecated]
16    pub struct DOMCSSStyleDeclaration;
17);
18
19#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
20extern_conformance!(
21    unsafe impl NSCopying for DOMCSSStyleDeclaration {}
22);
23
24#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
25unsafe impl CopyingHelper for DOMCSSStyleDeclaration {
26    type Result = Self;
27}
28
29#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
30extern_conformance!(
31    unsafe impl NSObjectProtocol for DOMCSSStyleDeclaration {}
32);
33
34#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
35impl DOMCSSStyleDeclaration {
36    extern_methods!(
37        #[deprecated]
38        #[unsafe(method(cssText))]
39        #[unsafe(method_family = none)]
40        pub unsafe fn cssText(&self) -> Retained<NSString>;
41
42        /// Setter for [`cssText`][Self::cssText].
43        #[deprecated]
44        #[unsafe(method(setCssText:))]
45        #[unsafe(method_family = none)]
46        pub unsafe fn setCssText(&self, css_text: Option<&NSString>);
47
48        #[deprecated]
49        #[unsafe(method(length))]
50        #[unsafe(method_family = none)]
51        pub unsafe fn length(&self) -> c_uint;
52
53        #[cfg(feature = "DOMCSSRule")]
54        #[deprecated]
55        #[unsafe(method(parentRule))]
56        #[unsafe(method_family = none)]
57        pub unsafe fn parentRule(&self) -> Option<Retained<DOMCSSRule>>;
58
59        #[deprecated]
60        #[unsafe(method(getPropertyValue:))]
61        #[unsafe(method_family = none)]
62        pub unsafe fn getPropertyValue(
63            &self,
64            property_name: Option<&NSString>,
65        ) -> Option<Retained<NSString>>;
66
67        #[cfg(feature = "DOMCSSValue")]
68        #[deprecated]
69        #[unsafe(method(getPropertyCSSValue:))]
70        #[unsafe(method_family = none)]
71        pub unsafe fn getPropertyCSSValue(
72            &self,
73            property_name: Option<&NSString>,
74        ) -> Option<Retained<DOMCSSValue>>;
75
76        #[deprecated]
77        #[unsafe(method(removeProperty:))]
78        #[unsafe(method_family = none)]
79        pub unsafe fn removeProperty(
80            &self,
81            property_name: Option<&NSString>,
82        ) -> Option<Retained<NSString>>;
83
84        #[deprecated]
85        #[unsafe(method(getPropertyPriority:))]
86        #[unsafe(method_family = none)]
87        pub unsafe fn getPropertyPriority(
88            &self,
89            property_name: Option<&NSString>,
90        ) -> Option<Retained<NSString>>;
91
92        #[unsafe(method(setProperty:value:priority:))]
93        #[unsafe(method_family = none)]
94        pub unsafe fn setProperty_value_priority(
95            &self,
96            property_name: Option<&NSString>,
97            value: Option<&NSString>,
98            priority: Option<&NSString>,
99        );
100
101        #[deprecated]
102        #[unsafe(method(item:))]
103        #[unsafe(method_family = none)]
104        pub unsafe fn item(&self, index: c_uint) -> Option<Retained<NSString>>;
105
106        #[deprecated]
107        #[unsafe(method(getPropertyShorthand:))]
108        #[unsafe(method_family = none)]
109        pub unsafe fn getPropertyShorthand(
110            &self,
111            property_name: Option<&NSString>,
112        ) -> Option<Retained<NSString>>;
113
114        #[unsafe(method(isPropertyImplicit:))]
115        #[unsafe(method_family = none)]
116        pub unsafe fn isPropertyImplicit(&self, property_name: Option<&NSString>) -> bool;
117    );
118}
119
120/// Methods declared on superclass `DOMObject`.
121#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
122impl DOMCSSStyleDeclaration {
123    extern_methods!(
124        #[deprecated]
125        #[unsafe(method(init))]
126        #[unsafe(method_family = init)]
127        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
128    );
129}
130
131/// Methods declared on superclass `NSObject`.
132#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
133impl DOMCSSStyleDeclaration {
134    extern_methods!(
135        #[unsafe(method(new))]
136        #[unsafe(method_family = new)]
137        pub unsafe fn new() -> Retained<Self>;
138    );
139}
140
141/// DOMCSSStyleDeclarationDeprecated.
142#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
143impl DOMCSSStyleDeclaration {
144    extern_methods!(
145        #[deprecated]
146        #[unsafe(method(setProperty:::))]
147        #[unsafe(method_family = none)]
148        pub unsafe fn setProperty(
149            &self,
150            property_name: Option<&NSString>,
151            value: Option<&NSString>,
152            priority: Option<&NSString>,
153        );
154    );
155}