Show / Hide Table of Contents

Struct ImTextFieldStyle

Stores the style of the TextField.

Implements
IStyle
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 ImTextFieldStyle : IStyle

Fields

Background

Background color for the textfield.

Declaration
public Color32 Background
Field Value
Type Description
UnityEngine.Color32

Column

Column wise alignment.

Declaration
public HorizontalAlignment Column
Field Value
Type Description
HorizontalAlignment

FontSize

Default size of the text.

Declaration
public int FontSize
Field Value
Type Description
System.Int32

Hover

Color of the textfield when the mouse is over it.

Declaration
public Color32 Hover
Field Value
Type Description
UnityEngine.Color32

Padding

Spacing between the this and the next widget.

Declaration
public float2 Padding
Field Value
Type Description
Unity.Mathematics.float2

Row

Row wise alignment.

Declaration
public VerticalAlignment Row
Field Value
Type Description
VerticalAlignment

Text

Default color of the text.

Declaration
public Color32 Text
Field Value
Type Description
UnityEngine.Color32

Methods

New()

Constructs a new ImTextFieldStyle using values from the DefaultStyles. DefaultStyles

Declaration
public static ImTextFieldStyle New()
Returns
Type Description
ImTextFieldStyle

An instance of the ImTextFieldStyle.

Implements

IStyle

Extension Methods

ImTextFieldStyleExtensions.GetTextStyle(in ImTextFieldStyle)
ImTextFieldStyleExtensions.GetButtonStyle(in ImTextFieldStyle)
StyleExtensions.WithFontSize(ref ImTextFieldStyle, UInt16)
StyleExtensions.WithText(ref ImTextFieldStyle, Color32)
StyleExtensions.WithBackground(ref ImTextFieldStyle, Color32)
StyleExtensions.WithHover(ref ImTextFieldStyle, Color32)
StyleExtensions.WithColumn(ref ImTextFieldStyle, HorizontalAlignment)
StyleExtensions.WithRow(ref ImTextFieldStyle, VerticalAlignment)
StyleExtensions.WithPadding(ref ImTextFieldStyle, float2)
In This Article
Back to top Generated by DocFX