On 10/16/07, Gerrit . <g99k@...19...> wrote:
Hello everyone!
I am looking for the methods that draw little circular handles and selection cues respectively. Does anyone know these?
Currently no code for this exists, but I was just planning to add a new canvasitem for circles (I will use it for Tweak tool cursor). Once it's in you will also be able to use it. But small fixed-sized circles are already possible and used e.g. for bezier handles in Node tool.
I am making extensive use of SVG group nodes. I would like to be able to check where the center of an object is, in order to know if I previously changed the group matrix or the content's matrices. I found no way to easily check this in Inkscape.
"Center of the object" is ambiguous. If you want just the center of the bbox, click the selection a second time and it will display a handle in the rotation center, which by default is in the center of the bbox.
It is especially difficult to notice if a path object is changed or moved. I found that the default behaviour for dragging a path is that the path data gets altered, instead of applying a translation matrix. I plan to use the graphics as animation assets, so the difference matters to me.
Just switch the preference setting "Store transformation:" to "preserved".
What I would like to do now is to make code modifications to draw a little circle at the center of a selected object, so I can clearly see when the contents or the path are off center.
The rotation center handle is a cross. I don't like that actually because it makes it hard to notice and drag it. Suggestions are welcome.