objc2_ui_kit/generated/
UIStringDrawing.rs1use objc2::__framework_prelude::*;
4use objc2_foundation::*;
5
6use crate::*;
7
8extern "C" {
9 pub static UITextAttributeFont: Option<&'static NSString>;
11}
12
13extern "C" {
14 pub static UITextAttributeTextColor: Option<&'static NSString>;
16}
17
18extern "C" {
19 pub static UITextAttributeTextShadowColor: Option<&'static NSString>;
21}
22
23extern "C" {
24 pub static UITextAttributeTextShadowOffset: Option<&'static NSString>;
26}
27
28#[deprecated]
31#[repr(transparent)]
32#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
33pub struct UILineBreakMode(pub NSInteger);
34impl UILineBreakMode {
35 #[doc(alias = "UILineBreakModeWordWrap")]
36 #[deprecated]
37 pub const WordWrap: Self = Self(0);
38 #[doc(alias = "UILineBreakModeCharacterWrap")]
39 #[deprecated]
40 pub const CharacterWrap: Self = Self(1);
41 #[doc(alias = "UILineBreakModeClip")]
42 #[deprecated]
43 pub const Clip: Self = Self(2);
44 #[doc(alias = "UILineBreakModeHeadTruncation")]
45 #[deprecated]
46 pub const HeadTruncation: Self = Self(3);
47 #[doc(alias = "UILineBreakModeTailTruncation")]
48 #[deprecated]
49 pub const TailTruncation: Self = Self(4);
50 #[doc(alias = "UILineBreakModeMiddleTruncation")]
51 #[deprecated]
52 pub const MiddleTruncation: Self = Self(5);
53}
54
55unsafe impl Encode for UILineBreakMode {
56 const ENCODING: Encoding = NSInteger::ENCODING;
57}
58
59unsafe impl RefEncode for UILineBreakMode {
60 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
61}
62
63#[deprecated]
66#[repr(transparent)]
67#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
68pub struct UITextAlignment(pub NSInteger);
69impl UITextAlignment {
70 #[doc(alias = "UITextAlignmentLeft")]
71 #[deprecated]
72 pub const Left: Self = Self(0);
73 #[doc(alias = "UITextAlignmentCenter")]
74 #[deprecated]
75 pub const Center: Self = Self(1);
76 #[doc(alias = "UITextAlignmentRight")]
77 #[deprecated]
78 pub const Right: Self = Self(2);
79}
80
81unsafe impl Encode for UITextAlignment {
82 const ENCODING: Encoding = NSInteger::ENCODING;
83}
84
85unsafe impl RefEncode for UITextAlignment {
86 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
87}
88
89#[repr(transparent)]
92#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
93pub struct UIBaselineAdjustment(pub NSInteger);
94impl UIBaselineAdjustment {
95 #[doc(alias = "UIBaselineAdjustmentAlignBaselines")]
96 pub const AlignBaselines: Self = Self(0);
97 #[doc(alias = "UIBaselineAdjustmentAlignCenters")]
98 pub const AlignCenters: Self = Self(1);
99 #[doc(alias = "UIBaselineAdjustmentNone")]
100 pub const None: Self = Self(2);
101}
102
103unsafe impl Encode for UIBaselineAdjustment {
104 const ENCODING: Encoding = NSInteger::ENCODING;
105}
106
107unsafe impl RefEncode for UIBaselineAdjustment {
108 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
109}