Trait gstreamer::prelude::ChildProxyExtManual

source ·
pub trait ChildProxyExtManual: Sealed + IsA<ChildProxy> + 'static {
    // Provided methods
    fn lookup(&self, name: &str) -> Result<(Object, ParamSpec), BoolError> { ... }
    fn child_property<V: for<'b> FromValue<'b> + 'static>(
        &self,
        name: &str,
    ) -> V { ... }
    fn child_property_value(&self, name: &str) -> Value { ... }
    fn set_child_property(&self, name: &str, value: impl Into<Value>) { ... }
    fn set_child_property_from_value(&self, name: &str, value: &Value) { ... }
}

Provided Methods§

source

fn lookup(&self, name: &str) -> Result<(Object, ParamSpec), BoolError>

Looks up which object and GParamSpec would be effected by the given name.

§name

name of the property to look up

§Returns

true if target and pspec could be found. false otherwise. In that case the values for pspec and target are not modified. Unref target after usage. For plain glib::Object target is the same as self.

§target

pointer to a glib::Object that takes the real object to set property on

§pspec

pointer to take the GParamSpec describing the property

source

fn child_property<V: for<'b> FromValue<'b> + 'static>(&self, name: &str) -> V

Gets a single property using the GstChildProxy mechanism. You are responsible for freeing it by calling [glib::Value::unset()][crate::glib::Value::unset()]

§name

name of the property

§Returns
§value

a glib::Value that should take the result.

source

fn child_property_value(&self, name: &str) -> Value

source

fn set_child_property(&self, name: &str, value: impl Into<Value>)

Sets a single property using the GstChildProxy mechanism.

§name

name of the property to set

§value

new glib::Value for the property

source

fn set_child_property_from_value(&self, name: &str, value: &Value)

Object Safety§

This trait is not object safe.

Implementors§