API ReferenceEditor
public class Editor.ToolButton : Editor.Widget
A button that shows as an icon and tries to keep itself square.
Constructors
Showing 1 constructors
public ToolButton(string name, string icon, Editor.Widget parent)
No results match this filter.
Methods
Showing 3 methods
protected virtual void DoLayout()
protected virtual void OnMousePress(Editor.MouseEvent e)
protected virtual void OnPaint()
No results match this filter.
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.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Editor |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Editor.ToolButton |