Class PaintTools.pencil
The drawing pencil.
Defined in: tools.js.
Constructor Attributes | Constructor Name and Description |
---|---|
PaintTools.pencil(app)
|
Field Attributes | Field Name and Description |
---|---|
<private> <inner> |
Tells if the user has started the drawing operation or not.
|
Method Attributes | Method Name and Description |
---|---|
mousedown(ev)
Initialize the drawing operation.
|
|
mousemove(ev)
Perform the drawing operation, while the user moves the mouse.
|
|
mouseup(ev)
End the drawing operation, once the user releases the mouse button.
|
Class Detail
PaintTools.pencil(app)
- Parameters:
- {Painter} app
- Reference to the main paint application object.
Field Detail
<private> <inner>
{Boolean}
started
Tells if the user has started the drawing operation or not.
Method Detail
mousedown(ev)
Initialize the drawing operation.
- Parameters:
- {Event} ev
- The DOM Event object.
mousemove(ev)
Perform the drawing operation, while the user moves the mouse.
- Parameters:
- {Event} ev
- The DOM Event object.
mouseup(ev)
End the drawing operation, once the user releases the mouse button.
- Parameters:
- {Event} ev
- The DOM Event object.