Class enchant.widget.Ninepatch
- Defined in: widget.enchant.js
- Extends enchant.Surface
Constructor Attributes | Constructor Name and Description |
---|---|
enchant.widget.Ninepatch(width, height)
9patchに対応したサーフェース.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
enchant.widget.Ninepatch.height
|
<static> |
enchant.widget.Ninepatch.src
9patchのソース.
|
<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)
指定したサイズで作りなおす.
|
- 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)
9patchに対応したサーフェース.
コンテンツ領域の設定には対応していない.
- Parameters:
- {Number} width
- Surfaceの横幅.
- {Number} height
- Surfaceの高さ.
Field Detail
<static>
enchant.widget.Ninepatch.height
<static>
enchant.widget.Ninepatch.src
9patchのソース.
<static>
enchant.widget.Ninepatch.width
Method Detail
-
<static> enchant.widget.Ninepatch.resize(width, height)指定したサイズで作りなおす.
- Parameters:
- {Number} width
- 新しい横幅.
- {Number} height
- 新しい高さ.