Next Previous Up Top Contents Index

1 CAPI Reference Entries

row-layout

Class

Summary

Therow-layout class lays its children out in a row.
Superclasses

grid-layout

Slots

ratios

The size ratios between the layout's children.

adjust

The vertical adjustment for each child.

gap

The gap between each child.

uniform-size-p

Ift, each child in the row has the same width.

Accessors

layout-ratios

Description

This lays its children out by inheriting the behavior fromgrid-layout. The description is a list of the layout's children, and the layout also translates the initargsratios,adjust,gap anduniform-size-p into the grid layouts equivalent keywordsx-ratios,y-adjust,x-gap andx-uniform-size-p.
Examples

(capi:contain (make-instance
               'capi:row-layout
               :description
               (list
                 (make-instance 'capi:push-button
                                :text "Press me")
                 (make-instance 'capi:title-pane
                                :text "Title")
                 (make-instance 'capi:list-panel
                                :items '(1 2 3)))))

(setq row (capi:contain (make-instance 'capi:row-layout :description (list (make-instance 'capi:push-button :text "Press me") (make-instance 'capi:title-pane :text "Title") (make-instance 'capi:list-panel :items '(1 2 3))) :adjust :center)))

(setf (capi:layout-y-adjust row) :bottom)

(setf (capi:layout-y-adjust row) :top)

See also

column-layout

LispWorks CAPI Reference Manual - 17 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker