You use snips to build small interactive widgets which can be combined and
embedded into other GUI applications. the snip-class% is a helper class
for building snips and editor-snip% is a type of snip which allows building
nested editors (an editor within an editor).
DrRacket uses snips for its editor and REPL, and supports user defined
snips as well. For example, in the video below, the plot is a snip% and so
is the map. Once you implement a snip, DrRacket knows how to use it when
you show it in the REPL:
https://www.youtube.com/watch?v=R2KU0ZvIJws
snips can also be embedded into GUI applications, for example you can build
a GUI window which contains a map and several plots:
https://www.youtube.com/watch?v=OElNG3ZGgd0
and you can also build interactive applications. In the video below, each
game tile is a snip% and they are managed by a pasteboard% object:
https://www.youtube.com/watch?v=UKMgURA5Wg8
Alex.
On Friday, November 20, 2020 at 11:47:19 AM UTC+8 [email protected]
wrote:
> I have been reading about those classes but i can't properly figure out.
>
> what are the main use-case of snip, snip-class and editor-snip?
>
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/racket-users/156fcba7-86b4-483b-a936-8121a0f9f397n%40googlegroups.com.