use core::ffi::*;
use objc2::__framework_prelude::*;
use crate::*;
extern_protocol!(
pub unsafe trait UIAccessibilityContentSizeCategoryImageAdjusting:
NSObjectProtocol + MainThreadOnly
{
#[unsafe(method(adjustsImageSizeForAccessibilityContentSizeCategory))]
#[unsafe(method_family = none)]
fn adjustsImageSizeForAccessibilityContentSizeCategory(&self) -> bool;
#[unsafe(method(setAdjustsImageSizeForAccessibilityContentSizeCategory:))]
#[unsafe(method_family = none)]
fn setAdjustsImageSizeForAccessibilityContentSizeCategory(
&self,
adjusts_image_size_for_accessibility_content_size_category: bool,
);
}
);
#[cfg(all(feature = "UIImageView", feature = "UIResponder", feature = "UIView"))]
impl UIImageView {
extern_methods!();
}
#[cfg(all(feature = "UIImageView", feature = "UIResponder", feature = "UIView"))]
extern_conformance!(
unsafe impl UIAccessibilityContentSizeCategoryImageAdjusting for UIImageView {}
);
#[cfg(all(
feature = "UIButton",
feature = "UIControl",
feature = "UIResponder",
feature = "UIView"
))]
impl UIButton {
extern_methods!();
}
#[cfg(all(
feature = "UIButton",
feature = "UIControl",
feature = "UIResponder",
feature = "UIView"
))]
extern_conformance!(
unsafe impl UIAccessibilityContentSizeCategoryImageAdjusting for UIButton {}
);
#[cfg(feature = "NSTextAttachment")]
impl NSTextAttachment {
extern_methods!();
}