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