OOF2: The Manual

Name

OOF.LayerEditor.LayerSet.New — Create a new layer set.

Synopsis

OOF.LayerEditor.LayerSet.New(window)

Details

  • Parent Menu: OOF.LayerEditor.LayerSet
  • Callback: function newLayerSetCB in module ooflib.common.IO.layereditor
  • Parameters:

    window
    Which window. Type: A character string.

Description

Make a new LayerSet for drawing something in a Graphics window. This really just resets the Layer Editor, and sets its Destination to the specified Graphics window. It doesn't affect the Graphics window until the LayerSet is sent to the window.

Because the Send overwrites the currently selected Layer in a Graphics window, the New command deselects all Layers in the Destination window.

In the GUI, this command can be invoked either from the New... menu item in the Layer menu in any Graphics window, or from the New... button in the Layer Editor window itself.