objc2_web_kit/generated/
DOMStyleSheetList.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/domstylesheetlist?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 DOMStyleSheetList;
17);
18
19#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
20unsafe impl NSCopying for DOMStyleSheetList {}
21
22#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
23unsafe impl CopyingHelper for DOMStyleSheetList {
24    type Result = Self;
25}
26
27#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
28unsafe impl NSObjectProtocol for DOMStyleSheetList {}
29
30#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
31impl DOMStyleSheetList {
32    extern_methods!(
33        #[deprecated]
34        #[unsafe(method(length))]
35        #[unsafe(method_family = none)]
36        pub unsafe fn length(&self) -> c_uint;
37
38        #[cfg(feature = "DOMStyleSheet")]
39        #[deprecated]
40        #[unsafe(method(item:))]
41        #[unsafe(method_family = none)]
42        pub unsafe fn item(&self, index: c_uint) -> Option<Retained<DOMStyleSheet>>;
43    );
44}
45
46/// Methods declared on superclass `DOMObject`.
47#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
48impl DOMStyleSheetList {
49    extern_methods!(
50        #[deprecated]
51        #[unsafe(method(init))]
52        #[unsafe(method_family = init)]
53        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
54    );
55}
56
57/// Methods declared on superclass `NSObject`.
58#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
59impl DOMStyleSheetList {
60    extern_methods!(
61        #[unsafe(method(new))]
62        #[unsafe(method_family = new)]
63        pub unsafe fn new() -> Retained<Self>;
64    );
65}