objc2_ui_kit/generated/
UIAccessibilityZoom.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use 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/// [Apple's documentation](https://developer.apple.com/documentation/uikit/uiaccessibilityzoomtype?language=objc)
12// NS_ENUM
13#[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
29extern "C-unwind" {
30    #[cfg(all(
31        feature = "UIResponder",
32        feature = "UIView",
33        feature = "objc2-core-foundation"
34    ))]
35    pub fn UIAccessibilityZoomFocusChanged(
36        r#type: UIAccessibilityZoomType,
37        frame: CGRect,
38        view: &UIView,
39    );
40}
41
42extern "C-unwind" {
43    pub fn UIAccessibilityRegisterGestureConflictWithZoom();
44}