Re: drawing with colors

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?


I think the answer is neither one.

Im 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

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