Skip to content

ImGuiListEnum<TEnum> Class

Wraps an enum type for ImGui controls, like listboxes.

C#
public static class ImGuiListEnum<TEnum> where TEnum : struct, Enum

TEnum
The enum to wrap.

Inheritance object

A collection of each enum name.

C#
public static string[] Names

A collection of each enum value.

C#
public static TEnum[] Values

The count of the enums items.

C#
public static int Count { get; }

Gets a value from an index.

C#
public static TEnum GetValueFromIndex(int index)

index int
Index of the value to get.

TEnum
A value.

Gets an index from a value.

C#
public static int GetIndexFromValue(TEnum value)

value TEnum
The value to get an index from.

int
The index.