Trait gst_plugin::object::ObjectType
[−]
[src]
pub trait ObjectType: FromGlibPtrBorrow<*mut InstanceStruct<Self>> + 'static where
Self: Sized, { type GlibType; type GlibClassType; type ImplType: ObjectImpl<Self>; const NAME: &'static str; fn glib_type() -> Type; fn class_init(token: &ClassInitToken, klass: &mut ClassStruct<Self>); unsafe fn get_instance(&self) -> *mut InstanceStruct<Self>; fn set_property(_obj: &Self, _id: u32, _value: &Value) { ... } fn get_property(_obj: &Self, _id: u32) -> Result<Value, ()> { ... } fn get_impl(&self) -> &Self::ImplType { ... } unsafe fn get_class(&self) -> *const ClassStruct<Self> { ... } }
Associated Types
Associated Constants
Required Methods
fn glib_type() -> Type
fn class_init(token: &ClassInitToken, klass: &mut ClassStruct<Self>)
unsafe fn get_instance(&self) -> *mut InstanceStruct<Self>
Provided Methods
fn set_property(_obj: &Self, _id: u32, _value: &Value)
fn get_property(_obj: &Self, _id: u32) -> Result<Value, ()>
fn get_impl(&self) -> &Self::ImplType
unsafe fn get_class(&self) -> *const ClassStruct<Self>
Implementors
impl ObjectType for Element type GlibType = GstElement; type GlibClassType = GstElementClass; type ImplType = Box<ElementImpl<Self>>;
impl ObjectType for Bin type GlibType = GstBin; type GlibClassType = GstBinClass; type ImplType = Box<BinImpl<Self>>;
impl ObjectType for Pipeline type GlibType = GstPipeline; type GlibClassType = GstPipelineClass; type ImplType = Box<PipelineImpl<Self>>;
impl ObjectType for BaseSrc type GlibType = GstBaseSrc; type GlibClassType = GstBaseSrcClass; type ImplType = Box<BaseSrcImpl<Self>>;
impl ObjectType for BaseSink type GlibType = GstBaseSink; type GlibClassType = GstBaseSinkClass; type ImplType = Box<BaseSinkImpl<Self>>;
impl ObjectType for BaseTransform type GlibType = GstBaseTransform; type GlibClassType = GstBaseTransformClass; type ImplType = Box<BaseTransformImpl<Self>>;