File hp/util/MOAIPropUtil.lua
Functions
M.getAlpha (prop, MOAIProp) | Returns the alpha. |
M.getBlue (prop, MOAIProp) | Returns the blue. |
M.getBottom (prop) | Returns the position of the bottom. |
M.getCenterPos (prop) | Returns the position of the center. |
M.getColor (prop, MOAIProp) | Returns the color. |
M.getGreen (prop, MOAIProp) | Returns the green. |
M.getHeight (prop, MOAIProp) | Returns the height. |
M.getLeft (prop) | Returns the position of the left. |
M.getPos (prop) | Returns the position of the left and top. |
M.getRed (prop, MOAIProp) | Returns the red. |
M.getRight (prop) | Returns the position of the right. |
M.getSize (prop, MOAIProp) | Returns the width and height. |
M.getTop (prop) | Returns the position of the top. |
M.getWidth (prop, MOAIProp) | Returns the width. |
M.hide (prop, prop.) | Sets to false visible. |
M.setAlpha (prop, a, MOAIProp, alpha.) | Sets the alpha. |
M.setBlue (prop, blue, MOAIProp, blue.) | Sets the blue. |
M.setBottom (prop, bottom) | Sets the position of the bottom. |
M.setCenterPos (prop, x, y) | Sets the position of the centeX and centerY. |
M.setGreen (prop, green, MOAIProp, green.) | Sets the green. |
M.setLeft (prop, left) | Sets the position of the left. |
M.setPos (prop, left, top) | Sets the position of the left and top. |
M.setRed (prop, red, MOAIProp) | Sets the red. |
M.setRight (prop, right) | Sets the position of the right. |
M.setTop (prop, top) | Sets the position of the top. |
M.show (prop, prop.) | Sets to true visible. |
Tables
MOAIPropUtil | This is a utility class for MOAIProp. |
Functions
- M.getAlpha (prop, MOAIProp)
-
Returns the alpha.
Parameters
- prop:
- MOAIProp: instance.
Return value:
alpha - M.getBlue (prop, MOAIProp)
-
Returns the blue.
Parameters
- prop:
- MOAIProp: instance.
Return value:
blue - M.getBottom (prop)
-
Returns the position of the bottom.
Parameters
- prop: MOAIProp instance.
Return value:
Position of the bottom. - M.getCenterPos (prop)
-
Returns the position of the center.
Parameters
- prop: MOAIProp instance.
Return value:
centerX, centerY. - M.getColor (prop, MOAIProp)
-
Returns the color.
Parameters
- prop:
- MOAIProp: instance.
Return value:
red, green, blue, alpha - M.getGreen (prop, MOAIProp)
-
Returns the green.
Parameters
- prop:
- MOAIProp: instance.
Return value:
green - M.getHeight (prop, MOAIProp)
-
Returns the height.
Parameters
- prop:
- MOAIProp: instance.
Return value:
height - M.getLeft (prop)
-
Returns the position of the left.
Parameters
- prop: MOAIProp instance.
Return value:
Position of the left. - M.getPos (prop)
-
Returns the position of the left and top.
Parameters
- prop: MOAIProp instance.
Return value:
Position of the left and top. - M.getRed (prop, MOAIProp)
-
Returns the red.
Parameters
- prop:
- MOAIProp: instance.
Return value:
red - M.getRight (prop)
-
Returns the position of the right.
Parameters
- prop: MOAIProp instance.
Return value:
Position of the right. - M.getSize (prop, MOAIProp)
-
Returns the width and height.
Parameters
- prop:
- MOAIProp: instance.
Return value:
width, height - M.getTop (prop)
-
Returns the position of the top.
Parameters
- prop: MOAIProp instance.
Return value:
Position of the top. - M.getWidth (prop, MOAIProp)
-
Returns the width.
Parameters
- prop:
- MOAIProp: instance.
Return value:
width - M.hide (prop, prop.)
-
Sets to false visible.
Parameters
- prop:
- prop.:
- M.setAlpha (prop, a, MOAIProp, alpha.)
-
Sets the alpha.
Parameters
- prop:
- a:
- MOAIProp: instance.
- alpha.:
- M.setBlue (prop, blue, MOAIProp, blue.)
-
Sets the blue.
Parameters
- prop:
- blue:
- MOAIProp: instance.
- blue.:
- M.setBottom (prop, bottom)
-
Sets the position of the bottom.
Parameters
- prop: MOAIProp instance.
- bottom: Position of the bottom.
- M.setCenterPos (prop, x, y)
-
Sets the position of the centeX and centerY.
Parameters
- prop: MOAIProp
- x: Position of the centerX.
- y: Position of the centerY.
- M.setGreen (prop, green, MOAIProp, green.)
-
Sets the green.
Parameters
- prop:
- green:
- MOAIProp: instance.
- green.:
- M.setLeft (prop, left)
-
Sets the position of the left.
Parameters
- prop: MOAIProp instance.
- left: Position of the left.
- M.setPos (prop, left, top)
-
Sets the position of the left and top.
Parameters
- prop: MOAIProp
- left: Position of the left.
- top: Position of the top.
- M.setRed (prop, red, MOAIProp)
-
Sets the red.
Parameters
- prop:
- red:
- MOAIProp: instance.
- M.setRight (prop, right)
-
Sets the position of the right.
Parameters
- prop: MOAIProp instance.
- right: Position of the right.
- M.setTop (prop, top)
-
Sets the position of the top.
Parameters
- prop: MOAIProp instance.
- top: Position of the top.
- M.show (prop, prop.)
-
Sets to true visible.
Parameters
- prop:
- prop.: