objc2_web_kit/generated/
DOMXPathResult.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10#[deprecated]
12pub const DOM_ANY_TYPE: c_uint = 0;
13#[deprecated]
15pub const DOM_NUMBER_TYPE: c_uint = 1;
16#[deprecated]
18pub const DOM_STRING_TYPE: c_uint = 2;
19#[deprecated]
21pub const DOM_BOOLEAN_TYPE: c_uint = 3;
22#[deprecated]
24pub const DOM_UNORDERED_NODE_ITERATOR_TYPE: c_uint = 4;
25#[deprecated]
27pub const DOM_ORDERED_NODE_ITERATOR_TYPE: c_uint = 5;
28#[deprecated]
30pub const DOM_UNORDERED_NODE_SNAPSHOT_TYPE: c_uint = 6;
31#[deprecated]
33pub const DOM_ORDERED_NODE_SNAPSHOT_TYPE: c_uint = 7;
34#[deprecated]
36pub const DOM_ANY_UNORDERED_NODE_TYPE: c_uint = 8;
37#[deprecated]
39pub const DOM_FIRST_ORDERED_NODE_TYPE: c_uint = 9;
40
41extern_class!(
42 #[unsafe(super(DOMObject, WebScriptObject, NSObject))]
44 #[derive(Debug, PartialEq, Eq, Hash)]
45 #[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
46 #[deprecated]
47 pub struct DOMXPathResult;
48);
49
50#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
51extern_conformance!(
52 unsafe impl NSCopying for DOMXPathResult {}
53);
54
55#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
56unsafe impl CopyingHelper for DOMXPathResult {
57 type Result = Self;
58}
59
60#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
61extern_conformance!(
62 unsafe impl NSObjectProtocol for DOMXPathResult {}
63);
64
65#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
66impl DOMXPathResult {
67 extern_methods!(
68 #[deprecated]
69 #[unsafe(method(resultType))]
70 #[unsafe(method_family = none)]
71 pub unsafe fn resultType(&self) -> c_ushort;
72
73 #[deprecated]
74 #[unsafe(method(numberValue))]
75 #[unsafe(method_family = none)]
76 pub unsafe fn numberValue(&self) -> c_double;
77
78 #[deprecated]
79 #[unsafe(method(stringValue))]
80 #[unsafe(method_family = none)]
81 pub unsafe fn stringValue(&self) -> Retained<NSString>;
82
83 #[deprecated]
84 #[unsafe(method(booleanValue))]
85 #[unsafe(method_family = none)]
86 pub unsafe fn booleanValue(&self) -> bool;
87
88 #[cfg(feature = "DOMNode")]
89 #[deprecated]
90 #[unsafe(method(singleNodeValue))]
91 #[unsafe(method_family = none)]
92 pub unsafe fn singleNodeValue(&self) -> Option<Retained<DOMNode>>;
93
94 #[deprecated]
95 #[unsafe(method(invalidIteratorState))]
96 #[unsafe(method_family = none)]
97 pub unsafe fn invalidIteratorState(&self) -> bool;
98
99 #[deprecated]
100 #[unsafe(method(snapshotLength))]
101 #[unsafe(method_family = none)]
102 pub unsafe fn snapshotLength(&self) -> c_uint;
103
104 #[cfg(feature = "DOMNode")]
105 #[deprecated]
106 #[unsafe(method(iterateNext))]
107 #[unsafe(method_family = none)]
108 pub unsafe fn iterateNext(&self) -> Option<Retained<DOMNode>>;
109
110 #[cfg(feature = "DOMNode")]
111 #[deprecated]
112 #[unsafe(method(snapshotItem:))]
113 #[unsafe(method_family = none)]
114 pub unsafe fn snapshotItem(&self, index: c_uint) -> Option<Retained<DOMNode>>;
115 );
116}
117
118#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
120impl DOMXPathResult {
121 extern_methods!(
122 #[deprecated]
123 #[unsafe(method(init))]
124 #[unsafe(method_family = init)]
125 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
126 );
127}
128
129#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
131impl DOMXPathResult {
132 extern_methods!(
133 #[unsafe(method(new))]
134 #[unsafe(method_family = new)]
135 pub unsafe fn new() -> Retained<Self>;
136 );
137}