objc2-ui-kit 0.3.2

Bindings to the UIKit framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitextattributefont?language=objc)
    #[deprecated]
    pub static UITextAttributeFont: Option<&'static NSString>;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitextattributetextcolor?language=objc)
    #[deprecated]
    pub static UITextAttributeTextColor: Option<&'static NSString>;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitextattributetextshadowcolor?language=objc)
    #[deprecated = "Use NSShadowAttributeName with an NSShadow instance as the value"]
    pub static UITextAttributeTextShadowColor: Option<&'static NSString>;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitextattributetextshadowoffset?language=objc)
    #[deprecated = "Use NSShadowAttributeName with an NSShadow instance as the value"]
    pub static UITextAttributeTextShadowOffset: Option<&'static NSString>;
}

/// [Apple's documentation](https://developer.apple.com/documentation/uikit/uilinebreakmode?language=objc)
// NS_ENUM
#[deprecated]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct UILineBreakMode(pub NSInteger);
impl UILineBreakMode {
    #[doc(alias = "UILineBreakModeWordWrap")]
    #[deprecated]
    pub const WordWrap: Self = Self(0);
    #[doc(alias = "UILineBreakModeCharacterWrap")]
    #[deprecated]
    pub const CharacterWrap: Self = Self(1);
    #[doc(alias = "UILineBreakModeClip")]
    #[deprecated]
    pub const Clip: Self = Self(2);
    #[doc(alias = "UILineBreakModeHeadTruncation")]
    #[deprecated]
    pub const HeadTruncation: Self = Self(3);
    #[doc(alias = "UILineBreakModeTailTruncation")]
    #[deprecated]
    pub const TailTruncation: Self = Self(4);
    #[doc(alias = "UILineBreakModeMiddleTruncation")]
    #[deprecated]
    pub const MiddleTruncation: Self = Self(5);
}

unsafe impl Encode for UILineBreakMode {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for UILineBreakMode {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitextalignment?language=objc)
// NS_ENUM
#[deprecated]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct UITextAlignment(pub NSInteger);
impl UITextAlignment {
    #[doc(alias = "UITextAlignmentLeft")]
    #[deprecated]
    pub const Left: Self = Self(0);
    #[doc(alias = "UITextAlignmentCenter")]
    #[deprecated]
    pub const Center: Self = Self(1);
    #[doc(alias = "UITextAlignmentRight")]
    #[deprecated]
    pub const Right: Self = Self(2);
}

unsafe impl Encode for UITextAlignment {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for UITextAlignment {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// [Apple's documentation](https://developer.apple.com/documentation/uikit/uibaselineadjustment?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct UIBaselineAdjustment(pub NSInteger);
impl UIBaselineAdjustment {
    #[doc(alias = "UIBaselineAdjustmentAlignBaselines")]
    pub const AlignBaselines: Self = Self(0);
    #[doc(alias = "UIBaselineAdjustmentAlignCenters")]
    pub const AlignCenters: Self = Self(1);
    #[doc(alias = "UIBaselineAdjustmentNone")]
    pub const None: Self = Self(2);
}

unsafe impl Encode for UIBaselineAdjustment {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for UIBaselineAdjustment {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}