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"))]
51unsafe impl NSCopying for DOMXPathResult {}
52
53#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
54unsafe impl CopyingHelper for DOMXPathResult {
55 type Result = Self;
56}
57
58#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
59unsafe impl NSObjectProtocol for DOMXPathResult {}
60
61#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
62impl DOMXPathResult {
63 extern_methods!(
64 #[deprecated]
65 #[unsafe(method(resultType))]
66 #[unsafe(method_family = none)]
67 pub unsafe fn resultType(&self) -> c_ushort;
68
69 #[deprecated]
70 #[unsafe(method(numberValue))]
71 #[unsafe(method_family = none)]
72 pub unsafe fn numberValue(&self) -> c_double;
73
74 #[deprecated]
75 #[unsafe(method(stringValue))]
76 #[unsafe(method_family = none)]
77 pub unsafe fn stringValue(&self) -> Retained<NSString>;
78
79 #[deprecated]
80 #[unsafe(method(booleanValue))]
81 #[unsafe(method_family = none)]
82 pub unsafe fn booleanValue(&self) -> bool;
83
84 #[cfg(feature = "DOMNode")]
85 #[deprecated]
86 #[unsafe(method(singleNodeValue))]
87 #[unsafe(method_family = none)]
88 pub unsafe fn singleNodeValue(&self) -> Option<Retained<DOMNode>>;
89
90 #[deprecated]
91 #[unsafe(method(invalidIteratorState))]
92 #[unsafe(method_family = none)]
93 pub unsafe fn invalidIteratorState(&self) -> bool;
94
95 #[deprecated]
96 #[unsafe(method(snapshotLength))]
97 #[unsafe(method_family = none)]
98 pub unsafe fn snapshotLength(&self) -> c_uint;
99
100 #[cfg(feature = "DOMNode")]
101 #[deprecated]
102 #[unsafe(method(iterateNext))]
103 #[unsafe(method_family = none)]
104 pub unsafe fn iterateNext(&self) -> Option<Retained<DOMNode>>;
105
106 #[cfg(feature = "DOMNode")]
107 #[deprecated]
108 #[unsafe(method(snapshotItem:))]
109 #[unsafe(method_family = none)]
110 pub unsafe fn snapshotItem(&self, index: c_uint) -> Option<Retained<DOMNode>>;
111 );
112}
113
114#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
116impl DOMXPathResult {
117 extern_methods!(
118 #[deprecated]
119 #[unsafe(method(init))]
120 #[unsafe(method_family = init)]
121 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
122 );
123}
124
125#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
127impl DOMXPathResult {
128 extern_methods!(
129 #[unsafe(method(new))]
130 #[unsafe(method_family = new)]
131 pub unsafe fn new() -> Retained<Self>;
132 );
133}