Class: Toolbar

Toolbar()

Wrapper class around the left column on the editor page. Used to get and set what the currently selected tool is, as well as give Drawable info some pointers on how to initialize themselves.

Constructor

new Toolbar()

Source:

Methods

getCurTool() → {Number}

Gives an enumeration for Canvas object to choose what to do on a click event.
Source:
Returns:
An enumeration for the currently selected tool.
Type
Number

getToolInfo() → {Map.<string, Object>}

Gives a dictionary of values for Drawable objects to initialize themselves with
Source:
Returns:
Mapping of values to follow
Type
Map.<string, Object>

setTool(tool)

Sets the currently selected tool
Parameters:
Name Type Description
tool Number The tool to select
Source: