Re: Derived interfaces

On Sat, 2001-11-03 at 19:00, Owen Taylor wrote:
> murrayc t-online de (Murray Cumming) writes:
> > I read somewhere that glib interfaces could be derived from other
> > interfaces. Does anyone know of an example?
> The way this is mapped is as "prerequisites" - an interface
> can require that any type implementing it also "is a" some
> set of other types, either interface types or instance
> types.
> void  g_type_interface_add_prerequisite (GType interface_type,
> 					 GType prerequisite_type);
> E.g., GtkCellEditable (what should have been GtkCellEditor)
> has a prerequisite on GtkWidge.t
> Regards,

So, if interfaces can't really be inherited, what does this do:
gpointer g_type_interface_peek_parent (gpointer g_iface)

Murray Cumming
murrayc usa net

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]