Trait glib::object::IsA

source ·
pub unsafe trait IsA<T: ObjectType>: ObjectType + Into<T> + AsRef<T> + Borrow<T> { }
Expand description

Declares the “is a” relationship.

Self is said to implement T.

For instance, since originally GtkWidget is a subclass of GObject and implements the GtkBuildable interface, gtk::Widget implements IsA<glib::Object> and IsA<gtk::Buildable>.

The trait can only be implemented if the appropriate ToGlibPtr implementations exist.

Implementors§

impl IsA<Icon> for Pixbuf

impl IsA<Icon> for FileIcon

impl IsA<Icon> for BytesIcon

impl<V: ValueType + Send> IsA<AsyncResult> for Task<V>

impl IsA<MenuModel> for Menu

impl IsA<Initable> for Socket

impl IsA<Icon> for Emblem

impl IsA<Icon> for ThemedIcon

impl IsA<Font> for Font

impl IsA<FontMap> for FontMap