objc2_ui_kit/generated/
UIAccessibilityZoom.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
11#[repr(transparent)]
14#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
15pub struct UIAccessibilityZoomType(pub NSInteger);
16impl UIAccessibilityZoomType {
17 #[doc(alias = "UIAccessibilityZoomTypeInsertionPoint")]
18 pub const InsertionPoint: Self = Self(0);
19}
20
21unsafe impl Encode for UIAccessibilityZoomType {
22 const ENCODING: Encoding = NSInteger::ENCODING;
23}
24
25unsafe impl RefEncode for UIAccessibilityZoomType {
26 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
27}
28
29#[cfg(all(
30 feature = "UIResponder",
31 feature = "UIView",
32 feature = "objc2-core-foundation"
33))]
34#[inline]
35pub extern "C-unwind" fn UIAccessibilityZoomFocusChanged(
36 r#type: UIAccessibilityZoomType,
37 frame: CGRect,
38 view: &UIView,
39) {
40 extern "C-unwind" {
41 fn UIAccessibilityZoomFocusChanged(
42 r#type: UIAccessibilityZoomType,
43 frame: CGRect,
44 view: &UIView,
45 );
46 }
47 unsafe { UIAccessibilityZoomFocusChanged(r#type, frame, view) }
48}
49
50#[inline]
51pub extern "C-unwind" fn UIAccessibilityRegisterGestureConflictWithZoom() {
52 extern "C-unwind" {
53 fn UIAccessibilityRegisterGestureConflictWithZoom();
54 }
55 unsafe { UIAccessibilityRegisterGestureConflictWithZoom() }
56}