The size ratios between the layout's children.
The vertical adjustment for each child.
The gap between each child.
This lays its children out by inheriting the behavior from grid-layout. The description is a list of the layout's children, and the layout also translates the initargs ratios , adjust , gap and uniform-size-p into the grid layout's equivalent arguments x-ratios , y-adjust , x-gap and x-uniform-size-p .
description
may also contain the keyword
:divider
which automatically creates a row-layout-divider as a child of the row-layout.
(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)
:process nil))
(setf (capi:layout-y-adjust row) :bottom)
(setf (capi:layout-y-adjust row) :top)