1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-ui-kit")]
use objc2_ui_kit::*;
use crate::*;
extern_class!(
/// [Apple's documentation](https://developer.apple.com/documentation/carplay/cplistimagerowitemgridelement?language=objc)
#[unsafe(super(CPListImageRowItemElement, NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CPListImageRowItemElement")]
pub struct CPListImageRowItemGridElement;
);
#[cfg(feature = "CPListImageRowItemElement")]
extern_conformance!(
unsafe impl NSObjectProtocol for CPListImageRowItemGridElement {}
);
#[cfg(feature = "CPListImageRowItemElement")]
impl CPListImageRowItemGridElement {
extern_methods!(
#[cfg(feature = "objc2-ui-kit")]
/// Initialize an element that is constituted of an image.
///
/// When providing an image, your app should provide a
/// `UIImage`that is display-ready. If necessary for the image, provide
/// light and dark styles by using an asset from your asset catalog, prepared with light and dark styles
/// or by using
/// `UIImageAsset`to combine two
/// `UIImage`instances into a single image with
/// both styles.
///
/// UIImageAsset is used to combine multiple UIImages with different trait collections into a single UIImage.
///
///
/// Note: The expected image size is given by +[CPListImageRowItemGridElement maximumImageSize]. Images provided will be resized to this size if necessary.
///
///
/// To properly size your images, your app should size them to the display scale of the car screen.
/// See -[CPInterfaceController carTraitCollection].
///
///
/// Parameter `image`: The image associated to the element.
#[unsafe(method(initWithImage:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithImage(this: Allocated<Self>, image: &UIImage) -> Retained<Self>;
);
}
/// Methods declared on superclass `CPListImageRowItemElement`.
#[cfg(feature = "CPListImageRowItemElement")]
impl CPListImageRowItemGridElement {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
/// Methods declared on superclass `NSObject`.
#[cfg(feature = "CPListImageRowItemElement")]
impl CPListImageRowItemGridElement {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}