objc2-car-play 0.3.2

Bindings to the CarPlay framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
#[cfg(feature = "objc2-ui-kit")]
use objc2_ui_kit::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/carplay/cpimageset?language=objc)
    #[unsafe(super(NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct CPImageSet;
);

extern_conformance!(
    unsafe impl NSCoding for CPImageSet {}
);

extern_conformance!(
    unsafe impl NSObjectProtocol for CPImageSet {}
);

extern_conformance!(
    unsafe impl NSSecureCoding for CPImageSet {}
);

impl CPImageSet {
    extern_methods!(
        #[cfg(feature = "objc2-ui-kit")]
        #[unsafe(method(initWithLightContentImage:darkContentImage:))]
        #[unsafe(method_family = init)]
        pub unsafe fn initWithLightContentImage_darkContentImage(
            this: Allocated<Self>,
            light_image: &UIImage,
            dark_image: &UIImage,
        ) -> Retained<Self>;

        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;

        #[cfg(feature = "objc2-ui-kit")]
        #[unsafe(method(lightContentImage))]
        #[unsafe(method_family = none)]
        pub unsafe fn lightContentImage(&self) -> Retained<UIImage>;

        #[cfg(feature = "objc2-ui-kit")]
        #[unsafe(method(darkContentImage))]
        #[unsafe(method_family = none)]
        pub unsafe fn darkContentImage(&self) -> Retained<UIImage>;
    );
}