use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
#[deprecated]
pub const DOM_ANY_TYPE: c_uint = 0;
#[deprecated]
pub const DOM_NUMBER_TYPE: c_uint = 1;
#[deprecated]
pub const DOM_STRING_TYPE: c_uint = 2;
#[deprecated]
pub const DOM_BOOLEAN_TYPE: c_uint = 3;
#[deprecated]
pub const DOM_UNORDERED_NODE_ITERATOR_TYPE: c_uint = 4;
#[deprecated]
pub const DOM_ORDERED_NODE_ITERATOR_TYPE: c_uint = 5;
#[deprecated]
pub const DOM_UNORDERED_NODE_SNAPSHOT_TYPE: c_uint = 6;
#[deprecated]
pub const DOM_ORDERED_NODE_SNAPSHOT_TYPE: c_uint = 7;
#[deprecated]
pub const DOM_ANY_UNORDERED_NODE_TYPE: c_uint = 8;
#[deprecated]
pub const DOM_FIRST_ORDERED_NODE_TYPE: c_uint = 9;
extern_class!(
#[unsafe(super(DOMObject, WebScriptObject, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
#[deprecated]
pub struct DOMXPathResult;
);
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl NSCopying for DOMXPathResult {}
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl CopyingHelper for DOMXPathResult {
type Result = Self;
}
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl NSObjectProtocol for DOMXPathResult {}
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
impl DOMXPathResult {
extern_methods!(
#[deprecated]
#[unsafe(method(resultType))]
#[unsafe(method_family = none)]
pub unsafe fn resultType(&self) -> c_ushort;
#[deprecated]
#[unsafe(method(numberValue))]
#[unsafe(method_family = none)]
pub unsafe fn numberValue(&self) -> c_double;
#[deprecated]
#[unsafe(method(stringValue))]
#[unsafe(method_family = none)]
pub unsafe fn stringValue(&self) -> Retained<NSString>;
#[deprecated]
#[unsafe(method(booleanValue))]
#[unsafe(method_family = none)]
pub unsafe fn booleanValue(&self) -> bool;
#[cfg(feature = "DOMNode")]
#[deprecated]
#[unsafe(method(singleNodeValue))]
#[unsafe(method_family = none)]
pub unsafe fn singleNodeValue(&self) -> Option<Retained<DOMNode>>;
#[deprecated]
#[unsafe(method(invalidIteratorState))]
#[unsafe(method_family = none)]
pub unsafe fn invalidIteratorState(&self) -> bool;
#[deprecated]
#[unsafe(method(snapshotLength))]
#[unsafe(method_family = none)]
pub unsafe fn snapshotLength(&self) -> c_uint;
#[cfg(feature = "DOMNode")]
#[deprecated]
#[unsafe(method(iterateNext))]
#[unsafe(method_family = none)]
pub unsafe fn iterateNext(&self) -> Option<Retained<DOMNode>>;
#[cfg(feature = "DOMNode")]
#[deprecated]
#[unsafe(method(snapshotItem:))]
#[unsafe(method_family = none)]
pub unsafe fn snapshotItem(&self, index: c_uint) -> Option<Retained<DOMNode>>;
);
}
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
impl DOMXPathResult {
extern_methods!(
#[deprecated]
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
impl DOMXPathResult {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}