objc2_web_kit/generated/
DOMCSSImportRule.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/webkit/domcssimportrule?language=objc)
11    #[unsafe(super(DOMCSSRule, DOMObject, WebScriptObject, NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    #[cfg(all(
14        feature = "DOMCSSRule",
15        feature = "DOMObject",
16        feature = "WebScriptObject"
17    ))]
18    #[deprecated]
19    pub struct DOMCSSImportRule;
20);
21
22#[cfg(all(
23    feature = "DOMCSSRule",
24    feature = "DOMObject",
25    feature = "WebScriptObject"
26))]
27unsafe impl NSCopying for DOMCSSImportRule {}
28
29#[cfg(all(
30    feature = "DOMCSSRule",
31    feature = "DOMObject",
32    feature = "WebScriptObject"
33))]
34unsafe impl CopyingHelper for DOMCSSImportRule {
35    type Result = Self;
36}
37
38#[cfg(all(
39    feature = "DOMCSSRule",
40    feature = "DOMObject",
41    feature = "WebScriptObject"
42))]
43unsafe impl NSObjectProtocol for DOMCSSImportRule {}
44
45#[cfg(all(
46    feature = "DOMCSSRule",
47    feature = "DOMObject",
48    feature = "WebScriptObject"
49))]
50impl DOMCSSImportRule {
51    extern_methods!(
52        #[deprecated]
53        #[unsafe(method(href))]
54        #[unsafe(method_family = none)]
55        pub unsafe fn href(&self) -> Retained<NSString>;
56
57        #[cfg(feature = "DOMMediaList")]
58        #[deprecated]
59        #[unsafe(method(media))]
60        #[unsafe(method_family = none)]
61        pub unsafe fn media(&self) -> Option<Retained<DOMMediaList>>;
62
63        #[cfg(all(feature = "DOMCSSStyleSheet", feature = "DOMStyleSheet"))]
64        #[deprecated]
65        #[unsafe(method(styleSheet))]
66        #[unsafe(method_family = none)]
67        pub unsafe fn styleSheet(&self) -> Option<Retained<DOMCSSStyleSheet>>;
68    );
69}
70
71/// Methods declared on superclass `DOMObject`.
72#[cfg(all(
73    feature = "DOMCSSRule",
74    feature = "DOMObject",
75    feature = "WebScriptObject"
76))]
77impl DOMCSSImportRule {
78    extern_methods!(
79        #[deprecated]
80        #[unsafe(method(init))]
81        #[unsafe(method_family = init)]
82        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
83    );
84}
85
86/// Methods declared on superclass `NSObject`.
87#[cfg(all(
88    feature = "DOMCSSRule",
89    feature = "DOMObject",
90    feature = "WebScriptObject"
91))]
92impl DOMCSSImportRule {
93    extern_methods!(
94        #[unsafe(method(new))]
95        #[unsafe(method_family = new)]
96        pub unsafe fn new() -> Retained<Self>;
97    );
98}