Struct ImDropDownStyle
Defines the style of the DropDown.
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 ImDropDownStyle : 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 over the dropdown.
Declaration
public Color32 Hover
Field Value
| Type | Description |
|---|---|
| UnityEngine.Color32 |
Padding
Spacing between the dropdown and the next widget.
Declaration
public float2 Padding
Field Value
| Type | Description |
|---|---|
| Unity.Mathematics.float2 |
Pressed
The color when the mouse clicks the dropdown.
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 text.
Declaration
public Color32 Text
Field Value
| Type | Description |
|---|---|
| UnityEngine.Color32 |
Methods
New()
Constructs the default DropdownStyle.
Declaration
public static ImDropDownStyle New()
Returns
| Type | Description |
|---|---|
| ImDropDownStyle | The dropdown style using values from DefaultStyles. |