Re: [Goocanvas-devel] Why color property is write only
Status: Beta
Brought to you by:
dachaplin
From: Damon C. <da...@ka...> - 2008-03-03 22:29:12
|
On Sat, 2008-03-01 at 17:59 +0100, Bruno Coudoin wrote: > In the GooCanvasItemSimple, the fill-color and stroke-color are write > only. We have a use case in GCompris were we let the children save the > items, thus we need to read these properties. > > It there a good reason to have these properties write only ? The "fill-color" and "stroke-color" properties are convenience properties allowing you to use color names like "red". But these names are immediately converted to RGB values and the strings aren't kept. Can you use "fill-color-rgba" instead? That works with RGBA values directly and is read/write. Damon |