objc2_ui_kit/generated/
UICanvasFeedbackGenerator.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8
9use crate::*;
10
11extern_class!(
12 #[unsafe(super(UIFeedbackGenerator, NSObject))]
14 #[thread_kind = MainThreadOnly]
15 #[derive(Debug, PartialEq, Eq, Hash)]
16 #[cfg(feature = "UIFeedbackGenerator")]
17 pub struct UICanvasFeedbackGenerator;
18);
19
20#[cfg(feature = "UIFeedbackGenerator")]
21extern_conformance!(
22 unsafe impl NSObjectProtocol for UICanvasFeedbackGenerator {}
23);
24
25#[cfg(feature = "UIFeedbackGenerator")]
26impl UICanvasFeedbackGenerator {
27 extern_methods!(
28 #[cfg(feature = "objc2-core-foundation")]
29 #[unsafe(method(alignmentOccurredAtLocation:))]
32 #[unsafe(method_family = none)]
33 pub unsafe fn alignmentOccurredAtLocation(&self, location: CGPoint);
34
35 #[cfg(feature = "objc2-core-foundation")]
36 #[unsafe(method(pathCompletedAtLocation:))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn pathCompletedAtLocation(&self, location: CGPoint);
42 );
43}
44
45#[cfg(feature = "UIFeedbackGenerator")]
47impl UICanvasFeedbackGenerator {
48 extern_methods!(
49 #[cfg(all(feature = "UIResponder", feature = "UIView"))]
50 #[unsafe(method(feedbackGeneratorForView:))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn feedbackGeneratorForView(view: &UIView) -> Retained<Self>;
54
55 #[deprecated]
56 #[unsafe(method(init))]
57 #[unsafe(method_family = init)]
58 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
59 );
60}
61
62#[cfg(feature = "UIFeedbackGenerator")]
64impl UICanvasFeedbackGenerator {
65 extern_methods!(
66 #[unsafe(method(new))]
67 #[unsafe(method_family = new)]
68 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
69 );
70}