Package: gobject

Function g-type-is-interface

Lambda List

g-type-is-interface (gtype)

Arguments

gtype -- a g-type ID

Return Value

True if gtype is an interface type.

Details

Checks if gtype is an interface type. An interface type provides a pure API, the implementation of which is provided by another type, which is then said to conform to the interface. GLib interfaces are somewhat analogous to Java interfaces and C++ classes containing only pure virtual functions, with the difference that GType interfaces are not derivable, but see the function g_type_interface_add_prerequisite() for an alternative.
 

See also

2020-11-1