1 CAPI Reference Entries

column-layout

Class

Summary

Thecolumn-layout lays its children out in a column.

Superclasses

grid-layout

Slots

ratios
The size ratios between the layout's children.

adjust
The horizontal adjustment for each child.

gap
The gap between each child.

uniform-size-p

Should each child in the row have the same height?

Accessors

layout-ratios

Description

Thecolumn-layout 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 theinitargsratios,adjust,gap anduniform-size-p into thegrid-layout's equivalent keywordsy-ratios, x-adjust,y-gap andy-uniform-size-p.

Example

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

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

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

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

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

See Also

row-layout


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

Generated with Harlequin WebMaker