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
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use crate::*;
/// A color transformer returns a modified output color based on an input color.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uiconfigurationcolortransformer?language=objc)
#[cfg(all(feature = "UIColor", feature = "block2"))]
pub type UIConfigurationColorTransformer =
*mut block2::DynBlock<dyn Fn(NonNull<UIColor>) -> NonNull<UIColor>>;
extern "C" {
/// A color transformer that returns a grayscale version of the color.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uiconfigurationcolortransformergrayscale?language=objc)
#[cfg(all(feature = "UIColor", feature = "block2"))]
pub static UIConfigurationColorTransformerGrayscale: UIConfigurationColorTransformer;
}
extern "C" {
/// A color transformer that either passes the original color through, or replaces it with the system accent color.
/// - When the system accent color is set to Multicolor: Returns the original color.
/// - When the system accent color is configured to any other color: Returns that color.
/// - On platforms without a system accent color: Returns the original color.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uiconfigurationcolortransformerpreferredtint?language=objc)
#[cfg(all(feature = "UIColor", feature = "block2"))]
pub static UIConfigurationColorTransformerPreferredTint: UIConfigurationColorTransformer;
}
extern "C" {
/// A color transformer that gives the color a monochrome tint. Use this to deemphasize the tinted item.
/// It remains monochrome regardless of the system accent color (if the platform has one).
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uiconfigurationcolortransformermonochrometint?language=objc)
#[cfg(all(feature = "UIColor", feature = "block2"))]
pub static UIConfigurationColorTransformerMonochromeTint: UIConfigurationColorTransformer;
}