# `class WMController extends Sprite`

Available on all platforms

Controller or Player

Container of play/stop, enlarge/shrink buttons shown in the bottom of the window.

## Instance Fields

### `var bgAlpha:Float`

background alpha

### `var bgColor:Int`

background color

### `var buttonAlpha:Float`

button alpha; common for all buttons

### `var buttonColor:Int`

button color; this value is used for all the buttons

### `var buttonHeight:Int`

height of buttons

### `var buttonWidth:Int`

button width

### `var lineWidth:Float`

line width

### `var margin:Int`

button margin

### `function new(w:Watermelon):Void`

Constructor; the parent manager class `w` msut be given Default value of variables are assigned here.

- bgColor: 0xFFFFFF (white)
- bgAlpha: 0.0 (transparent)
- buttonColor: 0x888888 (gray)
- buttonAlpha: 1.0 (opaque)
- buttonWidth: 20 (in pixel)
- buttonHeight: 20 (in pixel)
- margin: 2 (in pixel)
- linewidth: 3 (in pixel)

### `function draw():WMController`

draw buttons

### `function enabled():Bool`

check whether the controller is created

### `function get_bgAlpha():Float`

getter of `bgAlpha`

### `function get_bgColor():Int`

getter of `bgColor`

### `function get_buttonAlpha():Float`

getter of `buttonAlpha`

### `function get_buttonColor():Int`

getter of `buttonColor`

### `function get_buttonHeight():Int`

getter for `buttonHeight`

### `function get_buttonWidth():Int`

getter of `buttonWidth`

### `function get_lineWidth():Float`

getter of `lineWidth`

### `function get_margin():Int`

getter of `margin`

### `function set_bgAlpha(a:Float):Float`

setter of `bgAlpha`

### `function set_bgColor(c:Int):Int`

setter of `bgColor`

### `function set_buttonAlpha(a:Float):Float`

setter of `buttonAlpha`

### `function set_buttonColor(c:Int):Int`

setter of `buttonColor`

### `function set_buttonHeight(h:Int):Int`

setter for `buttonHeight`

### `function set_buttonWidth(w:Int):Int`

setter of `buttonWidth`

### `function set_lineWidth(w:Float):Float`

setter of `lineWidth`

### `function set_margin(m:Int):Int`

setter of `margin`