objc2_web_kit/generated/
DOMCSSValue.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
10/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_css_inherit?language=objc)
11#[deprecated]
12pub const DOM_CSS_INHERIT: c_uint = 0;
13/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_css_primitive_value?language=objc)
14#[deprecated]
15pub const DOM_CSS_PRIMITIVE_VALUE: c_uint = 1;
16/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_css_value_list?language=objc)
17#[deprecated]
18pub const DOM_CSS_VALUE_LIST: c_uint = 2;
19/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_css_custom?language=objc)
20#[deprecated]
21pub const DOM_CSS_CUSTOM: c_uint = 3;
22
23extern_class!(
24    /// [Apple's documentation](https://developer.apple.com/documentation/webkit/domcssvalue?language=objc)
25    #[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"))]
33extern_conformance!(
34    unsafe impl NSCopying for DOMCSSValue {}
35);
36
37#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
38unsafe impl CopyingHelper for DOMCSSValue {
39    type Result = Self;
40}
41
42#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
43extern_conformance!(
44    unsafe impl NSObjectProtocol for DOMCSSValue {}
45);
46
47#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
48impl DOMCSSValue {
49    extern_methods!(
50        #[deprecated]
51        #[unsafe(method(cssText))]
52        #[unsafe(method_family = none)]
53        pub unsafe fn cssText(&self) -> Retained<NSString>;
54
55        /// Setter for [`cssText`][Self::cssText].
56        ///
57        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
58        #[deprecated]
59        #[unsafe(method(setCssText:))]
60        #[unsafe(method_family = none)]
61        pub unsafe fn setCssText(&self, css_text: Option<&NSString>);
62
63        #[deprecated]
64        #[unsafe(method(cssValueType))]
65        #[unsafe(method_family = none)]
66        pub unsafe fn cssValueType(&self) -> c_ushort;
67    );
68}
69
70/// Methods declared on superclass `DOMObject`.
71#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
72impl DOMCSSValue {
73    extern_methods!(
74        #[deprecated]
75        #[unsafe(method(init))]
76        #[unsafe(method_family = init)]
77        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
78    );
79}
80
81/// Methods declared on superclass `NSObject`.
82#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
83impl DOMCSSValue {
84    extern_methods!(
85        #[unsafe(method(new))]
86        #[unsafe(method_family = new)]
87        pub unsafe fn new() -> Retained<Self>;
88    );
89}