objc2_app_kit/generated/
NSUserInterfaceLayout.rs1use objc2::__framework_prelude::*;
4
5use crate::*;
6
7#[repr(transparent)]
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
11pub struct NSUserInterfaceLayoutDirection(pub NSInteger);
12impl NSUserInterfaceLayoutDirection {
13 #[doc(alias = "NSUserInterfaceLayoutDirectionLeftToRight")]
14 pub const LeftToRight: Self = Self(0);
15 #[doc(alias = "NSUserInterfaceLayoutDirectionRightToLeft")]
16 pub const RightToLeft: Self = Self(1);
17}
18
19unsafe impl Encode for NSUserInterfaceLayoutDirection {
20 const ENCODING: Encoding = NSInteger::ENCODING;
21}
22
23unsafe impl RefEncode for NSUserInterfaceLayoutDirection {
24 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
25}
26
27#[repr(transparent)]
30#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
31pub struct NSUserInterfaceLayoutOrientation(pub NSInteger);
32impl NSUserInterfaceLayoutOrientation {
33 #[doc(alias = "NSUserInterfaceLayoutOrientationHorizontal")]
34 pub const Horizontal: Self = Self(0);
35 #[doc(alias = "NSUserInterfaceLayoutOrientationVertical")]
36 pub const Vertical: Self = Self(1);
37}
38
39unsafe impl Encode for NSUserInterfaceLayoutOrientation {
40 const ENCODING: Encoding = NSInteger::ENCODING;
41}
42
43unsafe impl RefEncode for NSUserInterfaceLayoutOrientation {
44 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
45}