Class enchant.widget.Button
- Defined in: widget.enchant.js
- Extends enchant.widget.EntityGroup
Constructor Attributes | Constructor Name and Description |
---|---|
enchant.widget.Button(Button)
Button.
|
Field Attributes | Field Name and Description |
---|---|
Button content
|
|
height of button
|
|
Button background.
|
|
Background when button is pushed.
|
|
width of button
|
- Fields borrowed from class enchant.Entity:
- backgroundColor, buttonMode, buttonPressed, compositeOperation, debugColor, opacity, originX, originY, rotation, scaleX, scaleY, touchEnabled, visible
- Fields borrowed from class enchant.Node:
- age, parentNode, scene, x, y
Method Summary
- Methods borrowed from class enchant.Entity:
- disableCollection
- enableCollection
- intersect
- rotate
- scale
- within
- Methods borrowed from class enchant.Node:
- moveBy
- moveTo
- Methods borrowed from class enchant.EventTarget:
- addEventListener
- clearEventListener
- dispatchEvent
- on
- removeEventListener
Class Detail
enchant.widget.Button(Button)
Button.
Set normal background and background when pushed down.
- Parameters:
- {*} Button
- content.
Field Detail
content
Button content
{number}
height
height of button
image
Button background.
pushedimage
Background when button is pushed.
{number}
width
width of button