[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: firstname.lastname@example.org
- Subject: start-picture/get-picture question
- From: Rob Browning <email@example.com>
- Date: 25 Jan 1994 04:55:59 GMT
- Distribution: world
- Newsgroups: comp.lang.lisp.mcl
- Organization: The University of Texas at Austin, Austin, Texas
I was creating a class to implement windows that will redraw themselves.
Here's the idea:
(Assume the window has a slot called "contents" that holds a picture.
Also assume that the view-draw-contents method for this class clears
the window and draws the picture in "contents" in the window)
Here is the function I defined to add graphic items to the window
(more or less):
(defmacro append-to-auto-redraw-window (win &rest items)
(if (contents ,win) (draw-picture ,win (contents ,win)))
(if (contents ,win) (kill-picture (contents ,win)))
(setf (contents ,win) (get-picture ,win))))
1) Isn't it true that unless I add a without-interrupts macro around the
with-focused-view macro, I'll unintentially capture any
activation/deactivation or redraw events in the picture while "items"
2) However, if I do add the without-interrupts macro, isn't it possible
interrupts could be disabled for too long.
3) Is there a better way to do this?
4) Are calls to start-picture, get-picture, kill-picture, and draw-picture