Hi,
I am new to developing for inkscape and was wondering about drawing to the canvas. I've been digging through the src and have figured a few things out but I am still unclear as to which #include files I need add specifically and what the proper functions to call are. Any help would be much appreciated.
Thanks, Dennis
On 29-1-2013 23:05, Dennis Coyle III wrote:
Hi,
I am new to developing for inkscape and was wondering about drawing to the canvas. I've been digging through the src and have figured a few things out but I am still unclear as to which #include files I need add specifically and what the proper functions to call are. Any help would be much appreciated.
Depends on what you want to do, but perhaps reading /src/display/canvas-grid.cpp e.g. lines 861-870 and /src/display/snap-indicator.cpp e.g. line 293 will help.
Ciao, Johan
On Jan 30, 2013, at 9:05 AM, Dennis Coyle III wrote:
Hi,
I am new to developing for inkscape and was wondering about drawing to the canvas. I've been digging through the src and have figured a few things out but I am still unclear as to which #include files I need add specifically and what the proper functions to call are. Any help would be much appreciated.
Conceptually doing this might be different than you might think. The main approach is to create objects in a tree, and then whenever needed the objects will be drawn by the system.
So... we don't really 'draw' to canvas, but instead create shape objects that can appear on demand.
participants (3)
-
Dennis Coyle III
-
Johan Engelen
-
Jon Cruz