gstreamer/auto/
proxy_pad.rs1use 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 }
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 {}