objc2_web_kit/generated/
DOMRGBColor.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-app-kit")]
6#[cfg(target_os = "macos")]
7use objc2_app_kit::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern_class!(
13 #[unsafe(super(DOMObject, WebScriptObject, NSObject))]
15 #[derive(Debug, PartialEq, Eq, Hash)]
16 #[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
17 #[deprecated]
18 pub struct DOMRGBColor;
19);
20
21#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
22extern_conformance!(
23 unsafe impl NSCopying for DOMRGBColor {}
24);
25
26#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
27unsafe impl CopyingHelper for DOMRGBColor {
28 type Result = Self;
29}
30
31#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
32extern_conformance!(
33 unsafe impl NSObjectProtocol for DOMRGBColor {}
34);
35
36#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
37impl DOMRGBColor {
38 extern_methods!(
39 #[cfg(all(feature = "DOMCSSPrimitiveValue", feature = "DOMCSSValue"))]
40 #[deprecated]
41 #[unsafe(method(red))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn red(&self) -> Option<Retained<DOMCSSPrimitiveValue>>;
44
45 #[cfg(all(feature = "DOMCSSPrimitiveValue", feature = "DOMCSSValue"))]
46 #[deprecated]
47 #[unsafe(method(green))]
48 #[unsafe(method_family = none)]
49 pub unsafe fn green(&self) -> Option<Retained<DOMCSSPrimitiveValue>>;
50
51 #[cfg(all(feature = "DOMCSSPrimitiveValue", feature = "DOMCSSValue"))]
52 #[deprecated]
53 #[unsafe(method(blue))]
54 #[unsafe(method_family = none)]
55 pub unsafe fn blue(&self) -> Option<Retained<DOMCSSPrimitiveValue>>;
56
57 #[cfg(all(feature = "DOMCSSPrimitiveValue", feature = "DOMCSSValue"))]
58 #[deprecated]
59 #[unsafe(method(alpha))]
60 #[unsafe(method_family = none)]
61 pub unsafe fn alpha(&self) -> Option<Retained<DOMCSSPrimitiveValue>>;
62
63 #[cfg(feature = "objc2-app-kit")]
64 #[cfg(target_os = "macos")]
65 #[unsafe(method(color))]
66 #[unsafe(method_family = none)]
67 pub unsafe fn color(&self) -> Retained<NSColor>;
68 );
69}
70
71#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
73impl DOMRGBColor {
74 extern_methods!(
75 #[deprecated]
76 #[unsafe(method(init))]
77 #[unsafe(method_family = init)]
78 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
79 );
80}
81
82#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
84impl DOMRGBColor {
85 extern_methods!(
86 #[unsafe(method(new))]
87 #[unsafe(method_family = new)]
88 pub unsafe fn new() -> Retained<Self>;
89 );
90}