The size ratios between the layout's children.
The horizontal adjustment for each child.
The gap between each child.
The column-layout
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 keywords y-ratios
, x-adjust
, y-gap
and y-uniform-size-p
.
(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)
:process nil))
(setf (capi:layout-x-adjust column) :right)
(setf (capi:layout-x-adjust column) :left)
(setf (capi:layout-x-adjust column) :center)