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