objc2_web_kit/generated/
DOMHTMLCollection.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 DOMHTMLCollection;
17);
18
19#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
20unsafe impl NSCopying for DOMHTMLCollection {}
21
22#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
23unsafe impl CopyingHelper for DOMHTMLCollection {
24 type Result = Self;
25}
26
27#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
28unsafe impl NSObjectProtocol for DOMHTMLCollection {}
29
30#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
31impl DOMHTMLCollection {
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 = "DOMNode")]
39 #[deprecated]
40 #[unsafe(method(item:))]
41 #[unsafe(method_family = none)]
42 pub unsafe fn item(&self, index: c_uint) -> Option<Retained<DOMNode>>;
43
44 #[cfg(feature = "DOMNode")]
45 #[deprecated]
46 #[unsafe(method(namedItem:))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn namedItem(&self, name: Option<&NSString>) -> Option<Retained<DOMNode>>;
49
50 #[cfg(feature = "DOMNodeList")]
51 #[unsafe(method(tags:))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn tags(&self, name: Option<&NSString>) -> Option<Retained<DOMNodeList>>;
54 );
55}
56
57#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
59impl DOMHTMLCollection {
60 extern_methods!(
61 #[deprecated]
62 #[unsafe(method(init))]
63 #[unsafe(method_family = init)]
64 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
65 );
66}
67
68#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
70impl DOMHTMLCollection {
71 extern_methods!(
72 #[unsafe(method(new))]
73 #[unsafe(method_family = new)]
74 pub unsafe fn new() -> Retained<Self>;
75 );
76}