Re: GdkColor weird type? Why not pointer like GtkWidget*....
- From: Paul Davis <pbd op net>
- To: Christian Seberino <seberino spawar navy mil>
- Cc: Daniel Elstner <daniel elstner gmx net>, rsteinke w-link net, gtk-list gnome org
- Subject: Re: GdkColor weird type? Why not pointer like GtkWidget*....
- Date: Mon, 22 Apr 2002 21:19:37 -0400
>Thanks for reply. You seem to know your stuff.
>If pointers are more complicated and unnecessary sometimes,
>then why does GTK+ have so many pointers?
>Why are many things of GtkWidget* type and not GtkWidget?
Perhaps the #1 reason is because its how some level of object-oriented
behaviour is implemented within GTK. If you went around defining
things as GtkWidget, they can only be a GtkWidget. If you define
things as GtkWidget *, then you have a pointer to something that is
*both* a GtkWidget *and*, say, a GtkWindow or GtkMenuItem.
>It seems like GdkColor is the first widget I found that
>is not declared to be a pointer in sample code I found.
Gdk<anything> is not a widget. Its a low-level data structure used in
implementing and controlling widgets.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]