Re: drawing with colors
- From: Jim Edwards <jimedwards altavista com>
- To: Andrei Zmievski <andrei ispi net>
- Cc: gtk-list gnome org
- Subject: Re: drawing with colors
- Date: Tue, 31 Jul 2001 17:29:47 +0000
Andrei Zmievski wrote:
> I'd like to draw with different colors on a drawing area. I use
> gdk_gc_new_with_values() to create the GC. To specify the foreground
> color, is it always necessary to use gdk_colormap_alloc_color() with
> system/widget colormap or will gdk_parse_color() work as well? If
> former, then what is the use of gdk_parse_color() function?
>
Andrei,
I think the answer is neither one.
I´m just learing this stuff myself but it looks like you set the color
in a GdkColor structure then set
widget->style->fg_gc[widget->state] = color;
>
> -Andrei
> * It's an emergent property of human minds to create. *
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]