Class Index | File Index

Classes


Class bHive.Clip


Version all.

Defined in: bHive-1.0.7.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
bHive.Clip(construct, parentObject)
Creates a new bHive.Clip instance
Method Summary
Method Attributes Method Name and Description
 
add(subObject)
Adds subObject to the Clip as child member
 
addEventListener(sEvent, fCallback)
Adds an event listener to the Clip object
 
draw(parentX, parentY)
Draws object to canvas
 
Returns the height of a Clip object
 
Returns the width of a Clip object
Class Detail
bHive.Clip(construct, parentObject)
Creates a new bHive.Clip instance
Parameters:
construct
parentObject
Method Detail
add(subObject)
Adds subObject to the Clip as child member
Bitmap = engine.createBitmap({constructor});Clip = engine.createClip({constructor});Clip.add(Bitmap);
Parameters:
{Object} subObject
Child object

addEventListener(sEvent, fCallback)
Adds an event listener to the Clip object
Clip = engine.createClip({constructor});Clip.addEventListener('onclick', myFunction);
Parameters:
{String} sEvent
Name of event
{Function} fCallback
Function to call when event is fired

draw(parentX, parentY)
Draws object to canvas
Bitmap = engine.createBitmap({constructor});Clip = engine.createClip({constructor});Clip.add(Bitmap); Clip.draw();
Parameters:
{Int} parentX
{Int} parentY

{Int} height()
Returns the height of a Clip object
Returns:
{Int} Height of object in pixels

{Int} width()
Returns the width of a Clip object
Returns:
{Int} Width of object in pixels

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 25 2011 15:15:50 GMT+0400 (GST)