Sets the ratios of a row-layout or column-layout keeping :fixed
items.
capi
set-layout-ratios-keeping-fixed row-or-column-layout ratios
row-or-column-layout⇩ | |
ratios⇩ |
A list. |
The function set-layout-ratios-keeping-fixed
performs the equivalent operation of (setf layout-ratios) on row-or-column-layout with ratios, but afterwards it checks if the previous ratios had any :fixed
item, and if so it replaces the corresponding item in the new ratios with :fixed
.
set-layout-ratios-keeping-fixed
is useful when you want to change the sizes and the ratios of the panes in the layout, but you want the fixed panes to remain fixed size when the user resize the layout afterwards. Using (setf layout-ratios) would cause the fixed panes to become variable sized.
(example-edit-file "capi/layouts/set-layout-ratios-keeping-fixed")
column-layout
row-layout
set-layout-description-and-ratios
grid-layout-get-sizes
CAPI User Guide and Reference Manual (Windows version) - 18 Feb 2025 15:35:34