objc2_ui_kit/generated/
UITextItemInteraction.rs1use objc2::__framework_prelude::*;
4
5use crate::*;
6
7#[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}