objc2_ui_kit/generated/
UIPreviewParameters.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
13 #[thread_kind = MainThreadOnly]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct UIPreviewParameters;
16);
17
18extern_conformance!(
19 unsafe impl NSCopying for UIPreviewParameters {}
20);
21
22unsafe impl CopyingHelper for UIPreviewParameters {
23 type Result = Self;
24}
25
26extern_conformance!(
27 unsafe impl NSObjectProtocol for UIPreviewParameters {}
28);
29
30impl UIPreviewParameters {
31 extern_methods!(
32 #[unsafe(method(init))]
33 #[unsafe(method_family = init)]
34 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
35
36 #[unsafe(method(initWithTextLineRects:))]
37 #[unsafe(method_family = init)]
38 pub unsafe fn initWithTextLineRects(
39 this: Allocated<Self>,
40 text_line_rects: &NSArray<NSValue>,
41 ) -> Retained<Self>;
42
43 #[cfg(feature = "UIBezierPath")]
44 #[unsafe(method(visiblePath))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn visiblePath(&self) -> Option<Retained<UIBezierPath>>;
47
48 #[cfg(feature = "UIBezierPath")]
49 #[unsafe(method(setVisiblePath:))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn setVisiblePath(&self, visible_path: Option<&UIBezierPath>);
53
54 #[cfg(feature = "UIBezierPath")]
55 #[unsafe(method(shadowPath))]
56 #[unsafe(method_family = none)]
57 pub unsafe fn shadowPath(&self) -> Option<Retained<UIBezierPath>>;
58
59 #[cfg(feature = "UIBezierPath")]
60 #[unsafe(method(setShadowPath:))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn setShadowPath(&self, shadow_path: Option<&UIBezierPath>);
64
65 #[cfg(feature = "UIColor")]
66 #[unsafe(method(backgroundColor))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn backgroundColor(&self) -> Retained<UIColor>;
69
70 #[cfg(feature = "UIColor")]
71 #[unsafe(method(setBackgroundColor:))]
73 #[unsafe(method_family = none)]
74 pub unsafe fn setBackgroundColor(&self, background_color: Option<&UIColor>);
75 );
76}
77
78impl UIPreviewParameters {
80 extern_methods!(
81 #[unsafe(method(new))]
82 #[unsafe(method_family = new)]
83 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
84 );
85}