objc2_ui_kit/generated/
UIAccessibilityContentSizeCategoryImageAdjusting.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_protocol!(
9    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uiaccessibilitycontentsizecategoryimageadjusting?language=objc)
10    pub unsafe trait UIAccessibilityContentSizeCategoryImageAdjusting:
11        NSObjectProtocol + MainThreadOnly
12    {
13        #[unsafe(method(adjustsImageSizeForAccessibilityContentSizeCategory))]
14        #[unsafe(method_family = none)]
15        unsafe fn adjustsImageSizeForAccessibilityContentSizeCategory(&self) -> bool;
16
17        /// Setter for [`adjustsImageSizeForAccessibilityContentSizeCategory`][Self::adjustsImageSizeForAccessibilityContentSizeCategory].
18        #[unsafe(method(setAdjustsImageSizeForAccessibilityContentSizeCategory:))]
19        #[unsafe(method_family = none)]
20        unsafe fn setAdjustsImageSizeForAccessibilityContentSizeCategory(
21            &self,
22            adjusts_image_size_for_accessibility_content_size_category: bool,
23        );
24    }
25);
26
27/// UIAccessibilityContentSizeCategoryImageAdjusting.
28#[cfg(all(feature = "UIImageView", feature = "UIResponder", feature = "UIView"))]
29impl UIImageView {
30    extern_methods!();
31}
32
33#[cfg(all(feature = "UIImageView", feature = "UIResponder", feature = "UIView"))]
34unsafe impl UIAccessibilityContentSizeCategoryImageAdjusting for UIImageView {}
35
36/// UIAccessibilityContentSizeCategoryImageAdjusting.
37#[cfg(all(
38    feature = "UIButton",
39    feature = "UIControl",
40    feature = "UIResponder",
41    feature = "UIView"
42))]
43impl UIButton {
44    extern_methods!();
45}
46
47#[cfg(all(
48    feature = "UIButton",
49    feature = "UIControl",
50    feature = "UIResponder",
51    feature = "UIView"
52))]
53unsafe impl UIAccessibilityContentSizeCategoryImageAdjusting for UIButton {}
54
55/// UIAccessibilityContentSizeCategoryImageAdjusting.
56#[cfg(feature = "NSTextAttachment")]
57impl NSTextAttachment {
58    extern_methods!();
59}