objc2_app_kit/generated/
NSTintProminence.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/// Controls how strongly the tint color applies in a view.
8///
9/// A tint prominence of `primary` will use the app's tint color with full
10/// saturation and brightness, while `secondary` will apply it more subtly.
11/// Using `none` gives an untinted appearance.
12///
13/// See also [Apple's documentation](https://developer.apple.com/documentation/appkit/nstintprominence?language=objc)
14// NS_ENUM
15#[repr(transparent)]
16#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
17pub struct NSTintProminence(pub NSInteger);
18impl NSTintProminence {
19    #[doc(alias = "NSTintProminenceAutomatic")]
20    pub const Automatic: Self = Self(0);
21    #[doc(alias = "NSTintProminenceNone")]
22    pub const None: Self = Self(1);
23    #[doc(alias = "NSTintProminencePrimary")]
24    pub const Primary: Self = Self(2);
25    #[doc(alias = "NSTintProminenceSecondary")]
26    pub const Secondary: Self = Self(3);
27}
28
29unsafe impl Encode for NSTintProminence {
30    const ENCODING: Encoding = NSInteger::ENCODING;
31}
32
33unsafe impl RefEncode for NSTintProminence {
34    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
35}