Re: A drawing program on the REPL with GUI feedback

Liste des GroupesRevenir à cl lisp 
Sujet : Re: A drawing program on the REPL with GUI feedback
De : enometh (at) *nospam* meer.net (Madhu)
Groupes : comp.lang.lisp
Date : 17. Jul 2024, 06:33:41
Autres entêtes
Organisation : Motzarella
Message-ID : <m3v814zlga.fsf@leonis4.robolove.meer.net>
References : 1
* Laroux <v77761$1fmm0$1@dont-email.me> :
Wrote on Wed, 17 Jul 2024 01:36:01 -0000 (UTC):

Even the color index could instead be a request for the user to select a
color from the color palette.
>
For example:
>
(draw (color (line '(ask) '(ask)) 1))
>
This would then prompt (both at the REPL and on the canvas) for the user
to enter the starting and ending coordinates for the line. The user could
just type the values into the prompt at the REPL, or move the mouse onto
the canvas click once, move and click a second time.
>
The GUI part, and acquisition of the mouse coordinates is not where I'm
stuck. I'm sure I could use something like SDL or Mcclim for this task.
But, what I am unsure about is how to make a generalized function which
can read a series of values from the user, and then pass them as
parameters to the given functions.


as user Interaction is intimately tied to the platform and GUI and
threading model of the GUI, you are constrained by what you have chosen
and your implementation of abstractions over it automatically become
wedded to it, to what your framework provides.

Generalized prompting is provided through mechanisms like Emacs
INTERACTIVE clim Presentation Types, these are from the 1980s and I am
not dont remember newer techniques but these work in their contexts and
are forever being reimplemented in other contexts (platform gui etc) and
after your initial stab at identifying the problems, you perhaps could
study how these are addressed by INTERACTIVE and PRESENTATION-TYPES, so
you can use those principles in your solution



Date Sujet#  Auteur
17 Jul 24 * A drawing program on the REPL with GUI feedback3Laroux
17 Jul 24 `* Re: A drawing program on the REPL with GUI feedback2Madhu
17 Jul 24  `- Re: A drawing program on the REPL with GUI feedback1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal