Struct ImButtonStyle
Stores the color states of the button.
Implements
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: InitialPrefabs.NimGui
Assembly: InitialPrefabs.ImGui.dll
Syntax
public struct ImButtonStyle : IStyle
Fields
Background
The default color.
Declaration
public Color32 Background
Field Value
| Type | Description |
|---|---|
| UnityEngine.Color32 |
Column
Column-wise alignment.
Declaration
public HorizontalAlignment Column
Field Value
| Type | Description |
|---|---|
| HorizontalAlignment |
FontSize
Size of the text.
Declaration
public int FontSize
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Hover
The color when the mouse is hovered over the button.
Declaration
public Color32 Hover
Field Value
| Type | Description |
|---|---|
| UnityEngine.Color32 |
Padding
The spacing between the button and the next widget.
Declaration
public float2 Padding
Field Value
| Type | Description |
|---|---|
| Unity.Mathematics.float2 |
Pressed
The color when the mouse is clicked on the button.
Declaration
public Color32 Pressed
Field Value
| Type | Description |
|---|---|
| UnityEngine.Color32 |
Row
Row-wise alignment.
Declaration
public VerticalAlignment Row
Field Value
| Type | Description |
|---|---|
| VerticalAlignment |
Text
The color of the text.
Declaration
public Color32 Text
Field Value
| Type | Description |
|---|---|
| UnityEngine.Color32 |
Methods
New()
Constructs a new instance of the ButtonStyle with default settings.
Declaration
public static ImButtonStyle New()
Returns
| Type | Description |
|---|---|
| ImButtonStyle |