Version: 4.1.2
3 Canvas
Mixins that implement this interface initialize the
background color of the canvas to the value of the
'framework:basic-canvas-background preference.
Adds a callback so that when that preference is modified,
the background color changes.
This class is part of the delegate window implementation.
Provides an implementation of
canvas:delegate<%>.
Overrides on-superwindow-show in window<%>.
Notifies the delegate window when the original window is
visible. When invisible, the blue highlighting is erased.
Overrides on-focus in editor-canvas%.
sets the canvas that the frame displays info about.
Overrides set-editor in editor-canvas%.
Calls
update-info
to update the frame’s info panel.
Any
canvas%
that matches this interface will automatically
resize selected snips when it’s size changes. Use
add-tall-snip
and
add-wide-snip
to specify which snips should be resized.
Recalculates the sizes of the wide snips.
Snips passed to this method will be resized when the canvas’s size
changes. Their width will be set so they take up all of the space
from their lefts to the right edge of the canvas.
Snips passed to this method will be resized when the canvas’s size
changes. Their height will be set so they take up all of the space
from their tops to the bottom of the canvas.
This canvas maintains a list of wide and tall snips and adjusts their
heights and widths when the canvas’s size changes.
The result of this mixin uses the same initialization arguments as the
mixin’s argument.
Overrides on-size in editor-canvas%.
Adjusts the sizes of the marked snips.
See
add-wide-snip
and
add-tall-snip.