use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-foundation")]
use objc2_core_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(UIFeedbackGenerator, NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "UIFeedbackGenerator")]
pub struct UICanvasFeedbackGenerator;
);
#[cfg(feature = "UIFeedbackGenerator")]
extern_conformance!(
unsafe impl NSObjectProtocol for UICanvasFeedbackGenerator {}
);
#[cfg(feature = "UIFeedbackGenerator")]
impl UICanvasFeedbackGenerator {
extern_methods!(
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(alignmentOccurredAtLocation:))]
#[unsafe(method_family = none)]
pub fn alignmentOccurredAtLocation(&self, location: CGPoint);
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(pathCompletedAtLocation:))]
#[unsafe(method_family = none)]
pub fn pathCompletedAtLocation(&self, location: CGPoint);
);
}
#[cfg(feature = "UIFeedbackGenerator")]
impl UICanvasFeedbackGenerator {
extern_methods!(
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
#[unsafe(method(feedbackGeneratorForView:))]
#[unsafe(method_family = none)]
pub fn feedbackGeneratorForView(view: &UIView) -> Retained<Self>;
#[deprecated]
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(feature = "UIFeedbackGenerator")]
impl UICanvasFeedbackGenerator {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}