1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/// Objective-C class name for `UIDevice`.
pub const UIKIT_CLS_UI_DEVICE: &str = "UIDevice\0";
/// Objective-C class name for `UIScreen`.
pub const UIKIT_CLS_UI_SCREEN: &str = "UIScreen\0";
/// Objective-C class name for `UIWindow`.
pub const UIKIT_CLS_UI_WINDOW: &str = "UIWindow\0";
/// Objective-C class name for `UIView`.
pub const UIKIT_CLS_UI_VIEW: &str = "UIView\0";
/// Objective-C class name for `CAMetalLayer`.
pub const UIKIT_CLS_CA_METAL_LAYER: &str = "CAMetalLayer\0";
/// Objective-C selector for `currentDevice`.
pub const UIKIT_SEL_CURRENT_DEVICE: &str = "currentDevice\0";
/// Objective-C selector for `userInterfaceIdiom`.
pub const UIKIT_SEL_USER_INTERFACE_IDIOM: &str = "userInterfaceIdiom\0";
/// Objective-C selector for `mainScreen`.
pub const UIKIT_SEL_MAIN_SCREEN: &str = "mainScreen\0";
/// Objective-C selector for `nativeScale`.
pub const UIKIT_SEL_NATIVE_SCALE: &str = "nativeScale\0";
/// Objective-C selector for `traitCollection`.
pub const UIKIT_SEL_TRAIT_COLLECTION: &str = "traitCollection\0";
/// Objective-C selector for `userInterfaceStyle`.
pub const UIKIT_SEL_USER_INTERFACE_STYLE: &str = "userInterfaceStyle\0";
/// Objective-C selector for `alloc`.
pub const UIKIT_SEL_ALLOC: &str = "alloc\0";
/// Objective-C selector for `init`.
pub const UIKIT_SEL_INIT: &str = "init\0";
/// Objective-C selector for `layer`.
pub const UIKIT_SEL_LAYER: &str = "layer\0";
/// Objective-C selector for `setContents:`.
pub const UIKIT_SEL_SET_CONTENTS: &str = "setContents:\0";
/// Objective-C selector for `setPaused:` on `CADisplayLink`.
pub const UIKIT_SEL_SET_PAUSED: &str = "setPaused:\0";
/// Objective-C selector for `maximumFramesPerSecond` on `UIScreen`.
pub const UIKIT_SEL_MAX_FPS: &str = "maximumFramesPerSecond\0";
/// Objective-C selector for `setMaximumDrawableCount:` on `CAMetalLayer`.
pub const UIKIT_SEL_SET_MAX_DRAWABLE_COUNT: &str = "setMaximumDrawableCount:\0";
/// Objective-C selector for `setPreferredFramesPerSecond:` on `CADisplayLink`.
pub const UIKIT_SEL_SET_PREFERRED_FPS: &str = "setPreferredFramesPerSecond:\0";
/// Objective-C selector for `setPreferredFrameRateRange:` on `CADisplayLink` (iOS 15+).
pub const UIKIT_SEL_SET_PREFERRED_FRAME_RATE_RANGE: &str = "setPreferredFrameRateRange:\0";
/// Objective-C selector for `respondsToSelector:`.
pub const UIKIT_SEL_RESPONDS_TO_SELECTOR: &str = "respondsToSelector:\0";
/// Triple-buffered drawable count for `CAMetalLayer` eliminating 120Hz ProMotion frame stalls.
pub const IOS_METAL_TRIPLE_BUFFER_COUNT: usize = 3;
/// `UIUserInterfaceIdiomPad` enum integer value (`1`).
pub const UI_USER_INTERFACE_IDIOM_PAD: isize = 1;
/// `UIUserInterfaceStyleDark` enum integer value (`2`).
pub const UI_USER_INTERFACE_STYLE_DARK: isize = 2;
/// Default iOS phone top safe-area inset (Dynamic Island / status bar) in logical points.
pub const IOS_DEFAULT_SAFE_TOP: f32 = 47.0;
/// Default iOS phone bottom home-indicator safe-area inset in logical points.
pub const IOS_DEFAULT_SAFE_BOTTOM: f32 = 34.0;
/// Default iPadOS top status-bar safe-area inset in logical points.
pub const IPADOS_DEFAULT_SAFE_TOP: f32 = 24.0;
/// Default iPadOS bottom gesture-bar safe-area inset in logical points.
pub const IPADOS_DEFAULT_SAFE_BOTTOM: f32 = 20.0;
/// CoreGraphics RGBA8 bitmap info flags.
pub const IOS_CG_BITMAP_INFO_RGBA8: u32 = | 1;