Generic Function
pane-adjusted-offset generic function calculates the offset required to place a pane correctly in a layout.
pane-adjusted-offset pane adjust available-size actual-size
&key &allow-other-keys
x-y-adjustable-layout to interpret the values ofx-adjust andy-adjust. Typically the value of adjust will be one of: :topPlace the pane at the top of the region.
:bottomPlace the pane at the bottom of the region.
:leftPlace the pane at the left of the region.
:rightPlace the pane at the right of the region.
:centerPlace the pane in the center of the region.
grid-layout allows adjust to be a list of adjust values, and then passes the offset into this list as an additional keyword.
(setq button-panel (make-instance 'capi:button-panel
:items '(1 2 3)))
(capi:pane-adjusted-offset button-panel
:center 200 100)
(capi:pane-adjusted-offset button-panel
:left 200 100)
(capi:pane-adjusted-offset button-panel
:right 200 100)
100
layoutx-y-adjustable-layout