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). layout-x-adjust
layout-y-adjust
x-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: :topPlace the pane at the top of the region.
:bottomPlace the pane at the bottom of the region.
:leftPlace the pane at the left of the region.
:rightPlace the pane at the right of the region.
:centerPlace the pane in the center of the region.
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)
pane-adjusted-offset