Re: GC's
- From: Havoc Pennington <hp redhat com>
- To: Alexandre Mathy <ardm2 cam ac uk>
- Cc: gtk-list gnome org
- Subject: Re: GC's
- Date: 29 Jun 2001 10:47:26 -0400
Alexandre Mathy <ardm2 cam ac uk> writes:
> Hey,
> I'm trying to get the hang of GdkGC's but I can't find any decent
> documentation...
The "scribble" example in the tutorial may help, and the Xlib
Programming Manual (vol 1) is good if you want tons of details.
> GdkGc selectedGC;
>
> //I think the following line is the problem
> // I have tried this with the pixmap instead of widget->window
> // but then the colormap is null.. with this code, nothing happens
> GdkColormap *cmap = gdk_window_get_colormap (widget->window);
Suggest simply:
gtk_widget_get_colormap (widget)
> cred.red =1.0;
These values are in the range [0,G_MAXUSHORT]
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]