use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-foundation")]
use objc2_core_foundation::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(PKToolPickerItem, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "PKToolPickerItem")]
pub struct PKToolPickerEraserItem;
);
#[cfg(feature = "PKToolPickerItem")]
extern_conformance!(
unsafe impl NSCopying for PKToolPickerEraserItem {}
);
#[cfg(feature = "PKToolPickerItem")]
unsafe impl CopyingHelper for PKToolPickerEraserItem {
type Result = Self;
}
#[cfg(feature = "PKToolPickerItem")]
extern_conformance!(
unsafe impl NSObjectProtocol for PKToolPickerEraserItem {}
);
#[cfg(feature = "PKToolPickerItem")]
impl PKToolPickerEraserItem {
extern_methods!(
#[cfg(feature = "PKEraserTool")]
#[unsafe(method(initWithEraserType:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithEraserType(
this: Allocated<Self>,
eraser_type: PKEraserType,
) -> Retained<Self>;
#[cfg(all(feature = "PKEraserTool", feature = "objc2-core-foundation"))]
#[unsafe(method(initWithEraserType:width:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithEraserType_width(
this: Allocated<Self>,
eraser_type: PKEraserType,
width: CGFloat,
) -> Retained<Self>;
#[cfg(all(feature = "PKEraserTool", feature = "PKTool"))]
#[unsafe(method(eraserTool))]
#[unsafe(method_family = none)]
pub unsafe fn eraserTool(&self) -> Retained<PKEraserTool>;
);
}
#[cfg(feature = "PKToolPickerItem")]
impl PKToolPickerEraserItem {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(feature = "PKToolPickerItem")]
impl PKToolPickerEraserItem {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}