2018-04-23 17:34:22 +00:00
|
|
|
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
2021-04-01 13:58:41 +00:00
|
|
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
2017-07-29 13:19:15 +00:00
|
|
|
// DO NOT EDIT
|
|
|
|
|
2020-11-21 13:46:33 +00:00
|
|
|
use crate::Object;
|
|
|
|
use crate::Pad;
|
2017-07-29 13:19:15 +00:00
|
|
|
use glib::object::IsA;
|
|
|
|
use glib::translate::*;
|
|
|
|
|
2020-12-17 22:34:53 +00:00
|
|
|
glib::wrapper! {
|
2021-06-02 07:47:51 +00:00
|
|
|
#[doc(alias = "GstProxyPad")]
|
2020-11-21 13:46:33 +00:00
|
|
|
pub struct ProxyPad(Object<ffi::GstProxyPad, ffi::GstProxyPadClass>) @extends Pad, Object;
|
2017-07-29 13:19:15 +00:00
|
|
|
|
|
|
|
match fn {
|
2021-04-19 19:55:01 +00:00
|
|
|
type_ => || ffi::gst_proxy_pad_get_type(),
|
2017-07-29 13:19:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl ProxyPad {
|
2020-12-08 13:00:17 +00:00
|
|
|
//#[doc(alias = "gst_proxy_pad_iterate_internal_links_default")]
|
2021-05-23 19:22:45 +00:00
|
|
|
//pub fn iterate_internal_links_default(pad: &impl IsA<Pad>, parent: Option<&impl IsA<Object>>) -> /*Ignored*/Option<Iterator> {
|
2020-11-21 13:46:33 +00:00
|
|
|
// unsafe { TODO: call ffi:gst_proxy_pad_iterate_internal_links_default() }
|
2017-09-17 15:41:02 +00:00
|
|
|
//}
|
2017-07-29 13:19:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsafe impl Send for ProxyPad {}
|
|
|
|
unsafe impl Sync for ProxyPad {}
|
|
|
|
|
2019-01-16 11:32:39 +00:00
|
|
|
pub const NONE_PROXY_PAD: Option<&ProxyPad> = None;
|
|
|
|
|
2018-12-08 09:05:20 +00:00
|
|
|
pub trait ProxyPadExt: 'static {
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_proxy_pad_get_internal")]
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "get_internal")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn internal(&self) -> Option<ProxyPad>;
|
2017-07-29 13:19:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
impl<O: IsA<ProxyPad>> ProxyPadExt for O {
|
2021-04-11 19:38:18 +00:00
|
|
|
fn internal(&self) -> Option<ProxyPad> {
|
2017-07-29 13:19:15 +00:00
|
|
|
unsafe {
|
2020-11-21 13:46:33 +00:00
|
|
|
from_glib_full(ffi::gst_proxy_pad_get_internal(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
2017-07-29 13:19:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|