class openfl.gui.CheckBox extends Control

Available on all platforms

Instance Fields

var checked:Bool

Gets or sets the check state of this check box.

var indeterminate:Bool

Gets whether or not the check box is partially checked, often used with CheckBoxNode.

var text:String

Gets or sets the text value of this check box.

function new(value:String, ?checked:Bool = false, ?font:String = 'Arial', ?fontStyle:FontStyle = null, ?embedded:Bool = false):Void

An option selector.

value

The text value of the check box.

checked

The default check state.

font

The embedded resource or device font to use.

fontStyle

The style of the font, including size, color and underline.

embedded

Whether to use embedded resources for the font.

function onStyleChanged(style:Style):Void