objc2_ui_kit/generated/UIConfigurationColorTransformer.rs
1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4
5use crate::*;
6
7/// A color transformer returns a modified output color based on an input color.
8///
9/// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uiconfigurationcolortransformer?language=objc)
10#[cfg(all(feature = "UIColor", feature = "block2"))]
11pub type UIConfigurationColorTransformer =
12 *mut block2::DynBlock<dyn Fn(NonNull<UIColor>) -> NonNull<UIColor>>;
13
14extern "C" {
15 /// A color transformer that returns a grayscale version of the color.
16 ///
17 /// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uiconfigurationcolortransformergrayscale?language=objc)
18 #[cfg(all(feature = "UIColor", feature = "block2"))]
19 pub static UIConfigurationColorTransformerGrayscale: UIConfigurationColorTransformer;
20}
21
22extern "C" {
23 /// A color transformer that either passes the original color through, or replaces it with the system accent color.
24 /// - When the system accent color is set to Multicolor: Returns the original color.
25 /// - When the system accent color is configured to any other color: Returns that color.
26 /// - On platforms without a system accent color: Returns the original color.
27 ///
28 /// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uiconfigurationcolortransformerpreferredtint?language=objc)
29 #[cfg(all(feature = "UIColor", feature = "block2"))]
30 pub static UIConfigurationColorTransformerPreferredTint: UIConfigurationColorTransformer;
31}
32
33extern "C" {
34 /// A color transformer that gives the color a monochrome tint. Use this to deemphasize the tinted item.
35 /// It remains monochrome regardless of the system accent color (if the platform has one).
36 ///
37 /// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uiconfigurationcolortransformermonochrometint?language=objc)
38 #[cfg(all(feature = "UIColor", feature = "block2"))]
39 pub static UIConfigurationColorTransformerMonochromeTint: UIConfigurationColorTransformer;
40}