Page 316 Table of Contents Index Page 318
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E



CHAPTER 29. PANES

of window, if there is one, is reset to the upper left corner.

=> window-refresh window [Generic Function]
Clears the visible part of the drawing plane of the CLIM stream pane window, and then if the
window stream is an output recording stream, the output records in the visible part of the
window are replayed.

=> window-viewport window [Generic Function]
Returns the viewport region of the CLIM stream pane window. The returned region will usually
be a standard-bounding-rectangle.

=> window-erase-viewport window [Generic Function]
Clears the visible part of the drawing plane of the CLIM stream pane window by filling it with
the background design.

=> window-viewport-position window [Generic Function]
Returns two values, the x and y position of the top-left corner of the CLIM stream pane window's
viewport.

=> (setf* window-viewport-position) x y window [Generic Function]
Sets the position of the CLIM stream pane window's viewport to x and y.

29.5 Defining New Pane Types

This section describes how to define new pane classes.

29.5.1 Defining Leaf Panes

To define a gadget pane implementation, first define the appearance and layout behavior of
the gadget, then define the callbacks, then define the specific user interactions that trigger the
callbacks.

For example, to define an odd new kind of button that displays itself as a circle, and activates
whenever the mouse is moved over it, proceed as follows:
 
 ;; A new kind of button
 (defclass sample-button-pane (gadget-pane) ())

 ;; An arbitrary size parameter
 (defparameter *sample-button-radius* 10)


Page 316 Table of Contents Index Page 318
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E