objc2_car_play/generated/
CPImageSet.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6#[cfg(feature = "objc2-ui-kit")]
7use objc2_ui_kit::*;
8
9use crate::*;
10
11extern_class!(
12 #[unsafe(super(NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct CPImageSet;
16);
17
18extern_conformance!(
19 unsafe impl NSCoding for CPImageSet {}
20);
21
22extern_conformance!(
23 unsafe impl NSObjectProtocol for CPImageSet {}
24);
25
26extern_conformance!(
27 unsafe impl NSSecureCoding for CPImageSet {}
28);
29
30impl CPImageSet {
31 extern_methods!(
32 #[cfg(feature = "objc2-ui-kit")]
33 #[unsafe(method(initWithLightContentImage:darkContentImage:))]
34 #[unsafe(method_family = init)]
35 pub unsafe fn initWithLightContentImage_darkContentImage(
36 this: Allocated<Self>,
37 light_image: &UIImage,
38 dark_image: &UIImage,
39 ) -> Retained<Self>;
40
41 #[unsafe(method(init))]
42 #[unsafe(method_family = init)]
43 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
44
45 #[unsafe(method(new))]
46 #[unsafe(method_family = new)]
47 pub unsafe fn new() -> Retained<Self>;
48
49 #[cfg(feature = "objc2-ui-kit")]
50 #[unsafe(method(lightContentImage))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn lightContentImage(&self) -> Retained<UIImage>;
53
54 #[cfg(feature = "objc2-ui-kit")]
55 #[unsafe(method(darkContentImage))]
56 #[unsafe(method_family = none)]
57 pub unsafe fn darkContentImage(&self) -> Retained<UIImage>;
58 );
59}