objc2_web_kit/generated/
DOMCSSValue.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10#[deprecated]
12pub const DOM_CSS_INHERIT: c_uint = 0;
13#[deprecated]
15pub const DOM_CSS_PRIMITIVE_VALUE: c_uint = 1;
16#[deprecated]
18pub const DOM_CSS_VALUE_LIST: c_uint = 2;
19#[deprecated]
21pub const DOM_CSS_CUSTOM: c_uint = 3;
22
23extern_class!(
24 #[unsafe(super(DOMObject, WebScriptObject, NSObject))]
26 #[derive(Debug, PartialEq, Eq, Hash)]
27 #[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
28 #[deprecated]
29 pub struct DOMCSSValue;
30);
31
32#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
33unsafe impl NSCopying for DOMCSSValue {}
34
35#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
36unsafe impl CopyingHelper for DOMCSSValue {
37 type Result = Self;
38}
39
40#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
41unsafe impl NSObjectProtocol for DOMCSSValue {}
42
43#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
44impl DOMCSSValue {
45 extern_methods!(
46 #[deprecated]
47 #[unsafe(method(cssText))]
48 #[unsafe(method_family = none)]
49 pub unsafe fn cssText(&self) -> Retained<NSString>;
50
51 #[deprecated]
53 #[unsafe(method(setCssText:))]
54 #[unsafe(method_family = none)]
55 pub unsafe fn setCssText(&self, css_text: Option<&NSString>);
56
57 #[deprecated]
58 #[unsafe(method(cssValueType))]
59 #[unsafe(method_family = none)]
60 pub unsafe fn cssValueType(&self) -> c_ushort;
61 );
62}
63
64#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
66impl DOMCSSValue {
67 extern_methods!(
68 #[deprecated]
69 #[unsafe(method(init))]
70 #[unsafe(method_family = init)]
71 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
72 );
73}
74
75#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
77impl DOMCSSValue {
78 extern_methods!(
79 #[unsafe(method(new))]
80 #[unsafe(method_family = new)]
81 pub unsafe fn new() -> Retained<Self>;
82 );
83}