s&box docs

public class Editor.ToolButton : Editor.Widget

A button that shows as an icon and tries to keep itself square.

Constructors

Showing 1 constructors

Methods

Showing 3 methods

protected virtual void DoLayout()

protected virtual void OnMousePress(Editor.MouseEvent e)

protected virtual void OnPaint()

Properties

Showing 4 properties

public bool Editor.ToolButton.Checked { get; set; }

Whether the tool button is currently checked or not.

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

Icon for the tool button.

public string Editor.ToolButton.IconChecked { get; set; }

Icon to display when the `Editor.ToolButton.Checked` is .

public bool Editor.ToolButton.IsToggle { get; set; }

Whether the button is toggle-able or not.

Metadata

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

On this page