gstreamer/auto/
proxy_pad.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
4// DO NOT EDIT
5
6use crate::{ffi, Object, Pad};
7use glib::{prelude::*, translate::*};
8
9glib::wrapper! {
10    #[doc(alias = "GstProxyPad")]
11    pub struct ProxyPad(Object<ffi::GstProxyPad, ffi::GstProxyPadClass>) @extends Pad, Object;
12
13    match fn {
14        type_ => || ffi::gst_proxy_pad_get_type(),
15    }
16}
17
18impl ProxyPad {
19    pub const NONE: Option<&'static ProxyPad> = None;
20
21    //#[doc(alias = "gst_proxy_pad_iterate_internal_links_default")]
22    //pub fn iterate_internal_links_default(pad: &impl IsA<Pad>, parent: Option<&impl IsA<Object>>) -> /*Ignored*/Option<Iterator> {
23    //    unsafe { TODO: call ffi:gst_proxy_pad_iterate_internal_links_default() }
24    //}
25}
26
27unsafe impl Send for ProxyPad {}
28unsafe impl Sync for ProxyPad {}
29
30pub trait ProxyPadExt: IsA<ProxyPad> + 'static {
31    #[doc(alias = "gst_proxy_pad_get_internal")]
32    #[doc(alias = "get_internal")]
33    #[must_use]
34    fn internal(&self) -> Option<ProxyPad> {
35        unsafe {
36            from_glib_full(ffi::gst_proxy_pad_get_internal(
37                self.as_ref().to_glib_none().0,
38            ))
39        }
40    }
41}
42
43impl<O: IsA<ProxyPad>> ProxyPadExt for O {}