use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_protocol!(
pub unsafe trait UIHoverEffect: NSObjectProtocol + NSCopying + MainThreadOnly {}
);
extern_class!(
#[unsafe(super(NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct UIHoverHighlightEffect;
);
extern_conformance!(
unsafe impl NSCopying for UIHoverHighlightEffect {}
);
unsafe impl CopyingHelper for UIHoverHighlightEffect {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for UIHoverHighlightEffect {}
);
extern_conformance!(
unsafe impl UIHoverEffect for UIHoverHighlightEffect {}
);
impl UIHoverHighlightEffect {
extern_methods!(
#[unsafe(method(effect))]
#[unsafe(method_family = none)]
pub fn effect(mtm: MainThreadMarker) -> 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>;
);
}
extern_class!(
#[unsafe(super(NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct UIHoverLiftEffect;
);
extern_conformance!(
unsafe impl NSCopying for UIHoverLiftEffect {}
);
unsafe impl CopyingHelper for UIHoverLiftEffect {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for UIHoverLiftEffect {}
);
extern_conformance!(
unsafe impl UIHoverEffect for UIHoverLiftEffect {}
);
impl UIHoverLiftEffect {
extern_methods!(
#[unsafe(method(effect))]
#[unsafe(method_family = none)]
pub fn effect(mtm: MainThreadMarker) -> 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>;
);
}
extern_class!(
#[unsafe(super(NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct UIHoverAutomaticEffect;
);
extern_conformance!(
unsafe impl NSCopying for UIHoverAutomaticEffect {}
);
unsafe impl CopyingHelper for UIHoverAutomaticEffect {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for UIHoverAutomaticEffect {}
);
extern_conformance!(
unsafe impl UIHoverEffect for UIHoverAutomaticEffect {}
);
impl UIHoverAutomaticEffect {
extern_methods!(
#[unsafe(method(effect))]
#[unsafe(method_family = none)]
pub fn effect(mtm: MainThreadMarker) -> 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>;
);
}