Hi Jon,

I would like to use Inkscape as a GUI builder for Intel's Clutter library. It is not that difficult really, because we can use cairo surfaces as UI elements. The only catch is clutter needs the size of the allocation box BEFORE it does create the cairo handle to be used in drawing.

In the Inkscape UI, when you select a group, the width and height values are shown in the selection toolbox, am I mistaken? So inkscape actually computes the size. I thought with some indirection I can update the Group element with what I need.

On Tue, Sep 28, 2010 at 5:07 AM, Jon Cruz <jon@joncruz.org> wrote:

On Sep 27, 2010, at 2:50 PM, Ogla Sungutay wrote:

> Hi guys,
> I need to add the size of the SVG_G_ELEMENT in a custom namespace as seen below:
> <g
>     inkscape:label="baz"
>     id="foo"
>     myNamespace:width="647"
>     myNamespace:height="400"
> >
> This will require some hacking, so before I go into the code, I wanted to get some feedback from you; I'm hoping that you can give me some directions
> or offer me solutions.
> Thanks!!

Hmmm... the first question is to why you want to do that?

Off hand it sounds like a very complex thing, and most likely not as useful as one might think.

V. Ogla Sungutay,
UI programmer