tuxpaint-pencil-sharpener/magic/src
Bill Kendrick 01afb5846c api->retract_undo() added to Magic API; used by Filled Polygon
New API function which rolls back the Undo buffer (which is snapshotted
upon a mousedown event ahead of calling the Magic tool's `_click()`
function.)  Dangerous; use sparingly!

Filled Polygon uses this to prevent partially-created (aka unfinished
aka incomplete) polygons -- the preview lines and control points -- from
being recorded and wasting space in the Undo history, or reappearing
upon Redo.

TODO - Other tools (e.g., Clone) would certainly benefit from this.
TODO - Needs more testing to help identify any bugs/issues introduced
by this!
TODO - Magic API docs need updating.

This is probably a sufficient solution that will make
https://sourceforge.net/p/tuxpaint/feature-requests/246/,
'"Overlay" surface in Magic API', unnecessary.
2024-06-01 01:35:50 -07:00
..
WIP Demoting Specular magic to a WIP 2024-05-19 23:30:12 -07:00
.indent.pro Symlink .indent.pro in magic/src/ 2017-10-15 11:33:56 -07:00
alien.c Gave ordering to all Color Filter magic tools 2024-01-16 22:45:06 -08:00
blind.c Gave ordering to all Picture Decorations magic tools 2024-01-16 22:48:41 -08:00
blocks_etc.c Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
bloom.c Gave ordering to all Color Filter magic tools 2024-01-16 22:45:06 -08:00
blur.c Gave ordering to all Distorts magic tools 2024-01-16 21:31:07 -08:00
bricks.c Gave ordering to all Painting magic tools 2024-01-16 23:10:08 -08:00
calligraphy.c Gave ordering to all Painting magic tools 2024-01-16 23:10:08 -08:00
cartoon.c Gave ordering to all Color Filter magic tools 2024-01-16 22:45:06 -08:00
checkerboard.c Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
clone.c Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
colorsep.c Color Sep: Correctly abuse default size value 2024-05-14 23:26:00 -07:00
confetti.c Gave ordering to all Painting magic tools 2024-01-16 23:10:08 -08:00
distortion.c Gave ordering to all Distorts magic tools 2024-01-16 21:31:07 -08:00
dither.c Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
emboss.c Gave ordering to all Distorts magic tools 2024-01-16 21:31:07 -08:00
fade_darken.c Gave ordering to all Color Filter magic tools 2024-01-16 22:45:06 -08:00
fisheye.c Gave ordering to all Distorts magic tools 2024-01-16 21:31:07 -08:00
flower.c Gave ordering to all Artistic magic tools 2024-01-16 22:09:22 -08:00
foam.c Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
fold.c Gave ordering to all Picture Warps magic tools 2024-01-16 22:28:49 -08:00
fretwork.c Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
glasstile.c Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
googlyeyes.c Gave ordering to all Artistic magic tools 2024-01-16 22:09:22 -08:00
grass.c Gave ordering to all Painting magic tools 2024-01-16 23:10:08 -08:00
halftone.c Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
kaleidox.c Gave ordering to all Picture Warps magic tools 2024-01-16 22:28:49 -08:00
kalidescope.c Gave ordering to all Pattern Painting magic tools 2024-01-16 22:16:14 -08:00
light.c Gave ordering to all Painting magic tools 2024-01-16 23:10:08 -08:00
lightning.c Gave ordering to all Artistic magic tools 2024-01-16 22:09:22 -08:00
maze.c Gave ordering to all Painting magic tools 2024-01-16 23:10:08 -08:00
metalpaint.c Gave ordering to all Painting magic tools 2024-01-16 23:10:08 -08:00
mirror_flip.c Gave ordering to all Picture Warps magic tools 2024-01-16 22:28:49 -08:00
mosaic.c Gave ordering to all Distorts magic tools 2024-01-16 21:31:07 -08:00
mosaic_shaped.c Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
n_pt_persp.c Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
negative.c Gave ordering to all Color Filter magic tools 2024-01-16 22:45:06 -08:00
noise.c Gave ordering to all Distorts magic tools 2024-01-16 21:31:07 -08:00
perspective.c Gave ordering to all Picture Warps magic tools 2024-01-16 22:28:49 -08:00
pixels.c Gave ordering to all Painting magic tools 2024-01-16 23:10:08 -08:00
polyfill.c api->retract_undo() added to Magic API; used by Filled Polygon 2024-06-01 01:35:50 -07:00
puzzle.c Gave ordering to all Distorts magic tools 2024-01-16 21:31:07 -08:00
rails.c Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
rain.c Gave ordering to all Painting magic tools 2024-01-16 23:10:08 -08:00
rainbow.c Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
realrainbow.c Gave ordering to all Artistic magic tools 2024-01-16 22:09:22 -08:00
reflection.c Gave ordering to all Picture Warps magic tools 2024-01-16 22:28:49 -08:00
ribbon.c Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
ripples.c Gave ordering to all Distorts magic tools 2024-01-16 21:31:07 -08:00
rosette.c Gave ordering to all Pattern Painting magic tools 2024-01-16 22:16:14 -08:00
sharpen.c Gave ordering to all Distorts magic tools 2024-01-16 21:31:07 -08:00
shift.c Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
smooth.c Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
smudge.c Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
snow.c Gave ordering to all Picture Decorations magic tools 2024-01-16 22:48:41 -08:00
stretch.c Gave ordering to all Picture Warps magic tools 2024-01-16 22:28:49 -08:00
string.c Gave ordering to all Artistic magic tools 2024-01-16 22:09:22 -08:00
swirls.c Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
tint.c Gave ordering to all Color Filter magic tools 2024-01-16 22:45:06 -08:00
toothpaste.c Gave ordering to all Painting magic tools 2024-01-16 23:10:08 -08:00
tornado.c Gave ordering to all Artistic magic tools 2024-01-16 22:09:22 -08:00
trochoids.c Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
tv.c Gave ordering to all Distorts magic tools 2024-01-16 21:31:07 -08:00
waves.c Gave ordering to all Picture Warps magic tools 2024-01-16 22:28:49 -08:00
xor.c Xor Magic tool: Better description; respond to "order" 2024-01-16 22:43:11 -08:00