# `class WMEdit extends Sprite`

Available on all platforms

Edit Window

## Instance Fields

### `var bgAlpha:Float`

background alpha coefficient

### `var bgColor:Int`

background color

### `var fontcolorbutton:Int`

font colors for buttons

### `var fontcolormain:Int`

font color for main (xml) text

### `var fontname:String`

font name

### `var fontsizebutton:Float`

font size for buttons

### `var fontsizemain:Float`

font size for main text

### `var ratio_cancel_pos_x:Float`

Cancel button position of x direction in ratio

### `var ratio_cancel_pos_y:Float`

Cancel button position of y direction in ratio

### `var ratio_ok_pos_x:Float`

OK button position of x direction in ratio

### `var ratio_ok_pos_y:Float`

OK button position of y direction in ratio

### `var ratio_windowpos_x:Float`

origin of textfield position for x direction, in relative manner

### `var ratio_windowpos_y:Float`

origin of textfield position for y direction, in relative manner

### `var ratio_windowsize_x:Float`

textfield window size ratio for x direction

### `var ratio_windowsize_y:Float`

textfield window size ratio for y direction

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

Constructor. Parent Watermelon must be given by `melon`.

Default values:

- bgColor: 0x00FF00
- bgalpha: 0.5
- fontname: "Arial"
- fontsizemain: 12
- fontsizebutton: 16
- fontcolormain: 0x000000
- fontcolorbutton: 0x000000
- ratiowindowsizex: 0.7
- ratiowindowsizey: 0.7
- ratiowindowposx: 0.1
- ratiowindowposy: 0.1
- ratiookpos_x: 0.6
- ratiookpos_y: 0.85
- ratiocancelpos_x: 0.7
- ratiocancelpos_y: 0.85

### `function draw():WMEdit`

draw edit window

### `function get_bgAlpha():Float`

getter of `bgAlpha`

### `function get_bgColor():Int`

getter of `bgColor`

### `function get_fontcolorbutton():Int`

getter for `fontcolorbutton`

### `function get_fontcolormain():Int`

getter of `fontcolormain`

### `function get_fontname():String`

getter of `fontname`

### `function get_fontsizebutton():Float`

getter of `fontsizebutton`

### `function get_fontsizemain():Float`

getter of `fontsizemain`

### `function get_ratio_cancel_pos_x():Float`

getter of `ratio_cancel_pos_x`

### `function get_ratio_cancel_pos_y():Float`

getter of `ratio_cancel_pos_y`

### `function get_ratio_ok_pos_x():Float`

getter of `ratio_ok_pos_x`

### `function get_ratio_ok_pos_y():Float`

getter of `ratio_ok_pos_y`

### `function get_ratio_windowpos_x():Float`

getter of `ratio_windowpos_x`

### `function get_ratio_windowpos_y():Float`

getter of `ratio_windowpos_y`

### `function get_ratio_windowsize_x():Float`

getter for `ratio_windowsize_x`

### `function get_ratio_windowsize_y():Float`

getter for `ratio_windowsize_y`

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

setter of `bgAlpha`

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

setter of `bgColor`

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

setter for `fontcolorbutton`

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

setter of `fontcolormain`

### `function set_fontname(f:String):String`

setter of `fontname`

### `function set_fontsizebutton(s:Float):Float`

setter of `fontsizebutton`

### `function set_fontsizemain(s:Float):Float`

setter of `fontsizemain`

### `function set_ratio_cancel_pos_x(r:Float):Float`

setter of `ratio_cancel_pos_x`

### `function set_ratio_cancel_pos_y(r:Float):Float`

setter of `ratio_cancel_pos_y`

### `function set_ratio_ok_pos_x(r:Float):Float`

setter of `ratio_ok_pos_x`

### `function set_ratio_ok_pos_y(r:Float):Float`

setter of `ratio_ok_pos_y`

### `function set_ratio_windowpos_x(r:Float):Float`

setter of `ratio_windowpos_x`

### `function set_ratio_windowpos_y(r:Float):Float`

setter of `ratio_windowpos_y`

### `function set_ratio_windowsize_x(r:Float):Float`

setter for `ratio_windowsize_x`

### `function set_ratio_windowsize_y(r:Float):Float`

setter for `ratio_windowsize_y`