gstreamer_vulkan/
vulkan_swapper.rs

1use crate::VulkanSwapper;
2
3use glib::prelude::*;
4
5mod sealed {
6    pub trait Sealed {}
7    impl<T: super::IsA<super::VulkanSwapper>> Sealed for T {}
8}
9
10pub trait VulkanSwapperExtManual: sealed::Sealed + IsA<VulkanSwapper> + 'static {
11    #[doc(alias = "pixel-aspect-ratio")]
12    fn is_force_aspect_ratio(&self) -> gst::Fraction {
13        ObjectExt::property(self.as_ref(), "pixel-aspect-ratio")
14    }
15
16    #[doc(alias = "pixel-aspect-ratio")]
17    fn set_force_aspect_ratio(&self, pixel_aspect_ratio: gst::Fraction) {
18        ObjectExt::set_property(self.as_ref(), "pixel-aspect-ratio", pixel_aspect_ratio)
19    }
20}
21impl<O: IsA<VulkanSwapper>> VulkanSwapperExtManual for O {}