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::*;
extern_class!(
#[unsafe(super(
UICollectionViewCell,
UICollectionReusableView,
UIView,
UIResponder,
NSObject
))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(
feature = "UICollectionViewCell",
feature = "UIResponder",
feature = "UIView"
))]
pub struct UICollectionViewListCell;
);
#[cfg(all(
feature = "UICollectionViewCell",
feature = "UIResponder",
feature = "UIView",
feature = "objc2-quartz-core"
))]
#[cfg(not(target_os = "watchos"))]
extern_conformance!(
unsafe impl CALayerDelegate for UICollectionViewListCell {}
);
#[cfg(all(
feature = "UICollectionViewCell",
feature = "UIResponder",
feature = "UIView"
))]
extern_conformance!(
unsafe impl NSCoding for UICollectionViewListCell {}
);
#[cfg(all(
feature = "UICollectionViewCell",
feature = "UIResponder",
feature = "UIView"
))]
extern_conformance!(
unsafe impl NSObjectProtocol for UICollectionViewListCell {}
);
#[cfg(all(
feature = "UIAppearance",
feature = "UICollectionViewCell",
feature = "UIResponder",
feature = "UIView"
))]
extern_conformance!(
unsafe impl UIAppearance for UICollectionViewListCell {}
);
#[cfg(all(
feature = "UIAppearance",
feature = "UICollectionViewCell",
feature = "UIResponder",
feature = "UIView"
))]
extern_conformance!(
unsafe impl UIAppearanceContainer for UICollectionViewListCell {}
);
#[cfg(all(
feature = "UICollectionViewCell",
feature = "UIResponder",
feature = "UIView"
))]
extern_conformance!(
unsafe impl UICoordinateSpace for UICollectionViewListCell {}
);
#[cfg(all(
feature = "UICollectionViewCell",
feature = "UIDynamicBehavior",
feature = "UIResponder",
feature = "UIView"
))]
extern_conformance!(
unsafe impl UIDynamicItem for UICollectionViewListCell {}
);
#[cfg(all(
feature = "UICollectionViewCell",
feature = "UIFocus",
feature = "UIResponder",
feature = "UIView"
))]
extern_conformance!(
unsafe impl UIFocusEnvironment for UICollectionViewListCell {}
);
#[cfg(all(
feature = "UICollectionViewCell",
feature = "UIFocus",
feature = "UIResponder",
feature = "UIView"
))]
extern_conformance!(
unsafe impl UIFocusItem for UICollectionViewListCell {}
);
#[cfg(all(
feature = "UICollectionViewCell",
feature = "UIFocus",
feature = "UIResponder",
feature = "UIView"
))]
extern_conformance!(
unsafe impl UIFocusItemContainer for UICollectionViewListCell {}
);
#[cfg(all(
feature = "UICollectionViewCell",
feature = "UIResponder",
feature = "UIView"
))]
extern_conformance!(
unsafe impl UIResponderStandardEditActions for UICollectionViewListCell {}
);
#[cfg(all(
feature = "UICollectionViewCell",
feature = "UIResponder",
feature = "UITraitCollection",
feature = "UIView"
))]
extern_conformance!(
unsafe impl UITraitEnvironment for UICollectionViewListCell {}
);
#[cfg(all(
feature = "UICollectionViewCell",
feature = "UIResponder",
feature = "UIView"
))]
impl UICollectionViewListCell {
extern_methods!(
#[cfg(feature = "UIListContentConfiguration")]
#[unsafe(method(defaultContentConfiguration))]
#[unsafe(method_family = none)]
pub fn defaultContentConfiguration(&self) -> Retained<UIListContentConfiguration>;
#[unsafe(method(indentationLevel))]
#[unsafe(method_family = none)]
pub fn indentationLevel(&self) -> NSInteger;
#[unsafe(method(setIndentationLevel:))]
#[unsafe(method_family = none)]
pub fn setIndentationLevel(&self, indentation_level: NSInteger);
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(indentationWidth))]
#[unsafe(method_family = none)]
pub fn indentationWidth(&self) -> CGFloat;
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(setIndentationWidth:))]
#[unsafe(method_family = none)]
pub fn setIndentationWidth(&self, indentation_width: CGFloat);
#[unsafe(method(indentsAccessories))]
#[unsafe(method_family = none)]
pub fn indentsAccessories(&self) -> bool;
#[unsafe(method(setIndentsAccessories:))]
#[unsafe(method_family = none)]
pub fn setIndentsAccessories(&self, indents_accessories: bool);
#[cfg(feature = "UICellAccessory")]
#[unsafe(method(accessories))]
#[unsafe(method_family = none)]
pub fn accessories(&self) -> Retained<NSArray<UICellAccessory>>;
#[cfg(feature = "UICellAccessory")]
#[unsafe(method(setAccessories:))]
#[unsafe(method_family = none)]
pub fn setAccessories(&self, accessories: &NSArray<UICellAccessory>);
#[cfg(feature = "UILayoutGuide")]
#[unsafe(method(separatorLayoutGuide))]
#[unsafe(method_family = none)]
pub fn separatorLayoutGuide(&self) -> Retained<UILayoutGuide>;
);
}
#[cfg(all(
feature = "UICollectionViewCell",
feature = "UIResponder",
feature = "UIView"
))]
impl UICollectionViewListCell {
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(initWithCoder:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCoder(
this: Allocated<Self>,
coder: &NSCoder,
) -> Option<Retained<Self>>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(all(
feature = "UICollectionViewCell",
feature = "UIResponder",
feature = "UIView"
))]
impl UICollectionViewListCell {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}