Trait gtk::IsA

source · []
pub unsafe trait IsA<T>: 'static + ObjectType + AsRef<T>where
    T: ObjectType,
{ }
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.

Implementations on Foreign Types

Implementors

source

impl IsA<Buildable> for Entry

source

impl IsA<CellEditable> for Entry

source

impl IsA<Editable> for Entry

source

impl IsA<Widget> for Entry