Show / Hide Table of Contents

Struct ImTextStyle

Stores the font style.

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 ImTextStyle : IStyle

Fields

Column

Column wise alignment.

Declaration
public HorizontalAlignment Column
Field Value
Type Description
HorizontalAlignment

FontSize

Default font size.

Declaration
public int FontSize
Field Value
Type Description
System.Int32

Padding

The amount of space between the current and 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

TextColor

Default text color.

Declaration
public Color32 TextColor
Field Value
Type Description
UnityEngine.Color32

Methods

New()

Constructs a new instance of the ImTextStyle using default values from DefaultStyles. DefaultStyles

Declaration
public static ImTextStyle New()
Returns
Type Description
ImTextStyle

An instance of ImTextStyle

Implements

IStyle

Extension Methods

StyleExtensions.WithFontSize(ref ImTextStyle, UInt16)
StyleExtensions.WithColumn(ref ImTextStyle, HorizontalAlignment)
StyleExtensions.WithRow(ref ImTextStyle, VerticalAlignment)
StyleExtensions.WithTextColor(ref ImTextStyle, Color32)
StyleExtensions.WithPadding(ref ImTextStyle, float2)
ImTextStyleExtensions.WithColor(ref ImTextStyle, Color32)
In This Article
Back to top Generated by DocFX