use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct UITabAccessory;
);
extern_conformance!(
unsafe impl NSObjectProtocol for UITabAccessory {}
);
impl UITabAccessory {
extern_methods!(
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
#[unsafe(method(contentView))]
#[unsafe(method_family = none)]
pub fn contentView(&self) -> Retained<UIView>;
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
#[unsafe(method(initWithContentView:))]
#[unsafe(method_family = init)]
pub fn initWithContentView(this: Allocated<Self>, content_view: &UIView) -> Retained<Self>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct UITabAccessoryEnvironment(pub NSInteger);
impl UITabAccessoryEnvironment {
#[doc(alias = "UITabAccessoryEnvironmentUnspecified")]
pub const Unspecified: Self = Self(0);
#[doc(alias = "UITabAccessoryEnvironmentNone")]
pub const None: Self = Self(1);
#[doc(alias = "UITabAccessoryEnvironmentRegular")]
pub const Regular: Self = Self(2);
#[doc(alias = "UITabAccessoryEnvironmentInline")]
pub const Inline: Self = Self(3);
}
unsafe impl Encode for UITabAccessoryEnvironment {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for UITabAccessoryEnvironment {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern_class!(
#[unsafe(super(NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct UITraitTabAccessoryEnvironment;
);
extern_conformance!(
unsafe impl NSObjectProtocol for UITraitTabAccessoryEnvironment {}
);
#[cfg(feature = "UITrait")]
extern_conformance!(
unsafe impl UINSIntegerTraitDefinition for UITraitTabAccessoryEnvironment {}
);
#[cfg(feature = "UITrait")]
extern_conformance!(
unsafe impl UITraitDefinition for UITraitTabAccessoryEnvironment {}
);
impl UITraitTabAccessoryEnvironment {
extern_methods!();
}
impl UITraitTabAccessoryEnvironment {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}