objc2_ui_kit/generated/
UITextItemInteraction.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use objc2::__framework_prelude::*;
4
5use crate::*;
6
7/// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitextiteminteraction?language=objc)
8// NS_ENUM
9#[deprecated = "UITextItemInteraction has been replaced by text item methods on UITextViewDelegate"]
10#[repr(transparent)]
11#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
12pub struct UITextItemInteraction(pub NSInteger);
13impl UITextItemInteraction {
14    #[deprecated = "UITextItemInteraction has been replaced by text item methods on UITextViewDelegate"]
15    #[doc(alias = "UITextItemInteractionInvokeDefaultAction")]
16    pub const InvokeDefaultAction: Self = Self(0);
17    #[deprecated = "UITextItemInteraction has been replaced by text item methods on UITextViewDelegate"]
18    #[doc(alias = "UITextItemInteractionPresentActions")]
19    pub const PresentActions: Self = Self(1);
20    #[deprecated = "UITextItemInteraction has been replaced by text item methods on UITextViewDelegate"]
21    #[doc(alias = "UITextItemInteractionPreview")]
22    pub const Preview: Self = Self(2);
23}
24
25unsafe impl Encode for UITextItemInteraction {
26    const ENCODING: Encoding = NSInteger::ENCODING;
27}
28
29unsafe impl RefEncode for UITextItemInteraction {
30    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
31}