Class Index | File Index

Classes


Class Canvas

Represents a wrap object for a canvas HTML5 element.
Defined in: benchgl.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Canvas(canvas, options)
Creates a new Canvas.
Method Summary
Method Attributes Method Name and Description
 
Handles the 'keydown' event, if supplied.
 
Handles the 'keyup' event, if supplied.
 
Handles the 'mousedown' event, if supplied.
 
Handles the 'mousemove' event, if supplied.
 
Handles the 'mouseup' event, if supplied.
 
Handles the 'mousewheel' event, if supplied.
Class Detail
Canvas(canvas, options)
Creates a new Canvas.
Parameters:
{HTMLCanvasElement} canvas
The canvas element.
options
Method Detail
onKeyDown(e)
Handles the 'keydown' event, if supplied.
Parameters:
{Event} e
Information about the event occured.

onKeyUp(e)
Handles the 'keyup' event, if supplied.
Parameters:
{Event} e
Information about the event occured.

onMouseDown(e)
Handles the 'mousedown' event, if supplied.
Parameters:
{Event} e
Information about the event occured.

onMouseMove(e)
Handles the 'mousemove' event, if supplied.
Parameters:
{Event} e
Information about the event occured.

onMouseUp(e)
Handles the 'mouseup' event, if supplied.
Parameters:
{Event} e
Information about the event occured.

onMouseWheel(e)
Handles the 'mousewheel' event, if supplied.
Parameters:
{Event} e
Information about the event occured.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu May 19 2011 00:47:48 GMT+0200 (CEST)