leaprs/
image_properties.rs1use derive_deref::Deref;
2use leap_sys::LEAP_IMAGE_PROPERTIES;
3
4use crate::{ImageFormat, ImageType};
5
6#[doc = " Properties of a sensor image."]
7#[derive(Deref, Clone, Copy)]
10pub struct ImagePropertiesRef<'a>(pub(crate) &'a LEAP_IMAGE_PROPERTIES);
11
12impl<'a> ImagePropertiesRef<'a> {
13 #[doc = " The type of this image. @since 3.0.0"]
14 pub fn image_type(&self) -> ImageType {
15 self.type_.into()
16 }
17
18 #[doc = " The format of this image. @since 3.0.0"]
19 pub fn image_format(&self) -> ImageFormat {
20 self.format.into()
21 }
22}