Class enchant.widget.Ninepatch
- Defined in: widget.enchant.js
- Extends enchant.Surface
Constructor Attributes | Constructor Name and Description |
---|---|
enchant.widget.Ninepatch(width, height)
Surface corresponding to 9patch.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
enchant.widget.Ninepatch.height
|
<static> |
enchant.widget.Ninepatch.src
9patch source.
|
<static> |
enchant.widget.Ninepatch.width
|
- Fields borrowed from class enchant.Surface:
- context
Method Summary
Method Attributes | Method Name and Description |
---|---|
<static> |
enchant.widget.Ninepatch.resize(width, height)
Recreate set size.
|
- Methods borrowed from class enchant.Surface:
- clear
- clone
- draw
- getPixel
- setPixel
- toDataURL
- Methods borrowed from class enchant.EventTarget:
- addEventListener
- clearEventListener
- dispatchEvent
- on
- removeEventListener
Class Detail
enchant.widget.Ninepatch(width, height)
Surface corresponding to 9patch.
Does not respond to settings in content area.
- Parameters:
- {Number} width
- Surface width.
- {Number} height
- Surface height.
Field Detail
<static>
enchant.widget.Ninepatch.height
<static>
enchant.widget.Ninepatch.src
9patch source.
<static>
enchant.widget.Ninepatch.width
Method Detail
-
<static> enchant.widget.Ninepatch.resize(width, height)Recreate set size.
- Parameters:
- {Number} width
- New width.
- {Number} height
- New height.