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

So the 'derived interface' can have virtual functions that delegate to
the other interface? But it's not possible to simply make an interface
that has all the same virtual functions and some more, maybe overriding
some of them?

-- 
Murray Cumming
murrayc usa net
www.murrayc.com




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