Commit Graph

34 Commits

Author SHA1 Message Date
Francesco Magliocca db8a0462a2 Start correct implementation of line-rect intersection test 2020-11-09 23:33:30 +01:00
Francesco Magliocca 2aaf3f7cc9 Implement Erasers and Fix VersionedCanvas
Implement stroke eraser, fix simple eraser and make VersionedCanvas check that something has actually changed in the canvas before updating the history
2020-11-09 22:42:03 +01:00
Francesco Magliocca d0f40530ff Document the update detection mechanism of VersionedCanvas::update 2020-11-09 21:07:37 +01:00
Francesco Magliocca 114ea2309e Make update interface slightly more usable 2020-11-09 21:06:05 +01:00
Francesco Magliocca 4b1dd4caed Add TODO messages and rename Canvas::push_back to Canvas::add_element 2020-11-09 18:54:11 +01:00
Francesco Magliocca bbd221e489 Polish code a bit 2020-11-09 18:33:14 +01:00
Francesco Magliocca 8bd487dc11 Use a RadioGroup to show which canvas tool is active 2020-11-09 17:18:00 +01:00
Francesco Magliocca be11d8e6ee Start dirty implementation of an eraser 2020-11-09 16:28:31 +01:00
enrico 9943681465 Merge pull request 'Implement Undo/Redo' (#4) from undo_redo into master
Reviewed-on: https://git.openglass.it/enrico/stiletto/pulls/4
2020-11-09 10:49:20 +01:00
Francesco Magliocca eca25f765b Rename History to VersionedCanvas and remove useless comments 2020-11-09 10:46:50 +01:00
Francesco Magliocca 6c7df141ea Implement Undo/Redo 2020-11-09 00:15:59 +01:00
Enrico Lumetti 9f1db67d23 Fix druid dependency 2020-11-08 21:39:33 +01:00
enrico 0f8c318bb6 Merge pull request 'canvas-element-enum' (#3) from canvas-element-enum into master 2020-11-08 15:44:20 +01:00
Enrico Lumetti 79157b9f8f Add minimal layout, separate stiletto library 2020-11-08 15:41:28 +01:00
Enrico Lumetti 19ce3657fa Account for stroke thickness in bounding box 2020-11-08 14:48:30 +01:00
Enrico Lumetti 2ef210b7ad Add LICENSE (ops) 2020-11-08 14:31:20 +01:00
Enrico Lumetti 01b7f569f9 Change CanvasElement::Path to CanvasElement::Freehand, is_drawing as method 2020-11-08 14:29:09 +01:00
Enrico Lumetti 3686f51e2c Working again 2020-11-08 13:00:29 +01:00
Enrico Lumetti 0b486563f8 Almost working, but not quite 2020-11-08 11:47:26 +01:00
Enrico Lumetti 49f5cd7e4d Cargo fmt + update lock + remove test binaries 2020-11-08 10:48:36 +01:00
Enrico Lumetti 3287117d89 Add LICENSE 2020-11-08 10:36:26 +01:00
Francesco Magliocca 8d335c6938 Temporarily remove check on pointer type, we accept all possible pointers now! 2020-11-04 22:31:21 +01:00
Francesco Magliocca 95c83db203 Lower minimum required versions of gtk glib and gdk, in order to accomodate older distros 2020-11-04 22:30:56 +01:00
Enrico Lumetti 028c80b2b0 [WIP] CanvasElement trait (currently panicking 2020-11-04 20:52:05 +01:00
Enrico Lumetti 20ffea1dbe basic druid drawing canvas 2020-10-16 13:54:10 +02:00
Enrico Lumetti 995c544149 Rename to stiletto 2020-10-15 23:54:50 +02:00
Enrico Lumetti 5a78a5fa65 code dump 3 2020-10-15 23:54:10 +02:00
Enrico Lumetti 0d52eb4a9f code dump 2 2020-10-15 20:15:17 +02:00
Enrico Lumetti f0357aa8ec code dump 1 2020-10-15 20:14:02 +02:00
Enrico Lumetti e736eb4c60 Allow to optionally draw dots instead of lines 2020-05-04 18:19:40 +02:00
Enrico Lumetti 33fdcfbfaf Stroke a path instead of drawing many circles 2020-05-04 16:52:04 +02:00
Enrico Lumetti 56a2ef9c97 Wip version of hacked-up gtk capture GUI 2020-05-04 16:41:27 +02:00
Enrico Lumetti 39f393c31e Add notebooks 2020-04-19 18:35:39 +02:00
Enrico Lumetti 697714edf3 Add program to capture using libinput 2020-04-19 18:34:06 +02:00