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
20unsafe impl NSObjectProtocol for WKBackForwardList {}
21
22impl WKBackForwardList {
23 extern_methods!(
24 #[cfg(feature = "WKBackForwardListItem")]
25 #[unsafe(method(currentItem))]
27 #[unsafe(method_family = none)]
28 pub unsafe fn currentItem(&self) -> Option<Retained<WKBackForwardListItem>>;
29
30 #[cfg(feature = "WKBackForwardListItem")]
31 #[unsafe(method(backItem))]
34 #[unsafe(method_family = none)]
35 pub unsafe fn backItem(&self) -> Option<Retained<WKBackForwardListItem>>;
36
37 #[cfg(feature = "WKBackForwardListItem")]
38 #[unsafe(method(forwardItem))]
41 #[unsafe(method_family = none)]
42 pub unsafe fn forwardItem(&self) -> Option<Retained<WKBackForwardListItem>>;
43
44 #[cfg(feature = "WKBackForwardListItem")]
45 #[unsafe(method(itemAtIndex:))]
55 #[unsafe(method_family = none)]
56 pub unsafe fn itemAtIndex(
57 &self,
58 index: NSInteger,
59 ) -> Option<Retained<WKBackForwardListItem>>;
60
61 #[cfg(feature = "WKBackForwardListItem")]
62 #[unsafe(method(backList))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn backList(&self) -> Retained<NSArray<WKBackForwardListItem>>;
69
70 #[cfg(feature = "WKBackForwardListItem")]
71 #[unsafe(method(forwardList))]
76 #[unsafe(method_family = none)]
77 pub unsafe fn forwardList(&self) -> Retained<NSArray<WKBackForwardListItem>>;
78 );
79}
80
81impl WKBackForwardList {
83 extern_methods!(
84 #[unsafe(method(init))]
85 #[unsafe(method_family = init)]
86 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
87
88 #[unsafe(method(new))]
89 #[unsafe(method_family = new)]
90 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
91 );
92}