File hp/display/NinePatch.lua
Functions
M:copyParams (params) | Set the parameter setter function. |
M:getBounds () | Returns the boundary position. |
M:getScl () | Returns a virtual scale. TODO:Can not cope with if you want to move dynamically. |
M:init (params) | The constructor. |
M:seekScl (x, y, z, sec, mode) | Seek a virtual scale. TODO:Does not work |
M:setScl (x, y, z) | Sets the virtual scale. Value to be set will vary. TODO:Can not cope with if you want to move dynamically. |
M:setSize (width, height) | Sets the size. When you set the size, set by calculating the scale. |
M:setStretchColumns (col1, col2, col3) | Sets the ratio of the columns. |
M:setStretchRows (row1, row2, row3, col1, col2, col3) | Sets the ratio of the rows. |
Tables
NinePatch | NinePatch class is the scale is partially configured. |
Functions
- M:copyParams (params)
-
Set the parameter setter function.
Parameters
-
params: Parameter is set to Object.
-
params: Parameter is set to Object.
- M:getBounds ()
-
Returns the boundary position.
Return value:
xMin, yMin, zMin, xMax, yMax, zMax - M:getScl ()
-
Returns a virtual scale.
TODO:Can not cope with if you want to move dynamically.
Return value:
scaleX, scaleY, scaleZ. - M:init (params)
-
The constructor.
Parameters
-
params: (option)Parameter is set to Object.
-
params: (option)Parameter is set to Object.
- M:seekScl (x, y, z, sec, mode)
-
Seek a virtual scale.
TODO:Does not workParameters
- x: X of scale.
- y: Y of scale.
- z: Z of scale.
- sec: seconds.
- mode: MOAIEaseType.
Return value:
MOAIEase - M:setScl (x, y, z)
-
Sets the virtual scale.
Value to be set will vary.
TODO:Can not cope with if you want to move dynamically.Parameters
- x: scaleX.
- y: scaleY.
- z: scaleZ.
- M:setSize (width, height)
-
Sets the size.
When you set the size, set by calculating the scale.Parameters
- width: width.
- height: height.
- M:setStretchColumns (col1, col2, col3)
-
Sets the ratio of the columns.
Parameters
- col1: Fixed ratio of the column.
- col2: Dynamic ratio of the column.
- col3: Fixed ratio of the column.
- M:setStretchRows (row1, row2, row3, col1, col2, col3)
-
Sets the ratio of the rows.
Parameters
- row1:
- row2:
- row3:
- col1: Fixed ratio of the row.
- col2: Dynamic ratio of the row.
- col3: Fixed ratio of the row.