Show / Hide Table of Contents

Class TextUtils

Inheritance
System.Object
TextUtils
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: InitialPrefabs.NimGui.Text
Assembly: InitialPrefabs.ImGui.dll
Syntax
public static class TextUtils

Methods

AlignHorizontally(in Single, in Single, in ImRect, in HorizontalAlignment)

Declaration
public static float AlignHorizontally(in float lineWidth, in float width, in ImRect rect, in HorizontalAlignment alignment)
Parameters
Type Name Description
System.Single lineWidth
System.Single width
ImRect rect
HorizontalAlignment alignment
Returns
Type Description
System.Single

AlignVertically(in HeightInfo, in ImRect, in VerticalAlignment)

Declaration
public static float AlignVertically(in HeightInfo heightInfo, in ImRect rect, in VerticalAlignment alignment)
Parameters
Type Name Description
HeightInfo heightInfo
ImRect rect
VerticalAlignment alignment
Returns
Type Description
System.Single

CountLines(in ImString, in UnsafeArray<ImGlyph>, in float2, in Single, ref NativeList<TextUtils.LineInfo>)

Declaration
public static void CountLines(in ImString text, in UnsafeArray<ImGlyph> glyphs, in float2 dimensions, in float scale, ref NativeList<TextUtils.LineInfo> lines)
Parameters
Type Name Description
ImString text
InitialPrefabs.NimGui.Collections.UnsafeArray<ImGlyph> glyphs
Unity.Mathematics.float2 dimensions
System.Single scale
Unity.Collections.NativeList<TextUtils.LineInfo> lines

GetStringHash(in ImString)

Declaration
public static uint GetStringHash(in ImString content)
Parameters
Type Name Description
ImString content
Returns
Type Description
System.UInt32

GetStringHash(String)

Declaration
public static uint GetStringHash(string content)
Parameters
Type Name Description
System.String content
Returns
Type Description
System.UInt32
In This Article
Back to top Generated by DocFX