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 | |
6 | use crate::{Object, Pad}; |
7 | use glib::{prelude::*, translate::*}; |
8 | |
9 | glib::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 | |
18 | impl 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 | |
27 | unsafe impl Send for ProxyPad {} |
28 | unsafe impl Sync for ProxyPad {} |
29 | |
30 | mod sealed { |
31 | pub trait Sealed {} |
32 | impl<T: super::IsA<super::ProxyPad>> Sealed for T {} |
33 | } |
34 | |
35 | pub trait ProxyPadExt: IsA<ProxyPad> + sealed::Sealed + 'static { |
36 | #[doc (alias = "gst_proxy_pad_get_internal" )] |
37 | #[doc (alias = "get_internal" )] |
38 | #[must_use ] |
39 | fn internal(&self) -> Option<ProxyPad> { |
40 | unsafe { |
41 | from_glib_full(ptr:ffi::gst_proxy_pad_get_internal( |
42 | self.as_ref().to_glib_none().0, |
43 | )) |
44 | } |
45 | } |
46 | } |
47 | |
48 | impl<O: IsA<ProxyPad>> ProxyPadExt for O {} |
49 | |