Crate glib_macros[][src]

Macros

clone

Macro for passing variables as strong or weak references into a closure.

Attribute Macros

gflags

Attribute macro for defining flags using the bitflags crate. This macro will also define a GFlags::type_ function and the glib::Value traits.

object_interface

Macro for boilerplate of ObjectInterface implementations.

object_subclass

Macro for boilerplate of ObjectSubclass implementations.

Derive Macros

Downgrade

Macro for deriving implementations of glib::clone::Downgrade and glib::clone::Upgrade traits and a weak type.

GBoxed

Derive macro for defining a BoxedType::type_ function and the glib::Value traits.

GEnum
GErrorDomain

Derive macro for defining a GLib error domain and its associated ErrorDomain trait.

GSharedBoxed

Derive macro for defining a SharedType::get_type function and the glib::Value traits.