All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

set-layout-ratios-keeping-fixed Function

Summary

Sets the ratios of a row-layout or column-layout keeping :fixed items.

Package

capi

Signature

set-layout-ratios-keeping-fixed row-or-column-layout ratios

Arguments
row-or-column-layout
ratios
A list.
Description

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.

Examples
(example-edit-file "capi/layouts/set-layout-ratios-keeping-fixed")
See also

column-layout
row-layout
set-layout-description-and-ratios
grid-layout-get-sizes


CAPI User Guide and Reference Manual (Macintosh version) - 18 Feb 2025 15:33:09