[][src]Trait gstreamer_video::prelude::ObjectExt

pub trait ObjectExt: ObjectType {
    fn is<T>(&self) -> bool
    where
        T: StaticType
;
fn get_type(&self) -> Type;
fn get_object_class(&self) -> &ObjectClass;
fn set_property<'a, N>(
        &self,
        property_name: N,
        value: &dyn ToValue
    ) -> Result<(), BoolError>
    where
        N: Into<&'a str>
;
fn get_property<'a, N>(&self, property_name: N) -> Result<Value, BoolError>
    where
        N: Into<&'a str>
;
fn has_property<'a, N>(
        &self,
        property_name: N,
        type_: Option<Type>
    ) -> Result<(), BoolError>
    where
        N: Into<&'a str>
;
fn get_property_type<'a, N>(&self, property_name: N) -> Option<Type>
    where
        N: Into<&'a str>
;
fn find_property<'a, N>(&self, property_name: N) -> Option<ParamSpec>
    where
        N: Into<&'a str>
;
fn list_properties(&self) -> Vec<ParamSpec>;
fn block_signal(&self, handler_id: &SignalHandlerId);
fn unblock_signal(&self, handler_id: &SignalHandlerId);
fn stop_signal_emission(&self, signal_name: &str);
fn connect<'a, N, F>(
        &self,
        signal_name: N,
        after: bool,
        callback: F
    ) -> Result<SignalHandlerId, BoolError>
    where
        F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
        N: Into<&'a str>
;
fn connect_local<'a, N, F>(
        &self,
        signal_name: N,
        after: bool,
        callback: F
    ) -> Result<SignalHandlerId, BoolError>
    where
        F: Fn(&[Value]) -> Option<Value> + 'static,
        N: Into<&'a str>
;
unsafe fn connect_unsafe<'a, N, F>(
        &self,
        signal_name: N,
        after: bool,
        callback: F
    ) -> Result<SignalHandlerId, BoolError>
    where
        F: Fn(&[Value]) -> Option<Value>,
        N: Into<&'a str>
;
fn emit<'a, N>(
        &self,
        signal_name: N,
        args: &[&dyn ToValue]
    ) -> Result<Option<Value>, BoolError>
    where
        N: Into<&'a str>
;
fn disconnect(&self, handler_id: SignalHandlerId);
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
    where
        F: 'static + Send + Sync + Fn(&Self, &ParamSpec)
;
unsafe fn connect_notify_unsafe<F>(
        &self,
        name: Option<&str>,
        f: F
    ) -> SignalHandlerId
    where
        F: Fn(&Self, &ParamSpec)
;
fn notify<'a, N>(&self, property_name: N)
    where
        N: Into<&'a str>
;
fn notify_by_pspec(&self, pspec: &ParamSpec);
fn downgrade(&self) -> WeakRef<Self>;
fn bind_property<'a, O, N, M>(
        &'a self,
        source_property: N,
        target: &'a O,
        target_property: M
    ) -> BindingBuilder<'a>
    where
        M: Into<&'a str>,
        N: Into<&'a str>,
        O: ObjectType
;
fn ref_count(&self) -> u32; }

Required methods

fn is<T>(&self) -> bool where
    T: StaticType

Returns true if the object is an instance of (can be cast to) T.

fn get_type(&self) -> Type

fn get_object_class(&self) -> &ObjectClass

fn set_property<'a, N>(
    &self,
    property_name: N,
    value: &dyn ToValue
) -> Result<(), BoolError> where
    N: Into<&'a str>, 

fn get_property<'a, N>(&self, property_name: N) -> Result<Value, BoolError> where
    N: Into<&'a str>, 

fn has_property<'a, N>(
    &self,
    property_name: N,
    type_: Option<Type>
) -> Result<(), BoolError> where
    N: Into<&'a str>, 

fn get_property_type<'a, N>(&self, property_name: N) -> Option<Type> where
    N: Into<&'a str>, 

fn find_property<'a, N>(&self, property_name: N) -> Option<ParamSpec> where
    N: Into<&'a str>, 

fn list_properties(&self) -> Vec<ParamSpec>

fn block_signal(&self, handler_id: &SignalHandlerId)

fn unblock_signal(&self, handler_id: &SignalHandlerId)

fn stop_signal_emission(&self, signal_name: &str)

fn connect<'a, N, F>(
    &self,
    signal_name: N,
    after: bool,
    callback: F
) -> Result<SignalHandlerId, BoolError> where
    F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
    N: Into<&'a str>, 

fn connect_local<'a, N, F>(
    &self,
    signal_name: N,
    after: bool,
    callback: F
) -> Result<SignalHandlerId, BoolError> where
    F: Fn(&[Value]) -> Option<Value> + 'static,
    N: Into<&'a str>, 

unsafe fn connect_unsafe<'a, N, F>(
    &self,
    signal_name: N,
    after: bool,
    callback: F
) -> Result<SignalHandlerId, BoolError> where
    F: Fn(&[Value]) -> Option<Value>,
    N: Into<&'a str>, 

fn emit<'a, N>(
    &self,
    signal_name: N,
    args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError> where
    N: Into<&'a str>, 

fn disconnect(&self, handler_id: SignalHandlerId)

fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId where
    F: 'static + Send + Sync + Fn(&Self, &ParamSpec), 

unsafe fn connect_notify_unsafe<F>(
    &self,
    name: Option<&str>,
    f: F
) -> SignalHandlerId where
    F: Fn(&Self, &ParamSpec), 

fn notify<'a, N>(&self, property_name: N) where
    N: Into<&'a str>, 

fn notify_by_pspec(&self, pspec: &ParamSpec)

fn downgrade(&self) -> WeakRef<Self>

fn bind_property<'a, O, N, M>(
    &'a self,
    source_property: N,
    target: &'a O,
    target_property: M
) -> BindingBuilder<'a> where
    M: Into<&'a str>,
    N: Into<&'a str>,
    O: ObjectType

fn ref_count(&self) -> u32

Loading content...

Implementors

impl<T> ObjectExt for T where
    T: ObjectType
[src]

Loading content...