API ReferenceEditor
IconButtonclass
Constructors1
Showing 1 constructors
public IconButton(string icon, System.Action onClick = null, Editor.Widget parent = null)
| Parameter | Type | Description |
|---|---|---|
| icon | string | — |
| onClick = null | Action | — |
| parent = null | Widget | — |
No results match this filter.
Methods3
Showing 3 methods
protected virtual void OnMouseClick(Editor.MouseEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | MouseEvent | — |
Returns:
void—protected virtual void OnPaint()
Returns:
void—No results match this filter.
Properties10
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; }
Returns:
string—public float Editor.IconButton.IconSize { get; set; }
Returns:
float—public bool Editor.IconButton.IsActive { get; set; }
If IsToggle is true, this is toggled on press
Returns:
bool—public bool Editor.IconButton.IsToggle { get; set; }
If true we will toggle IsActive automatically
Returns:
bool—public System.Action Editor.IconButton.OnClick { get; set; }
Returns:
Action—public System.Action`1<bool> Editor.IconButton.OnToggled { get; set; }
Returns:
Action<bool>—No results match this filter.