I noticed that The UI is being upgraded from gtk+ to gtkmm I would like to try and get Pen Tablet support (it is probably a good time). My early experiments in doing this are not doing too well (considering that the GTK documentation is totally out of date).
The dynadraw tool looks like the easiest to convert to use extended input But I don't seem to be able to get it to respond to this extra information.
From what I have managed to glean so far "gdk_input_set_extension_events" has
to be called on each "gdk_window" you want to get receive extended event information. So far I have tried doing this with sp_canvas but it seams not to have worked.
Which gdk_window(s) does the dynadraw context draw onto?
Thankyou Danni
I noticed that The UI is being upgraded from gtk+ to gtkmm I would like to try and get Pen Tablet support (it is probably a good time). My early experiments in doing this are not doing too well (considering that the GTK documentation is totally out of date).
That would be cool. However getting extended events from gtk(mm) is probably the easiest part. Much more difficult is to decide what to do with the pressure data. Of course it's natural to try to adapt the calligraphic pen to use it for variable stroke width, but I would not recommend it because that tool is very limited. It creates plain SVG paths, instead of separate axis path and stroke width information that would allow to edit a variable-width stroke as a regular stroke while preserving its width information. See this post:
http://sourceforge.net/mailarchive/message.php?msg_id=8193379
That said, if you just hook up pressure sensitivity to Inkscape that would be very useful by itself. It may have other uses outisde variable-width strokes.
On Tue, 2004-08-24 at 22:03, Danni Coy wrote:
I noticed that The UI is being upgraded from gtk+ to gtkmm I would like to try and get Pen Tablet support (it is probably a good time). My early experiments in doing this are not doing too well (considering that the GTK documentation is totally out of date).
The dynadraw tool looks like the easiest to convert to use extended input But I don't seem to be able to get it to respond to this extra information.
From what I have managed to glean so far "gdk_input_set_extension_events" has
to be called on each "gdk_window" you want to get receive extended event information. So far I have tried doing this with sp_canvas but it seams not to have worked.
Which gdk_window(s) does the dynadraw context draw onto?
SPCanvasWidget should be the right sort of widget to do this with.
Have you tried writing a small standalone program as a test case to make sure that you're doing everything else you need to? (you might e.g. have to set event masks and things)
i.e. try it with your own trivial custom widget first ... I'm afraid event flow with our canvas is currently rather convoluted
-mental
participants (3)
-
bulia byak
-
Danni Coy
-
MenTaLguY