Hi,

I just got around to building xournal-next on Windows and would like to add
a few tools (not using the shape recognizer, as i want more control over
size and position), although I can't seem to understand the source code all
that well. For guidance I looked at code which defines the ruler paths in
xo_paint.c in the following functions:

- void create_new_stroke(GdkEvent *event)
- void continue_stroke(GdkEvent *event)
- void finalize_stroke(void)

Now my idea is to add new points to that path, so I can add an arrow head
after the straight line (like this: ----|>) . Where would one insert these
points? In xo_shapes.c make_circle_shape() adds points to the
ui.cur_path.coords array, but I can't seem to get it to work this way.

I'd be grateful for any guidance in this direction.

Also, it took me quite some time getting Xournal and gtk2 to build on
Windows (using MSYS2 / mingw64). If anyone is interested, I posted updated
instructions in the SourceForge forum

Thanks,

Mo.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Xournal-devel mailing list
Xournal-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xournal-devel

Reply via email to