objc2_web_kit/generated/
DOMStyleSheetList.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[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#[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#[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}