Trait druid::piet::cairo::glib::ObjectType
pub unsafe trait ObjectType: UnsafeFrom<ObjectRef> + Into<ObjectRef> + StaticType + Debug + Clone + PartialEq<Self> + Eq + PartialOrd<Self> + Ord + Hash + ValueType + ToValue + ToValueOptional + FromValueOptional<'static> + for<'a> ToGlibPtr<'a, *mut Self::GlibType> + IntoGlibPtr<*mut Self::GlibType> + 'static {
type GlibType: 'static;
type GlibClassType: 'static;
// Required methods
fn as_object_ref(&self) -> &ObjectRef;
fn as_ptr(&self) -> *mut Self::GlibType;
}
Expand description
Implemented by types representing glib::Object
and subclasses of it.
Required Associated Types§
type GlibType: 'static
type GlibType: 'static
type of the FFI Instance structure.
type GlibClassType: 'static
type GlibClassType: 'static
type of the FFI Class structure.