gstreamer-rs/gstreamer/src/auto/proxy_pad.rs

45 lines
1.3 KiB
Rust
Raw Normal View History

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)
// 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! {
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 {
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-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;
pub trait ProxyPadExt: 'static {
2020-12-08 13:00:17 +00:00
#[doc(alias = "gst_proxy_pad_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(
self.as_ref().to_glib_none().0,
))
2017-07-29 13:19:15 +00:00
}
}
}