Re: About drawing primitives

2002-06-02 Thread Havoc Pennington
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

Re: About drawing primitives

2002-05-29 Thread Chris Nystrom
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

About drawing primitives

2002-05-29 Thread Esteban Quijano
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