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"))]
20extern_conformance!(
21 unsafe impl NSCopying for DOMHTMLCollection {}
22);
23
24#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
25unsafe impl CopyingHelper for DOMHTMLCollection {
26 type Result = Self;
27}
28
29#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
30extern_conformance!(
31 unsafe impl NSObjectProtocol for DOMHTMLCollection {}
32);
33
34#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
35impl DOMHTMLCollection {
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 = "DOMNode")]
43 #[deprecated]
44 #[unsafe(method(item:))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn item(&self, index: c_uint) -> Option<Retained<DOMNode>>;
47
48 #[cfg(feature = "DOMNode")]
49 #[deprecated]
53 #[unsafe(method(namedItem:))]
54 #[unsafe(method_family = none)]
55 pub unsafe fn namedItem(&self, name: Option<&NSString>) -> Option<Retained<DOMNode>>;
56
57 #[cfg(feature = "DOMNodeList")]
58 #[unsafe(method(tags:))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn tags(&self, name: Option<&NSString>) -> Option<Retained<DOMNodeList>>;
64 );
65}
66
67#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
69impl DOMHTMLCollection {
70 extern_methods!(
71 #[deprecated]
72 #[unsafe(method(init))]
73 #[unsafe(method_family = init)]
74 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
75 );
76}
77
78#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
80impl DOMHTMLCollection {
81 extern_methods!(
82 #[unsafe(method(new))]
83 #[unsafe(method_family = new)]
84 pub unsafe fn new() -> Retained<Self>;
85 );
86}