CheckBox.this

Adds a CheckBox to the specified parent.

class CheckBox
this
(,
const string caption
,
void delegate
(
bool
)
callback
)

Parameters

parent Widget

The Widget to add this CheckBox to.

caption string

The caption text of the CheckBox (default "Untitled").

callback void delegate
(
bool
)

If provided, the callback to execute when the CheckBox is checked or unchecked. Default parameter function does nothing. See nanogui.CheckBox.mPushed for the difference between "pushed" and "checked".

Meta