objc2_ui_kit/generated/
NSShadow.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern_class!(
13 #[unsafe(super(NSObject))]
15 #[derive(Debug, PartialEq, Eq, Hash)]
16 pub struct NSShadow;
17);
18
19extern_conformance!(
20 unsafe impl NSCoding for NSShadow {}
21);
22
23extern_conformance!(
24 unsafe impl NSCopying for NSShadow {}
25);
26
27unsafe impl CopyingHelper for NSShadow {
28 type Result = Self;
29}
30
31extern_conformance!(
32 unsafe impl NSObjectProtocol for NSShadow {}
33);
34
35extern_conformance!(
36 unsafe impl NSSecureCoding for NSShadow {}
37);
38
39impl NSShadow {
40 extern_methods!(
41 #[unsafe(method(init))]
42 #[unsafe(method_family = init)]
43 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
44
45 #[unsafe(method(initWithCoder:))]
46 #[unsafe(method_family = init)]
47 pub unsafe fn initWithCoder(
48 this: Allocated<Self>,
49 coder: &NSCoder,
50 ) -> Option<Retained<Self>>;
51
52 #[cfg(feature = "objc2-core-foundation")]
53 #[unsafe(method(shadowOffset))]
54 #[unsafe(method_family = none)]
55 pub unsafe fn shadowOffset(&self) -> CGSize;
56
57 #[cfg(feature = "objc2-core-foundation")]
58 #[unsafe(method(setShadowOffset:))]
60 #[unsafe(method_family = none)]
61 pub unsafe fn setShadowOffset(&self, shadow_offset: CGSize);
62
63 #[cfg(feature = "objc2-core-foundation")]
64 #[unsafe(method(shadowBlurRadius))]
65 #[unsafe(method_family = none)]
66 pub unsafe fn shadowBlurRadius(&self) -> CGFloat;
67
68 #[cfg(feature = "objc2-core-foundation")]
69 #[unsafe(method(setShadowBlurRadius:))]
71 #[unsafe(method_family = none)]
72 pub unsafe fn setShadowBlurRadius(&self, shadow_blur_radius: CGFloat);
73
74 #[unsafe(method(shadowColor))]
75 #[unsafe(method_family = none)]
76 pub unsafe fn shadowColor(&self) -> Option<Retained<AnyObject>>;
77
78 #[unsafe(method(setShadowColor:))]
80 #[unsafe(method_family = none)]
81 pub unsafe fn setShadowColor(&self, shadow_color: Option<&AnyObject>);
82 );
83}
84
85impl NSShadow {
87 extern_methods!(
88 #[unsafe(method(new))]
89 #[unsafe(method_family = new)]
90 pub unsafe fn new() -> Retained<Self>;
91 );
92}