1 CAPI Reference Entries
pane-adjusted-position
generic function calculates how to place a pane correctly within a layout, given a minimum and maximum position.
pane-adjusted-position pane adjust min-position max-position &key &allow-other-keys
pane-adjusted-offset
, and the default method actually callspane-adjusted-offset
with the gap between the two positions, and then adds on the minimum position to get the new position.
:top
:bottom
:left
:right
:center
grid-layout
allows adjust to be a list of adjust values, and then passes the offset into this list as an additional keyword. It is preferable to add new methods topane-adjusted-offset
as these changes will be seen by the default method ofpane-adjusted-position
.
(setq button-panel (make-instance 'capi:button-panel :items '(1 2 3)))(capi:pane-adjusted-position button-panel :center 100 200)
(capi:pane-adjusted-position button-panel :right 100 200)
(capi:pane-adjusted-position button-panel :left 100 200)
layout
x-y-adjustable-layout
Generated with Harlequin WebMaker