Re: Derived interfaces



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,
                                        Owen




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