objc2_car_play/generated/
CPListImageRowItemElement.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8#[cfg(feature = "objc2-ui-kit")]
9use objc2_ui_kit::*;
10
11use crate::*;
12
13extern_class!(
14 #[unsafe(super(NSObject))]
18 #[thread_kind = MainThreadOnly]
19 #[derive(Debug, PartialEq, Eq, Hash)]
20 pub struct CPListImageRowItemElement;
21);
22
23extern_conformance!(
24 unsafe impl NSObjectProtocol for CPListImageRowItemElement {}
25);
26
27impl CPListImageRowItemElement {
28 extern_methods!(
29 #[unsafe(method(init))]
30 #[unsafe(method_family = init)]
31 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
32
33 #[cfg(feature = "objc2-ui-kit")]
34 #[unsafe(method(image))]
36 #[unsafe(method_family = none)]
37 pub unsafe fn image(&self) -> Retained<UIImage>;
38
39 #[cfg(feature = "objc2-ui-kit")]
40 #[unsafe(method(setImage:))]
44 #[unsafe(method_family = none)]
45 pub unsafe fn setImage(&self, image: &UIImage);
46
47 #[cfg(feature = "objc2-core-foundation")]
48 #[unsafe(method(maximumImageSize))]
56 #[unsafe(method_family = none)]
57 pub unsafe fn maximumImageSize(mtm: MainThreadMarker) -> CGSize;
58
59 #[unsafe(method(isEnabled))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn isEnabled(&self) -> bool;
69
70 #[unsafe(method(setEnabled:))]
72 #[unsafe(method_family = none)]
73 pub unsafe fn setEnabled(&self, enabled: bool);
74 );
75}
76
77impl CPListImageRowItemElement {
79 extern_methods!(
80 #[unsafe(method(new))]
81 #[unsafe(method_family = new)]
82 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
83 );
84}