IconLabelclass

A material icon label

objectWidgetIconLabel
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public class Editor.IconLabel : Editor.Widget

Constructors1

Showing 1 constructors

public IconLabel(string icon, Editor.Widget parent = null)PUBLICCONSTRUCTOR

ParameterTypeDescription
iconstring
parent = nullWidget

Methods2

Showing 2 methods

protected virtual void OnPaint()PROTECTEDVIRTUAL

Returns:void

protected virtual Vector2 SizeHint()PROTECTEDVIRTUAL

Returns:Vector2

Properties5

Showing 5 properties

public string Editor.IconLabel.Icon { get; set; }PUBLICGETSET

Returns:string

public float Editor.IconLabel.IconSize { get; set; }PUBLICGETSET

Returns:float

public System.Action`1<bool> Editor.IconLabel.OnToggled { get; set; }PUBLICGETSET

Returns:Action<bool>

On this page