gstreamer-rs/gstreamer-controller/src/auto/proxy_control_binding.rs
Marijn Suijten 1ffa02fc1f Update gir to c85699a with import cleanups; regenerate
Apply import cleanups from https://github.com/gtk-rs/gir/pull/1043,
omitting `use` statements where unnecessary or guarding them with
versioning constraints to prevent `unused_imports` warnings.

Removes unnecessary `mut_override` with
https://github.com/gtk-rs/gir/pull/1044 as well.
2021-01-30 15:49:38 +01:00

50 lines
1.7 KiB
Rust

// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
use glib::object::Cast;
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
use glib::object::IsA;
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
use glib::translate::*;
glib::wrapper! {
pub struct ProxyControlBinding(Object<ffi::GstProxyControlBinding, ffi::GstProxyControlBindingClass>) @extends gst::ControlBinding, gst::Object;
match fn {
get_type => || ffi::gst_proxy_control_binding_get_type(),
}
}
impl ProxyControlBinding {
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
#[doc(alias = "gst_proxy_control_binding_new")]
pub fn new<P: IsA<gst::Object>, Q: IsA<gst::Object>>(
object: &P,
property_name: &str,
ref_object: &Q,
ref_property_name: &str,
) -> ProxyControlBinding {
assert_initialized_main_thread!();
unsafe {
gst::ControlBinding::from_glib_none(ffi::gst_proxy_control_binding_new(
object.as_ref().to_glib_none().0,
property_name.to_glib_none().0,
ref_object.as_ref().to_glib_none().0,
ref_property_name.to_glib_none().0,
))
.unsafe_cast()
}
}
}
unsafe impl Send for ProxyControlBinding {}
unsafe impl Sync for ProxyControlBinding {}
pub const NONE_PROXY_CONTROL_BINDING: Option<&ProxyControlBinding> = None;