The
with-geometry
macro is used for defining layouts and for creating new pinboard-object subclasses, by binding a set of variables to a pane's geometry.
The main uses of the macro
with-geometry
are defining layouts and for creating new pinboard-object subclasses.
with-geometry
binds the following variables across the forms in
body
to slots in the pane's geometry in much the same way as the Common Lisp macro
with-slots
:
The x position of the pane.
The y position of the pane.
The object whose geometry this is.
The same as
%object%
(kept for 3.1 compatibility).
Ratio information.
The following variables give the external size and external constraints (see the
LispWorks CAPI User Guide
for a description of width and height constraints):
The width in pixels of the pane.
The height in pixels of the pane.
The minimum width of the pane.
The minimum height of the pane.
The maximum width of the pane.
The maximum height of the pane.
The following variables are also bound but apply only to classes with internal scrolling, such as editor-pane. They can be retrieved by get-horizontal-scroll-parameters and get-vertical-scroll-parameters. They can be set by set-horizontal-scroll-parameters and set-vertical-scroll-parameters.
The extent of the horizontal scroll range.
The extent of the vertical scroll range.
The horizontal scroll page size.
The width of the scroll bar slug.
The horizontal scroll step size.
The start of the horizontal scroll range.
The start of the vertical scroll range.
The vertical scroll page size.
The height of the scroll bar slug.
The vertical scroll step size.
x coordinate of the current scroll position.
y coordinate of the current scroll position
convert-relative-position
element
get-horizontal-scroll-parameters
get-vertical-scroll-parameters
scroll
set-horizontal-scroll-parameters
set-vertical-scroll-parameters