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")]
use objc2_quartz_core::*;
#[cfg(feature = "objc2-ui-kit")]
use objc2_ui_kit::*;
use crate::*;
extern_class!(
#[unsafe(super(UIView, UIResponder, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "objc2-ui-kit")]
pub struct MSStickerView;
);
#[cfg(all(feature = "objc2-quartz-core", feature = "objc2-ui-kit"))]
extern_conformance!(
unsafe impl CALayerDelegate for MSStickerView {}
);
#[cfg(feature = "objc2-ui-kit")]
extern_conformance!(
unsafe impl NSCoding for MSStickerView {}
);
#[cfg(feature = "objc2-ui-kit")]
extern_conformance!(
unsafe impl NSObjectProtocol for MSStickerView {}
);
#[cfg(feature = "objc2-ui-kit")]
extern_conformance!(
unsafe impl UIAppearance for MSStickerView {}
);
#[cfg(feature = "objc2-ui-kit")]
extern_conformance!(
unsafe impl UIAppearanceContainer for MSStickerView {}
);
#[cfg(feature = "objc2-ui-kit")]
extern_conformance!(
unsafe impl UICoordinateSpace for MSStickerView {}
);
#[cfg(feature = "objc2-ui-kit")]
extern_conformance!(
unsafe impl UIDynamicItem for MSStickerView {}
);
#[cfg(feature = "objc2-ui-kit")]
extern_conformance!(
unsafe impl UIFocusEnvironment for MSStickerView {}
);
#[cfg(feature = "objc2-ui-kit")]
extern_conformance!(
unsafe impl UIFocusItem for MSStickerView {}
);
#[cfg(feature = "objc2-ui-kit")]
extern_conformance!(
unsafe impl UIFocusItemContainer for MSStickerView {}
);
#[cfg(feature = "objc2-ui-kit")]
extern_conformance!(
unsafe impl UIResponderStandardEditActions for MSStickerView {}
);
#[cfg(feature = "objc2-ui-kit")]
extern_conformance!(
unsafe impl UITraitEnvironment for MSStickerView {}
);
#[cfg(feature = "objc2-ui-kit")]
impl MSStickerView {
extern_methods!(
#[cfg(all(feature = "MSSticker", feature = "objc2-core-foundation"))]
#[unsafe(method(initWithFrame:sticker:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithFrame_sticker(
this: Allocated<Self>,
frame: CGRect,
sticker: Option<&MSSticker>,
) -> Retained<Self>;
#[cfg(feature = "MSSticker")]
#[unsafe(method(sticker))]
#[unsafe(method_family = none)]
pub unsafe fn sticker(&self) -> Option<Retained<MSSticker>>;
#[cfg(feature = "MSSticker")]
#[unsafe(method(setSticker:))]
#[unsafe(method_family = none)]
pub unsafe fn setSticker(&self, sticker: Option<&MSSticker>);
#[unsafe(method(animationDuration))]
#[unsafe(method_family = none)]
pub unsafe fn animationDuration(&self) -> NSTimeInterval;
#[unsafe(method(startAnimating))]
#[unsafe(method_family = none)]
pub unsafe fn startAnimating(&self);
#[unsafe(method(stopAnimating))]
#[unsafe(method_family = none)]
pub unsafe fn stopAnimating(&self);
#[unsafe(method(isAnimating))]
#[unsafe(method_family = none)]
pub unsafe fn isAnimating(&self) -> bool;
);
}
#[cfg(feature = "objc2-ui-kit")]
impl MSStickerView {
extern_methods!(
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(initWithFrame:))]
#[unsafe(method_family = init)]
pub unsafe 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 unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(feature = "objc2-ui-kit")]
impl MSStickerView {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}