Re: inheritance



> From: Ramon Alberto Triay Espinosa <rtriay avantel net>
>
> simple question:
> does all the 'children' widgets inherit all the functions of the
> 'parent' widget?
> I mean, does all functions that apply to a widget, apply to their
> children too?
>
> thanx
> rtriay
> :)

Yep. All you need to do is cast them using the appropriate macros
(e.g., to use the gtk_widget_foo() function, cast your descended widget
pointer to a GtkWidget* using the macro GTK_WIDGET()).

Ron Steinke



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