checkbox
This type represents a checkbox control.
__call
Constructs the checkbox.
Arguments
Name
Type
Description
Returns
Type
Description
checkbox
Checkbox instance.
Example
local cb = gui.checkbox(gui.control_id('my_id'));
get_value
Returns checkbox' value.
Arguments
None.
Returns
Type
Description
Value data.
Example
local val = cb:get_value():get();
set_value
Sets checkbox' value.
Arguments
Name
Type
Description
val
bool
New value.
Returns
Nothing.
Example
cb:set_value(true);
Last updated