#![allow(clippy::bool_to_int_with_if)]
use crate::common::*;
const TARGET_ABI_USES_IOS_VALUES: bool =
!cfg!(any(target_arch = "x86", target_arch = "x86_64")) || cfg!(not(target_os = "macos"));
ns_enum!(
#[underlying(NSInteger)]
pub enum NSImageResizingMode {
NSImageResizingModeStretch = if TARGET_ABI_USES_IOS_VALUES { 0 } else { 1 },
NSImageResizingModeTile = if TARGET_ABI_USES_IOS_VALUES { 1 } else { 0 },
}
);
ns_enum!(
#[underlying(NSInteger)]
pub enum NSTextAlignment {
NSTextAlignmentLeft = 0,
NSTextAlignmentRight = if TARGET_ABI_USES_IOS_VALUES { 2 } else { 1 },
NSTextAlignmentCenter = if TARGET_ABI_USES_IOS_VALUES { 1 } else { 2 },
NSTextAlignmentJustified = 3,
NSTextAlignmentNatural = 4,
}
);
#[cfg(feature = "AppKit_NSImage")]
unsafe impl crate::Foundation::NSCoding for crate::AppKit::NSImage {}