objc2_clock_kit/generated/
CLKFullColorImageProvider.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7#[cfg(feature = "objc2-ui-kit")]
8use objc2_ui_kit::*;
9
10use crate::*;
11
12extern_class!(
13 #[unsafe(super(NSObject))]
15 #[derive(Debug, PartialEq, Eq, Hash)]
16 #[deprecated = "On watchOS 9.0 or later, use WidgetKit instead"]
17 pub struct CLKFullColorImageProvider;
18);
19
20extern_conformance!(
21 unsafe impl NSCopying for CLKFullColorImageProvider {}
22);
23
24unsafe impl CopyingHelper for CLKFullColorImageProvider {
25 type Result = Self;
26}
27
28extern_conformance!(
29 unsafe impl NSObjectProtocol for CLKFullColorImageProvider {}
30);
31
32impl CLKFullColorImageProvider {
33 extern_methods!(
34 #[deprecated = "Use initializers that take parameters."]
35 #[unsafe(method(init))]
36 #[unsafe(method_family = init)]
37 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
38
39 #[deprecated = "Use factory methods that take parameters."]
40 #[unsafe(method(new))]
41 #[unsafe(method_family = new)]
42 pub unsafe fn new() -> Retained<Self>;
43
44 #[cfg(feature = "objc2-ui-kit")]
45 #[unsafe(method(initWithFullColorImage:))]
46 #[unsafe(method_family = init)]
47 pub unsafe fn initWithFullColorImage(
48 this: Allocated<Self>,
49 image: &UIImage,
50 ) -> Retained<Self>;
51
52 #[cfg(all(feature = "CLKImageProvider", feature = "objc2-ui-kit"))]
53 #[unsafe(method(initWithFullColorImage:tintedImageProvider:))]
54 #[unsafe(method_family = init)]
55 pub unsafe fn initWithFullColorImage_tintedImageProvider(
56 this: Allocated<Self>,
57 image: &UIImage,
58 tinted_image_provider: Option<&CLKImageProvider>,
59 ) -> Retained<Self>;
60
61 #[cfg(feature = "objc2-ui-kit")]
62 #[deprecated = "On watchOS 9.0 or later, use WidgetKit instead"]
63 #[unsafe(method(providerWithFullColorImage:))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn providerWithFullColorImage(image: &UIImage) -> Retained<Self>;
66
67 #[cfg(all(feature = "CLKImageProvider", feature = "objc2-ui-kit"))]
68 #[unsafe(method(providerWithFullColorImage:tintedImageProvider:))]
69 #[unsafe(method_family = none)]
70 pub unsafe fn providerWithFullColorImage_tintedImageProvider(
71 image: &UIImage,
72 tinted_image_provider: Option<&CLKImageProvider>,
73 ) -> Retained<Self>;
74
75 #[cfg(feature = "objc2-ui-kit")]
76 #[deprecated = "On watchOS 9.0 or later, use WidgetKit instead"]
77 #[unsafe(method(image))]
78 #[unsafe(method_family = none)]
79 pub unsafe fn image(&self) -> Retained<UIImage>;
80
81 #[cfg(feature = "objc2-ui-kit")]
82 #[deprecated = "On watchOS 9.0 or later, use WidgetKit instead"]
84 #[unsafe(method(setImage:))]
85 #[unsafe(method_family = none)]
86 pub unsafe fn setImage(&self, image: &UIImage);
87
88 #[cfg(feature = "CLKImageProvider")]
89 #[unsafe(method(tintedImageProvider))]
91 #[unsafe(method_family = none)]
92 pub unsafe fn tintedImageProvider(&self) -> Option<Retained<CLKImageProvider>>;
93
94 #[cfg(feature = "CLKImageProvider")]
95 #[unsafe(method(setTintedImageProvider:))]
97 #[unsafe(method_family = none)]
98 pub unsafe fn setTintedImageProvider(
99 &self,
100 tinted_image_provider: Option<&CLKImageProvider>,
101 );
102
103 #[deprecated = "On watchOS 9.0 or later, use WidgetKit instead"]
105 #[unsafe(method(accessibilityLabel))]
106 #[unsafe(method_family = none)]
107 pub unsafe fn accessibilityLabel(&self) -> Option<Retained<NSString>>;
108
109 #[deprecated = "On watchOS 9.0 or later, use WidgetKit instead"]
111 #[unsafe(method(setAccessibilityLabel:))]
112 #[unsafe(method_family = none)]
113 pub unsafe fn setAccessibilityLabel(&self, accessibility_label: Option<&NSString>);
114 );
115}