Re: a canvas text item question



// Hello,
// 	Does anyone know what the best way to make a string in a gnome
// canvas text item a particular color (determined at compile time)?  An
// example would be great (or a pointer to a tutorial or program which does
// this (if it's a program, filename:linenumber would be especially great)).
// Thank you for your help.
// 	-Chris

gnome-libs/test-gnome/canvas-primitives.c:329

and the answer is 
gnome_canvas_item_set (text_item, "fill_color", "blue", NULL);

or use fill_color_rgba if you want transparency in the aa canvas.

see http://developer.gnome.org/doc/API/libgnomeui/gnomecanvas.html

for a general doc on gnome canvas.
Specific arguments for canvas item are described in the corresponding
headers (for example gnome-canvas-text.h in your case).


Best Regards.



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