objc2_web_kit/generated/
DOMNodeFilter.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_filter_accept?language=objc)
9#[deprecated]
10pub const DOM_FILTER_ACCEPT: c_uint = 1;
11/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_filter_reject?language=objc)
12#[deprecated]
13pub const DOM_FILTER_REJECT: c_uint = 2;
14/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_filter_skip?language=objc)
15#[deprecated]
16pub const DOM_FILTER_SKIP: c_uint = 3;
17/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_show_all?language=objc)
18#[deprecated]
19pub const DOM_SHOW_ALL: c_uint = 0xFFFFFFFF;
20/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_show_element?language=objc)
21#[deprecated]
22pub const DOM_SHOW_ELEMENT: c_uint = 0x00000001;
23/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_show_attribute?language=objc)
24#[deprecated]
25pub const DOM_SHOW_ATTRIBUTE: c_uint = 0x00000002;
26/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_show_text?language=objc)
27#[deprecated]
28pub const DOM_SHOW_TEXT: c_uint = 0x00000004;
29/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_show_cdata_section?language=objc)
30#[deprecated]
31pub const DOM_SHOW_CDATA_SECTION: c_uint = 0x00000008;
32/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_show_entity_reference?language=objc)
33#[deprecated]
34pub const DOM_SHOW_ENTITY_REFERENCE: c_uint = 0x00000010;
35/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_show_entity?language=objc)
36#[deprecated]
37pub const DOM_SHOW_ENTITY: c_uint = 0x00000020;
38/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_show_processing_instruction?language=objc)
39#[deprecated]
40pub const DOM_SHOW_PROCESSING_INSTRUCTION: c_uint = 0x00000040;
41/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_show_comment?language=objc)
42#[deprecated]
43pub const DOM_SHOW_COMMENT: c_uint = 0x00000080;
44/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_show_document?language=objc)
45#[deprecated]
46pub const DOM_SHOW_DOCUMENT: c_uint = 0x00000100;
47/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_show_document_type?language=objc)
48#[deprecated]
49pub const DOM_SHOW_DOCUMENT_TYPE: c_uint = 0x00000200;
50/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_show_document_fragment?language=objc)
51#[deprecated]
52pub const DOM_SHOW_DOCUMENT_FRAGMENT: c_uint = 0x00000400;
53/// [Apple's documentation](https://developer.apple.com/documentation/webkit/dom_show_notation?language=objc)
54#[deprecated]
55pub const DOM_SHOW_NOTATION: c_uint = 0x00000800;
56
57extern_protocol!(
58    /// [Apple's documentation](https://developer.apple.com/documentation/webkit/domnodefilter?language=objc)
59    #[deprecated]
60    pub unsafe trait DOMNodeFilter: NSObjectProtocol {
61        #[cfg(all(
62            feature = "DOMNode",
63            feature = "DOMObject",
64            feature = "WebScriptObject"
65        ))]
66        #[deprecated]
67        #[unsafe(method(acceptNode:))]
68        #[unsafe(method_family = none)]
69        unsafe fn acceptNode(&self, n: Option<&DOMNode>) -> c_short;
70    }
71);