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)
|
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! {
|
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 {
|
2020-11-21 13:46:33 +00:00
|
|
|
get_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")]
|
2019-03-19 07:40:05 +00:00
|
|
|
//pub fn iterate_internal_links_default<P: IsA<Pad>, Q: IsA<Object>>(pad: &P, parent: Option<&Q>) -> /*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")]
|
2017-07-29 13:19:15 +00:00
|
|
|
fn get_internal(&self) -> Option<ProxyPad>;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<O: IsA<ProxyPad>> ProxyPadExt for O {
|
|
|
|
fn get_internal(&self) -> Option<ProxyPad> {
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|