use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct WKBackForwardList;
unsafe impl ClassType for WKBackForwardList {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for WKBackForwardList {}
extern_methods!(
unsafe impl WKBackForwardList {
#[cfg(feature = "WKBackForwardListItem")]
#[method_id(@__retain_semantics Other currentItem)]
pub unsafe fn currentItem(&self) -> Option<Retained<WKBackForwardListItem>>;
#[cfg(feature = "WKBackForwardListItem")]
#[method_id(@__retain_semantics Other backItem)]
pub unsafe fn backItem(&self) -> Option<Retained<WKBackForwardListItem>>;
#[cfg(feature = "WKBackForwardListItem")]
#[method_id(@__retain_semantics Other forwardItem)]
pub unsafe fn forwardItem(&self) -> Option<Retained<WKBackForwardListItem>>;
#[cfg(feature = "WKBackForwardListItem")]
#[method_id(@__retain_semantics Other itemAtIndex:)]
pub unsafe fn itemAtIndex(
&self,
index: NSInteger,
) -> Option<Retained<WKBackForwardListItem>>;
#[cfg(feature = "WKBackForwardListItem")]
#[method_id(@__retain_semantics Other backList)]
pub unsafe fn backList(&self) -> Retained<NSArray<WKBackForwardListItem>>;
#[cfg(feature = "WKBackForwardListItem")]
#[method_id(@__retain_semantics Other forwardList)]
pub unsafe fn forwardList(&self) -> Retained<NSArray<WKBackForwardListItem>>;
}
);
extern_methods!(
unsafe impl WKBackForwardList {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);