s&box docs

public class Editor.Button : Editor.Widget

A simple button widget.

Broader workflow and conceptual references connected to this API.

Constructors

Showing 3 constructors

Methods

Showing 7 methods

public Editor.Pixmap GetIcon()

protected virtual void OnClicked()

protected virtual void OnPaint()

protected virtual void OnPressed()

protected virtual void OnReleased()

protected virtual void OnToggled()

public void SetIcon(Editor.Pixmap pixmap)

Sets an icon for the button via a raw image.

Properties

Showing 5 properties

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

Sets an icon for the button via a filepath.

public bool Editor.Button.IsChecked { get; set; }

Whether this button is checked. See `Editor.Button.IsToggle`.

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

Whether this button can be toggled on or off. See `Editor.Button.IsChecked`.

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

Text on the button.

public Color Editor.Button.Tint { get; set; }

The tint of the button color

Metadata

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

On this page