Trait gobject_subclass::object::ObjectType [−][src]
pub trait ObjectType: FromGlibPtrBorrow<*mut Self::InstanceStructType> where
Self: IsA<Object> + Sized + 'static,
Self::InstanceStructType: Instance<Self>, { type InstanceStructType: Instance<Self> + 'static; type ParentType: IsA<Object>; type ImplType: ObjectImpl<Self>; const NAME: &'static str; fn class_init(token: &ClassInitToken, klass: &mut ClassStruct<Self>); unsafe fn get_instance(&self) -> *mut Self::InstanceStructType; fn get_impl(&self) -> &Self::ImplType { ... } unsafe fn get_class(&self) -> *const ClassStruct<Self> { ... } }
Associated Types
type InstanceStructType: Instance<Self> + 'static
type ParentType: IsA<Object>
type ImplType: ObjectImpl<Self>
Associated Constants
Required Methods
fn class_init(token: &ClassInitToken, klass: &mut ClassStruct<Self>)
unsafe fn get_instance(&self) -> *mut Self::InstanceStructType
Provided Methods
fn get_impl(&self) -> &Self::ImplType
unsafe fn get_class(&self) -> *const ClassStruct<Self>
Implementors
impl ObjectType for Object type ParentType = Object; type ImplType = Box<ObjectImpl<Self>>; type InstanceStructType = InstanceStruct<Self>;