Trait Child Proxy ExtManual
Source pub trait ChildProxyExtManual: 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_str(&self, name: &str, value: &str) { ... }
fn set_child_property_from_value(&self, name: &str, value: &Value) { ... }
}Provided Methods§
Sourcefn lookup(&self, name: &str) -> Result<(Object, ParamSpec), BoolError>
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
Sourcefn child_property<V: for<'b> FromValue<'b> + 'static>(&self, name: &str) -> V
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.
fn child_property_value(&self, name: &str) -> Value
Sourcefn set_child_property(&self, name: &str, value: impl Into<Value>)
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
fn set_child_property_from_str(&self, name: &str, value: &str)
fn set_child_property_from_value(&self, name: &str, value: &Value)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.