use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-foundation")]
use objc2_core_foundation::*;
use objc2_foundation::*;
use crate::*;
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct UIContentUnavailableAlignment(pub NSInteger);
impl UIContentUnavailableAlignment {
#[doc(alias = "UIContentUnavailableAlignmentCenter")]
pub const Center: Self = Self(0);
#[doc(alias = "UIContentUnavailableAlignmentNatural")]
pub const Natural: Self = Self(1);
}
unsafe impl Encode for UIContentUnavailableAlignment {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for UIContentUnavailableAlignment {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern_class!(
#[unsafe(super(NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct UIContentUnavailableConfiguration;
);
extern_conformance!(
unsafe impl NSCoding for UIContentUnavailableConfiguration {}
);
extern_conformance!(
unsafe impl NSCopying for UIContentUnavailableConfiguration {}
);
unsafe impl CopyingHelper for UIContentUnavailableConfiguration {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for UIContentUnavailableConfiguration {}
);
extern_conformance!(
unsafe impl NSSecureCoding for UIContentUnavailableConfiguration {}
);
#[cfg(feature = "UIContentConfiguration")]
extern_conformance!(
unsafe impl UIContentConfiguration for UIContentUnavailableConfiguration {}
);
impl UIContentUnavailableConfiguration {
extern_methods!(
#[unsafe(method(emptyConfiguration))]
#[unsafe(method_family = none)]
pub fn emptyConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
#[unsafe(method(loadingConfiguration))]
#[unsafe(method_family = none)]
pub fn loadingConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
#[unsafe(method(searchConfiguration))]
#[unsafe(method_family = none)]
pub fn searchConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(feature = "UIImage")]
#[unsafe(method(image))]
#[unsafe(method_family = none)]
pub fn image(&self) -> Option<Retained<UIImage>>;
#[cfg(feature = "UIImage")]
#[unsafe(method(setImage:))]
#[unsafe(method_family = none)]
pub fn setImage(&self, image: Option<&UIImage>);
#[cfg(feature = "UIContentUnavailableImageProperties")]
#[unsafe(method(imageProperties))]
#[unsafe(method_family = none)]
pub fn imageProperties(&self) -> Retained<UIContentUnavailableImageProperties>;
#[unsafe(method(text))]
#[unsafe(method_family = none)]
pub fn text(&self) -> Option<Retained<NSString>>;
#[unsafe(method(setText:))]
#[unsafe(method_family = none)]
pub fn setText(&self, text: Option<&NSString>);
#[unsafe(method(attributedText))]
#[unsafe(method_family = none)]
pub fn attributedText(&self) -> Option<Retained<NSAttributedString>>;
#[unsafe(method(setAttributedText:))]
#[unsafe(method_family = none)]
pub fn setAttributedText(&self, attributed_text: Option<&NSAttributedString>);
#[cfg(feature = "UIContentUnavailableTextProperties")]
#[unsafe(method(textProperties))]
#[unsafe(method_family = none)]
pub fn textProperties(&self) -> Retained<UIContentUnavailableTextProperties>;
#[unsafe(method(secondaryText))]
#[unsafe(method_family = none)]
pub fn secondaryText(&self) -> Option<Retained<NSString>>;
#[unsafe(method(setSecondaryText:))]
#[unsafe(method_family = none)]
pub fn setSecondaryText(&self, secondary_text: Option<&NSString>);
#[unsafe(method(secondaryAttributedText))]
#[unsafe(method_family = none)]
pub fn secondaryAttributedText(&self) -> Option<Retained<NSAttributedString>>;
#[unsafe(method(setSecondaryAttributedText:))]
#[unsafe(method_family = none)]
pub fn setSecondaryAttributedText(
&self,
secondary_attributed_text: Option<&NSAttributedString>,
);
#[cfg(feature = "UIContentUnavailableTextProperties")]
#[unsafe(method(secondaryTextProperties))]
#[unsafe(method_family = none)]
pub fn secondaryTextProperties(&self) -> Retained<UIContentUnavailableTextProperties>;
#[cfg(feature = "UIButtonConfiguration")]
#[unsafe(method(button))]
#[unsafe(method_family = none)]
pub fn button(&self) -> Retained<UIButtonConfiguration>;
#[cfg(feature = "UIButtonConfiguration")]
#[unsafe(method(setButton:))]
#[unsafe(method_family = none)]
pub fn setButton(&self, button: &UIButtonConfiguration);
#[cfg(feature = "UIContentUnavailableButtonProperties")]
#[unsafe(method(buttonProperties))]
#[unsafe(method_family = none)]
pub fn buttonProperties(&self) -> Retained<UIContentUnavailableButtonProperties>;
#[cfg(feature = "UIButtonConfiguration")]
#[unsafe(method(secondaryButton))]
#[unsafe(method_family = none)]
pub fn secondaryButton(&self) -> Retained<UIButtonConfiguration>;
#[cfg(feature = "UIButtonConfiguration")]
#[unsafe(method(setSecondaryButton:))]
#[unsafe(method_family = none)]
pub fn setSecondaryButton(&self, secondary_button: &UIButtonConfiguration);
#[cfg(feature = "UIContentUnavailableButtonProperties")]
#[unsafe(method(secondaryButtonProperties))]
#[unsafe(method_family = none)]
pub fn secondaryButtonProperties(&self) -> Retained<UIContentUnavailableButtonProperties>;
#[unsafe(method(alignment))]
#[unsafe(method_family = none)]
pub fn alignment(&self) -> UIContentUnavailableAlignment;
#[unsafe(method(setAlignment:))]
#[unsafe(method_family = none)]
pub fn setAlignment(&self, alignment: UIContentUnavailableAlignment);
#[cfg(feature = "UIGeometry")]
#[unsafe(method(axesPreservingSuperviewLayoutMargins))]
#[unsafe(method_family = none)]
pub fn axesPreservingSuperviewLayoutMargins(&self) -> UIAxis;
#[cfg(feature = "UIGeometry")]
#[unsafe(method(setAxesPreservingSuperviewLayoutMargins:))]
#[unsafe(method_family = none)]
pub fn setAxesPreservingSuperviewLayoutMargins(
&self,
axes_preserving_superview_layout_margins: UIAxis,
);
#[cfg(all(feature = "UIGeometry", feature = "objc2-core-foundation"))]
#[unsafe(method(directionalLayoutMargins))]
#[unsafe(method_family = none)]
pub fn directionalLayoutMargins(&self) -> NSDirectionalEdgeInsets;
#[cfg(all(feature = "UIGeometry", feature = "objc2-core-foundation"))]
#[unsafe(method(setDirectionalLayoutMargins:))]
#[unsafe(method_family = none)]
pub fn setDirectionalLayoutMargins(
&self,
directional_layout_margins: NSDirectionalEdgeInsets,
);
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(imageToTextPadding))]
#[unsafe(method_family = none)]
pub fn imageToTextPadding(&self) -> CGFloat;
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(setImageToTextPadding:))]
#[unsafe(method_family = none)]
pub fn setImageToTextPadding(&self, image_to_text_padding: CGFloat);
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(textToSecondaryTextPadding))]
#[unsafe(method_family = none)]
pub fn textToSecondaryTextPadding(&self) -> CGFloat;
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(setTextToSecondaryTextPadding:))]
#[unsafe(method_family = none)]
pub fn setTextToSecondaryTextPadding(&self, text_to_secondary_text_padding: CGFloat);
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(textToButtonPadding))]
#[unsafe(method_family = none)]
pub fn textToButtonPadding(&self) -> CGFloat;
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(setTextToButtonPadding:))]
#[unsafe(method_family = none)]
pub fn setTextToButtonPadding(&self, text_to_button_padding: CGFloat);
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(buttonToSecondaryButtonPadding))]
#[unsafe(method_family = none)]
pub fn buttonToSecondaryButtonPadding(&self) -> CGFloat;
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(setButtonToSecondaryButtonPadding:))]
#[unsafe(method_family = none)]
pub fn setButtonToSecondaryButtonPadding(
&self,
button_to_secondary_button_padding: CGFloat,
);
#[cfg(feature = "UIBackgroundConfiguration")]
#[unsafe(method(background))]
#[unsafe(method_family = none)]
pub fn background(&self) -> Retained<UIBackgroundConfiguration>;
#[cfg(feature = "UIBackgroundConfiguration")]
#[unsafe(method(setBackground:))]
#[unsafe(method_family = none)]
pub fn setBackground(&self, background: &UIBackgroundConfiguration);
);
}