Re: inheritance
- From: rsteinke w-link net
- To: rtriay avantel net, gtk-list gnome org
- Subject: Re: inheritance
- Date: Wed, 20 Feb 2002 22:43:13 -0800
> 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]