objc2_intents/generated/
INRelativeSetting.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/intents/inrelativesetting?language=objc)
8// NS_ENUM
9#[deprecated = "INRelativeSetting is deprecated. There is no replacement."]
10#[repr(transparent)]
11#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
12pub struct INRelativeSetting(pub NSInteger);
13impl INRelativeSetting {
14    #[doc(alias = "INRelativeSettingUnknown")]
15    #[deprecated = "INRelativeSetting is deprecated. There is no replacement."]
16    pub const Unknown: Self = Self(0);
17    #[doc(alias = "INRelativeSettingLowest")]
18    #[deprecated = "INRelativeSetting is deprecated. There is no replacement."]
19    pub const Lowest: Self = Self(1);
20    #[doc(alias = "INRelativeSettingLower")]
21    #[deprecated = "INRelativeSetting is deprecated. There is no replacement."]
22    pub const Lower: Self = Self(2);
23    #[doc(alias = "INRelativeSettingHigher")]
24    #[deprecated = "INRelativeSetting is deprecated. There is no replacement."]
25    pub const Higher: Self = Self(3);
26    #[doc(alias = "INRelativeSettingHighest")]
27    #[deprecated = "INRelativeSetting is deprecated. There is no replacement."]
28    pub const Highest: Self = Self(4);
29}
30
31unsafe impl Encode for INRelativeSetting {
32    const ENCODING: Encoding = NSInteger::ENCODING;
33}
34
35unsafe impl RefEncode for INRelativeSetting {
36    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
37}