Struct gst::Object
[−]
[src]
pub struct Object { /* fields omitted */ }
Methods
impl Object
[src]
unsafe fn new(object: *mut GstObject) -> Option<Object>
fn set_name(&mut self, name: &str) -> bool
fn name(&self) -> String
Returns the name of the object
fn flags(&self) -> u32
fn is_flag_set(&self, flag: u32) -> bool
fn set_flag(&mut self, flag: u32)
fn unset_flag(&mut self, flag: u32)
fn refcount(&self) -> usize
fn lock<F: FnMut(&mut Object)>(&mut self, f: F)
fn set_unique_name(&mut self) -> bool
fn set_parent(&mut self, parent: &Object) -> bool
fn parent(&self) -> Option<Ref<Object>>
fn unparent(&mut self)
fn has_as_ancestor(&self, ancestor: &Object) -> bool
fn path_string(&self) -> &str
fn has_active_control_bindings(&self) -> bool
fn disable_control_bindings(&mut self)
fn enable_control_bindings(&mut self)
fn disable_control_binding(&mut self, property_name: &str)
fn enable_control_binding(&mut self, property_name: &str)
fn set<T>(&mut self, name: &str, value: T) where
T: Property,
T: Property,
fn get<T>(&self, name: &str) -> T where
T: FromProperty,
T: FromProperty,
unsafe fn signal_connect<T>(
&mut self,
signal: &str,
callback: GCallback,
data: &mut T
) where
Self: Sized,
&mut self,
signal: &str,
callback: GCallback,
data: &mut T
) where
Self: Sized,
unsafe fn gst_object(&self) -> *const GstObject
unsafe fn gst_object_mut(&mut self) -> *mut GstObject
Trait Implementations
impl From<Element> for Object
[src]
impl From<BufferPool> for Object
[src]
fn from(b: BufferPool) -> Object
Performs the conversion.
impl From<Pad> for Object
[src]
impl Drop for Object
[src]
impl Transfer<GstObject> for Object
[src]
unsafe fn transfer(self) -> *mut GstObject
Consumes the current object and transfers ownership of the raw pointer Used to transfer ownership to ffi functions, should be used when an ffi function expects full transfer of an object to avoid the original object to be unreferenced in the process Read more