Next Prev Up Top Contents Index

x-y-adjustable-layout

Class
Summary

The class x-y-adjustable-layout provides functionality for positioning panes in a space larger than themselves (for example, it is used to choose whether to center them, or left justify them).

Superclasses

layout

Subclasses

simple-layout
grid-layout

Slots

x-adjust

The adjust value for the x direction.

y-adjust

The adjust value for the y direction.

Accessors

layout-x-adjust
layout-y-adjust

Description

The values for x-adjust and y-adjust are used by layouts to decide what to do when a pane is smaller than the space in which it is being laid out. The values are interpreted by the function pane-adjusted-offset. These are the allowed values:

:top

Place the pane at the top of the region. This is the default for y-adjust .

:bottom

Place the pane at the bottom of the region.

:left

Place the pane at the left of the region. This is the default for x-adjust .

:right

Place the pane at the right of the region.

:center

Place the pane in the center of the region.

Example

Note: column-layout is a subclass of x-y-adjustable-layout .

(setq column (capi:contain
               (make-instance
                'capi:column-layout
                :description (list
                               (make-instance
                                'capi:push-button
                                :text "Ok")
                               (make-instance
                                'capi:list-panel
                                :items '(1 2 3 4 5)
                               )))
               :process nil))
(setf (capi:layout-x-adjust column) :right) (setf (capi:layout-x-adjust column) :center)
See also

pane-adjusted-offset

 


LispWorks CAPI Reference Manual - 14 Dec 2001

Next Prev Up Top Contents Index