Chris Nystrom <[EMAIL PROTECTED]> writes:
> void
> color_foreground_set(int red, int green, int blue)
> {
> color_fg.red = red * 255;
> color_fg.green = green * 255;
> color_fg.blue = blue * 255;
>
> gdk_color_alloc(colormap, &color_fg);
>
> gdk_gc_set_foreground(gc, &color_fg);
In
On Wed, 29 May 2002, Esteban Quijano wrote:
> How can I use gdk drawing primitives with arbitrary colors, instead of using
> the typical 'widget->style->...' found in most sample code.
You need to create your own graphics context.
> I'd like for example to do something like:
>
> gdk_draw_rect
Title: About drawing primitives
How can I use gdk drawing primitives with arbitrary colors, instead of using the typical 'widget->style->...' found in most sample code.
I'd like for example to do something like:
gdk_draw_rectangle(
widget->windo