Checkbox

A basic checked or not checked box with an attached label.

More...

Constructors

this
this(string label, Widget parent)
this(string label, Appearance appearance, Widget parent)

Members

Aliases

checked
alias checked = isChecked

Just an alias because I keep typing checked out of web habit.

Enums

Appearance
enum Appearance

Changes the look and may change the ideal size of the widget without changing its behavior. The precise look is platform-specific.

Mixins

__anonymous
mixin Emits!(ChangeEvent!bool)

Emits a change event with the checked state

Detailed Description

Please note that the ampersand (&) character gets special treatment as described on this page https://docs.microsoft.com/en-us/windows/win32/menurc/common-control-parameters?redirectedfrom=MSDN

Use double-ampersand, "First && Second", to be displayed as a single one, "First & Second".

Meta

History

The ampersand behavior was always the case on Windows, but it wasn't until June 15, 2021 when Linux was changed to match it and the documentation updated to reflect it.