use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-foundation")]
use objc2_core_foundation::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct UIShadowProperties;
);
extern_conformance!(
unsafe impl NSCoding for UIShadowProperties {}
);
extern_conformance!(
unsafe impl NSCopying for UIShadowProperties {}
);
unsafe impl CopyingHelper for UIShadowProperties {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for UIShadowProperties {}
);
extern_conformance!(
unsafe impl NSSecureCoding for UIShadowProperties {}
);
impl UIShadowProperties {
extern_methods!(
#[cfg(feature = "UIColor")]
#[unsafe(method(color))]
#[unsafe(method_family = none)]
pub fn color(&self) -> Retained<UIColor>;
#[cfg(feature = "UIColor")]
#[unsafe(method(setColor:))]
#[unsafe(method_family = none)]
pub fn setColor(&self, color: &UIColor);
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(opacity))]
#[unsafe(method_family = none)]
pub fn opacity(&self) -> CGFloat;
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(setOpacity:))]
#[unsafe(method_family = none)]
pub fn setOpacity(&self, opacity: CGFloat);
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(radius))]
#[unsafe(method_family = none)]
pub fn radius(&self) -> CGFloat;
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(setRadius:))]
#[unsafe(method_family = none)]
pub fn setRadius(&self, radius: CGFloat);
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(offset))]
#[unsafe(method_family = none)]
pub fn offset(&self) -> CGSize;
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(setOffset:))]
#[unsafe(method_family = none)]
pub fn setOffset(&self, offset: CGSize);
#[cfg(feature = "UIBezierPath")]
#[unsafe(method(path))]
#[unsafe(method_family = none)]
pub fn path(&self) -> Option<Retained<UIBezierPath>>;
#[cfg(feature = "UIBezierPath")]
#[unsafe(method(setPath:))]
#[unsafe(method_family = none)]
pub fn setPath(&self, path: Option<&UIBezierPath>);
);
}
impl UIShadowProperties {
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>;
);
}