API ReferenceEditor
ToolButtonclass
A button that shows as an icon and tries to keep itself square.
Constructors1
Showing 1 constructors
public ToolButton(string name, string icon, Editor.Widget parent)
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
| icon | string | — |
| parent | Widget | — |
No results match this filter.
Methods3
Showing 3 methods
protected virtual void DoLayout()
Returns:
void—protected virtual void OnMousePress(Editor.MouseEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | MouseEvent | — |
Returns:
void—protected virtual void OnPaint()
Returns:
void—No results match this filter.
Properties4
Showing 4 properties
public bool Editor.ToolButton.Checked { get; set; }
Whether the tool button is currently checked or not.
Returns:
bool—public string Editor.ToolButton.Icon { get; set; }
Icon for the tool button.
Returns:
string—public string Editor.ToolButton.IconChecked { get; set; }
Icon to display when the `Editor.ToolButton.Checked` is .
Returns:
string—public bool Editor.ToolButton.IsToggle { get; set; }
Whether the button is toggle-able or not.
Returns:
bool—No results match this filter.