objc2_ui_kit/generated/
UIAccessibilityContentSizeCategoryImageAdjusting.rs1use core::ffi::*;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_protocol!(
9 pub unsafe trait UIAccessibilityContentSizeCategoryImageAdjusting:
11 NSObjectProtocol + MainThreadOnly
12 {
13 #[unsafe(method(adjustsImageSizeForAccessibilityContentSizeCategory))]
14 #[unsafe(method_family = none)]
15 fn adjustsImageSizeForAccessibilityContentSizeCategory(&self) -> bool;
16
17 #[unsafe(method(setAdjustsImageSizeForAccessibilityContentSizeCategory:))]
19 #[unsafe(method_family = none)]
20 fn setAdjustsImageSizeForAccessibilityContentSizeCategory(
21 &self,
22 adjusts_image_size_for_accessibility_content_size_category: bool,
23 );
24 }
25);
26
27#[cfg(all(feature = "UIImageView", feature = "UIResponder", feature = "UIView"))]
29impl UIImageView {
30 extern_methods!();
31}
32
33#[cfg(all(feature = "UIImageView", feature = "UIResponder", feature = "UIView"))]
34extern_conformance!(
35 unsafe impl UIAccessibilityContentSizeCategoryImageAdjusting for UIImageView {}
36);
37
38#[cfg(all(
40 feature = "UIButton",
41 feature = "UIControl",
42 feature = "UIResponder",
43 feature = "UIView"
44))]
45impl UIButton {
46 extern_methods!();
47}
48
49#[cfg(all(
50 feature = "UIButton",
51 feature = "UIControl",
52 feature = "UIResponder",
53 feature = "UIView"
54))]
55extern_conformance!(
56 unsafe impl UIAccessibilityContentSizeCategoryImageAdjusting for UIButton {}
57);
58
59#[cfg(feature = "NSTextAttachment")]
61impl NSTextAttachment {
62 extern_methods!();
63}