Module types

Source
Expand description

Module that contains the basic infrastructure for subclassing GObject.

Macrosยง

interface_list_trait ๐Ÿ”’
interface_list_trait_impl ๐Ÿ”’

Structsยง

InitializingObject
An object that is currently being initialized.
InitializingType
A newly registered glib::Type that is currently still being initialized.
PrivateStruct ๐Ÿ”’
Struct used for the instance private data of the GObject.
TypeData
Type-specific data that is filled in during type creation.

Traitsยง

ClassStruct
Trait implemented by structs that implement a GObject C class struct.
FromObject
Helper trait for macros to access a subclass or its wrapper.
InstanceStruct
Trait implemented by structs that implement a GObject C instance struct.
InstanceStructExt
Trait implemented by any type implementing InstanceStruct to return the implementation, private Rust struct.
InterfaceList
Trait for a type list of interfaces.
InterfaceStruct
Trait implemented by structs that implement a GTypeInterface C class struct.
IsImplementable
Trait for implementable interfaces.
IsSubclassable
Trait for subclassable class structs.
IsSubclassableExt
ObjectSubclass
The central trait for subclassing a GObject type.
ObjectSubclassExt
Extension methods for all ObjectSubclass impls.
ObjectSubclassIsExt
Trait implemented by any type implementing ObjectSubclassIs to return the implementation, private Rust struct.
ObjectSubclassType
Type methods required for an ObjectSubclass implementation.

Functionsยง

class_init ๐Ÿ”’ โš 
finalize ๐Ÿ”’ โš 
instance_init ๐Ÿ”’ โš 
interface_init ๐Ÿ”’ โš 
offset_ptr_by_bytes ๐Ÿ”’
Offset ptr by offset bytes and cast the result to *const U.
offset_ptr_by_bytes_mut ๐Ÿ”’
Offset ptr by offset bytes and cast the result to *mut U.
register_dynamic_type
Registers a glib::Type ID for T as a dynamic type.
register_type
Register a glib::Type ID for T.
signal_chain_from_overridden ๐Ÿ”’ โš 
signal_override_class_handler ๐Ÿ”’ โš