1 CAPI Reference Entries

x-y-adjustable-layout

Class

Summary

The classx-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 forx-adjust andy-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 themselves are interpreted by the functionpane-adjusted-offset, which by default can be any of the following:

:top
Place the pane at the top of the region.

:bottom
Place the pane at the bottom of the region.

:left
Place the pane at the left of the region.

: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 ofx-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)
                               )))))

(setf (capi:layout-x-adjust column) :right)

(setf (capi:layout-x-adjust column) :center)

See Also

pane-adjusted-offset


CAPI Reference Manual, Liquid Common Lisp Version 5.0 - 3 OCT 1997

Generated with Harlequin WebMaker