API ReferenceEditor
public class Editor.IconButton : Editor.Widget
Constructors
Showing 1 constructors
public IconButton(string icon, System.Action onClick = null, Editor.Widget parent = null)
Parameters
onClick: Default: nullparent: Default: null
No results match this filter.
Methods
Showing 3 methods
protected virtual void OnMouseClick(Editor.MouseEvent e)
protected virtual void OnPaint()
protected virtual Vector2 SizeHint()
No results match this filter.
Properties
Showing 10 properties
public Color Editor.IconButton.Background { get; set; }
public Color Editor.IconButton.BackgroundActive { get; set; }
public Color Editor.IconButton.Foreground { get; set; }
public Color Editor.IconButton.ForegroundActive { get; set; }
public string Editor.IconButton.Icon { get; set; }
public float Editor.IconButton.IconSize { get; set; }
public bool Editor.IconButton.IsActive { get; set; }
If IsToggle is true, this is toggled on press
public bool Editor.IconButton.IsToggle { get; set; }
If true we will toggle IsActive automatically
public System.Action Editor.IconButton.OnClick { get; set; }
public System.Action`1<bool> Editor.IconButton.OnToggled { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Editor |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Editor.IconButton |