objc2-pencil-kit 0.3.2

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

use crate::*;

/// A version specifying which PencilKit features are used/allowed.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/pencilkit/pkcontentversion?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PKContentVersion(pub NSInteger);
impl PKContentVersion {
    /// Version for inks introduced in iOS 14.0.
    ///
    /// Inks included are Pen, Pencil, and Marker.
    #[doc(alias = "PKContentVersion1")]
    pub const Version1: Self = Self(1);
    /// Version for inks introduced in iOS 17.0.
    ///
    /// Inks included are Pen, Pencil, Marker, Monoline, Fountain Pen, Watercolor, and Crayon.
    #[doc(alias = "PKContentVersion2")]
    pub const Version2: Self = Self(2);
    /// New Fountain Pen
    #[doc(alias = "PKContentVersion3")]
    pub const Version3: Self = Self(3);
    /// New Reed Pen
    #[doc(alias = "PKContentVersion4")]
    pub const Version4: Self = Self(4);
    /// The latest version including all features.
    #[doc(alias = "PKContentVersionLatest")]
    pub const VersionLatest: Self = Self(4);
}

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

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