use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-foundation")]
use objc2_core_foundation::*;
use objc2_foundation::*;
#[cfg(feature = "objc2-quartz-core")]
#[cfg(not(target_os = "watchos"))]
use objc2_quartz_core::*;
use crate::*;
#[cfg(all(
feature = "UIResponder",
feature = "UIView",
feature = "UIViewConfigurationState",
feature = "block2"
))]
pub type UITableViewHeaderFooterViewConfigurationUpdateHandler = *mut block2::DynBlock<
dyn Fn(NonNull<UITableViewHeaderFooterView>, NonNull<UIViewConfigurationState>),
>;
extern_class!(
#[unsafe(super(UIView, UIResponder, NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
pub struct UITableViewHeaderFooterView;
);
#[cfg(all(
feature = "UIResponder",
feature = "UIView",
feature = "objc2-quartz-core"
))]
#[cfg(not(target_os = "watchos"))]
extern_conformance!(
unsafe impl CALayerDelegate for UITableViewHeaderFooterView {}
);
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
extern_conformance!(
unsafe impl NSCoding for UITableViewHeaderFooterView {}
);
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
extern_conformance!(
unsafe impl NSObjectProtocol for UITableViewHeaderFooterView {}
);
#[cfg(all(feature = "UIAppearance", feature = "UIResponder", feature = "UIView"))]
extern_conformance!(
unsafe impl UIAppearance for UITableViewHeaderFooterView {}
);
#[cfg(all(feature = "UIAppearance", feature = "UIResponder", feature = "UIView"))]
extern_conformance!(
unsafe impl UIAppearanceContainer for UITableViewHeaderFooterView {}
);
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
extern_conformance!(
unsafe impl UICoordinateSpace for UITableViewHeaderFooterView {}
);
#[cfg(all(
feature = "UIDynamicBehavior",
feature = "UIResponder",
feature = "UIView"
))]
extern_conformance!(
unsafe impl UIDynamicItem for UITableViewHeaderFooterView {}
);
#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
extern_conformance!(
unsafe impl UIFocusEnvironment for UITableViewHeaderFooterView {}
);
#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
extern_conformance!(
unsafe impl UIFocusItem for UITableViewHeaderFooterView {}
);
#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
extern_conformance!(
unsafe impl UIFocusItemContainer for UITableViewHeaderFooterView {}
);
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
extern_conformance!(
unsafe impl UIResponderStandardEditActions for UITableViewHeaderFooterView {}
);
#[cfg(all(
feature = "UIResponder",
feature = "UITraitCollection",
feature = "UIView"
))]
extern_conformance!(
unsafe impl UITraitEnvironment for UITableViewHeaderFooterView {}
);
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
impl UITableViewHeaderFooterView {
extern_methods!(
#[unsafe(method(initWithReuseIdentifier:))]
#[unsafe(method_family = init)]
pub fn initWithReuseIdentifier(
this: Allocated<Self>,
reuse_identifier: Option<&NSString>,
) -> Retained<Self>;
#[unsafe(method(initWithCoder:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCoder(
this: Allocated<Self>,
coder: &NSCoder,
) -> Option<Retained<Self>>;
#[cfg(feature = "UIViewConfigurationState")]
#[unsafe(method(configurationState))]
#[unsafe(method_family = none)]
pub fn configurationState(&self) -> Retained<UIViewConfigurationState>;
#[unsafe(method(setNeedsUpdateConfiguration))]
#[unsafe(method_family = none)]
pub fn setNeedsUpdateConfiguration(&self);
#[cfg(feature = "UIViewConfigurationState")]
#[unsafe(method(updateConfigurationUsingState:))]
#[unsafe(method_family = none)]
pub fn updateConfigurationUsingState(&self, state: &UIViewConfigurationState);
#[cfg(all(feature = "UIViewConfigurationState", feature = "block2"))]
#[unsafe(method(configurationUpdateHandler))]
#[unsafe(method_family = none)]
pub unsafe fn configurationUpdateHandler(
&self,
) -> UITableViewHeaderFooterViewConfigurationUpdateHandler;
#[cfg(all(feature = "UIViewConfigurationState", feature = "block2"))]
#[unsafe(method(setConfigurationUpdateHandler:))]
#[unsafe(method_family = none)]
pub unsafe fn setConfigurationUpdateHandler(
&self,
configuration_update_handler: UITableViewHeaderFooterViewConfigurationUpdateHandler,
);
#[cfg(feature = "UIListContentConfiguration")]
#[unsafe(method(defaultContentConfiguration))]
#[unsafe(method_family = none)]
pub fn defaultContentConfiguration(&self) -> Retained<UIListContentConfiguration>;
#[cfg(feature = "UIContentConfiguration")]
#[unsafe(method(contentConfiguration))]
#[unsafe(method_family = none)]
pub fn contentConfiguration(
&self,
) -> Option<Retained<ProtocolObject<dyn UIContentConfiguration>>>;
#[cfg(feature = "UIContentConfiguration")]
#[unsafe(method(setContentConfiguration:))]
#[unsafe(method_family = none)]
pub fn setContentConfiguration(
&self,
content_configuration: Option<&ProtocolObject<dyn UIContentConfiguration>>,
);
#[unsafe(method(automaticallyUpdatesContentConfiguration))]
#[unsafe(method_family = none)]
pub fn automaticallyUpdatesContentConfiguration(&self) -> bool;
#[unsafe(method(setAutomaticallyUpdatesContentConfiguration:))]
#[unsafe(method_family = none)]
pub fn setAutomaticallyUpdatesContentConfiguration(
&self,
automatically_updates_content_configuration: bool,
);
#[unsafe(method(contentView))]
#[unsafe(method_family = none)]
pub fn contentView(&self) -> Retained<UIView>;
#[cfg(feature = "UILabel")]
#[deprecated = "Use UIListContentConfiguration instead, this property will be deprecated in a future release."]
#[unsafe(method(textLabel))]
#[unsafe(method_family = none)]
pub fn textLabel(&self) -> Option<Retained<UILabel>>;
#[cfg(feature = "UILabel")]
#[deprecated = "Use UIListContentConfiguration instead, this property will be deprecated in a future release."]
#[unsafe(method(detailTextLabel))]
#[unsafe(method_family = none)]
pub fn detailTextLabel(&self) -> Option<Retained<UILabel>>;
#[cfg(feature = "UIBackgroundConfiguration")]
#[unsafe(method(defaultBackgroundConfiguration))]
#[unsafe(method_family = none)]
pub fn defaultBackgroundConfiguration(&self) -> Retained<UIBackgroundConfiguration>;
#[cfg(feature = "UIBackgroundConfiguration")]
#[unsafe(method(backgroundConfiguration))]
#[unsafe(method_family = none)]
pub fn backgroundConfiguration(&self) -> Option<Retained<UIBackgroundConfiguration>>;
#[cfg(feature = "UIBackgroundConfiguration")]
#[unsafe(method(setBackgroundConfiguration:))]
#[unsafe(method_family = none)]
pub fn setBackgroundConfiguration(
&self,
background_configuration: Option<&UIBackgroundConfiguration>,
);
#[unsafe(method(automaticallyUpdatesBackgroundConfiguration))]
#[unsafe(method_family = none)]
pub fn automaticallyUpdatesBackgroundConfiguration(&self) -> bool;
#[unsafe(method(setAutomaticallyUpdatesBackgroundConfiguration:))]
#[unsafe(method_family = none)]
pub fn setAutomaticallyUpdatesBackgroundConfiguration(
&self,
automatically_updates_background_configuration: bool,
);
#[unsafe(method(backgroundView))]
#[unsafe(method_family = none)]
pub fn backgroundView(&self) -> Option<Retained<UIView>>;
#[unsafe(method(setBackgroundView:))]
#[unsafe(method_family = none)]
pub fn setBackgroundView(&self, background_view: Option<&UIView>);
#[unsafe(method(reuseIdentifier))]
#[unsafe(method_family = none)]
pub fn reuseIdentifier(&self) -> Option<Retained<NSString>>;
#[unsafe(method(prepareForReuse))]
#[unsafe(method_family = none)]
pub fn prepareForReuse(&self);
);
}
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
impl UITableViewHeaderFooterView {
extern_methods!(
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(initWithFrame:))]
#[unsafe(method_family = init)]
pub fn initWithFrame(this: Allocated<Self>, frame: CGRect) -> Retained<Self>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
impl UITableViewHeaderFooterView {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}