objc2_app_kit/generated/
NSUserInterfaceLayout.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/appkit/nsuserinterfacelayoutdirection?language=objc)
8// NS_ENUM
9#[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/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsuserinterfacelayoutorientation?language=objc)
28// NS_ENUM
29#[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}