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->window,
        /* DarkViolet */  <----
        TRUE, 0, 0,
        widget->allocation.width,
        widget->allocation.height);

How can I pass a DarViolet or LightGreen GdkGC to the drawing primitive function?

How can I use specific RGB values such as RGB(128, 32, 41)?

thanks in advance,

Esteban

Reply via email to