Module: lib-widget.checkbox

Create a new checkbox widget

A togglable checkbox

-- checkbox that is 20 pixels high
local checkbox = lib-widget.checkbox(dpi(20))

checkbox

Class Hierarchy

  • lib-widget.checkbox

Info:

  • Copyright: 2020 Tom Meyers
  • Author: Tom Meyers

Static module functions

lib-widget.checkbox.checkbox (size) -> widget Create a new checkbox widget
lib-widget.checkbox.update () Update the checked state of the checkbox


Static module functions

lib-widget.checkbox.checkbox (size) -> widget
Create a new checkbox widget

Parameters:

  • size number The height of the checkbox

Returns:

    widget The checkbox widget

Usage:

    -- This will create a checkbox that is 20 pixels high
    -- checkbox that is 20 pixels high
    local checkbox = lib-widget.checkbox(dpi(20))
lib-widget.checkbox.update ()
Update the checked state of the checkbox

Usage:

    -- Set the checkbox to 'true'
     checkbox.update(true)
generated by LDoc 1.4.6 Build with 💜 By F0xedb Last updated 2021-05-21 03:30:15