objc2_web_kit/generated/
WKBackForwardList.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
15 #[thread_kind = MainThreadOnly]
16 #[derive(Debug, PartialEq, Eq, Hash)]
17 pub struct WKBackForwardList;
18);
19
20extern_conformance!(
21 unsafe impl NSObjectProtocol for WKBackForwardList {}
22);
23
24impl WKBackForwardList {
25 extern_methods!(
26 #[cfg(feature = "WKBackForwardListItem")]
27 #[unsafe(method(currentItem))]
29 #[unsafe(method_family = none)]
30 pub unsafe fn currentItem(&self) -> Option<Retained<WKBackForwardListItem>>;
31
32 #[cfg(feature = "WKBackForwardListItem")]
33 #[unsafe(method(backItem))]
36 #[unsafe(method_family = none)]
37 pub unsafe fn backItem(&self) -> Option<Retained<WKBackForwardListItem>>;
38
39 #[cfg(feature = "WKBackForwardListItem")]
40 #[unsafe(method(forwardItem))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn forwardItem(&self) -> Option<Retained<WKBackForwardListItem>>;
45
46 #[cfg(feature = "WKBackForwardListItem")]
47 #[unsafe(method(itemAtIndex:))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn itemAtIndex(
59 &self,
60 index: NSInteger,
61 ) -> Option<Retained<WKBackForwardListItem>>;
62
63 #[cfg(feature = "WKBackForwardListItem")]
64 #[unsafe(method(backList))]
69 #[unsafe(method_family = none)]
70 pub unsafe fn backList(&self) -> Retained<NSArray<WKBackForwardListItem>>;
71
72 #[cfg(feature = "WKBackForwardListItem")]
73 #[unsafe(method(forwardList))]
78 #[unsafe(method_family = none)]
79 pub unsafe fn forwardList(&self) -> Retained<NSArray<WKBackForwardListItem>>;
80 );
81}
82
83impl WKBackForwardList {
85 extern_methods!(
86 #[unsafe(method(init))]
87 #[unsafe(method_family = init)]
88 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
89
90 #[unsafe(method(new))]
91 #[unsafe(method_family = new)]
92 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
93 );
94}