s&box docs

public class Editor.Checkbox : Editor.Widget

A generic checkbox widget.

Broader workflow and conceptual references connected to this API.

Constructors

Showing 3 constructors

Methods

Showing 5 methods

protected virtual void OnClicked()

Called when checkbox was clicked, on release.

protected virtual void OnPressed()

Called when checkbox was pressed down.

protected virtual void OnReleased()

Called when checkbox was released.

protected virtual void OnStateChanged(Editor.CheckState state)

Called when the `Editor.Checkbox.State` of the checkbox states.

protected virtual void OnToggled()

Called when checkbox gets toggled on or off.

Properties

Showing 5 properties

public string Editor.Checkbox.Icon { get; set; }

Name of a material icon to be drawn in front of the checkbox label.

public Editor.CheckState Editor.Checkbox.State { get; set; }

Current state of this checkbox.

public string Editor.Checkbox.Text { get; set; }

The checkbox label.

public bool Editor.Checkbox.TriState { get; set; }

Enable the third state, the half checked half not checked state. Disabled by default

public bool Editor.Checkbox.Value { get; set; }

Whether the checkbox is checked or not.

Metadata

FieldValue
NamespaceEditor
Typeclass
AssemblySandbox.Tools
Doc IDT:Editor.Checkbox

On this page