FormWidget.FormWidget

Undocumented in source.
  1. class FormWidget
    template FormWidget(T)
  2. class FormWidget
  3. class FormWidget
  4. class FormWidget

Constructors

this
this(Widget p)
Undocumented in source.

Members

Aliases

editable
alias editable = enabled
Undocumented in source.
value
alias value = checked
Undocumented in source.

Inherited Members

From CheckBox

caption
string caption()

The caption of this CheckBox.

caption
void caption(string caption)

Sets the caption of this CheckBox.

checked
bool checked()

Whether or not this CheckBox is currently checked.

checked
void checked(bool checked)

Sets whether or not this CheckBox is currently checked.

pushed
bool pushed()

Whether or not this CheckBox is currently pushed. See nanogui.CheckBox.mPushed.

pushed
void pushed(bool pushed)

Sets whether or not this CheckBox is currently pushed. See nanogui.CheckBox.mPushed.

callback
void delegate(bool) callback()

Returns the current callback of this CheckBox.

callback
void callback(void delegate(bool) callback)

Sets the callback to be executed when this CheckBox is checked / unchecked.

mouseButtonEvent
bool mouseButtonEvent(Vector2i p, MouseButton button, bool down, int modifiers)

The mouse button callback will return true when all three conditions are met:

preferredSize
Vector2i preferredSize(NanoContext ctx)

The preferred size of this CheckBox.

draw
void draw(NanoContext ctx)

Draws this CheckBox.

mCaption
string mCaption;

The caption text of this CheckBox.

mPushed
bool mPushed;

Internal tracking variable to distinguish between mouse click and release. nanogui.CheckBox.mCallback is only called upon release. See nanogui.CheckBox.mouseButtonEvent for specific conditions.

mChecked
bool mChecked;

Whether or not this CheckBox is currently checked or unchecked.

mCallback
void delegate(bool) mCallback;

The function to execute when nanogui.CheckBox.mChecked is changed.

Meta