ImGuiListEnum<TEnum> Class
Definition
Section titled “Definition”Wraps an enum type for ImGui controls, like listboxes.
public static class ImGuiListEnum<TEnum> where TEnum : struct, EnumType Parameters
Section titled “Type Parameters”TEnum
The enum to wrap.
Inheritance object
Fields
Section titled “Fields”A collection of each enum name.
public static string[] NamesValues
Section titled “Values”A collection of each enum value.
public static TEnum[] ValuesProperties
Section titled “Properties”The count of the enums items.
public static int Count { get; }Methods
Section titled “Methods”GetValueFromIndex(int)
Section titled “GetValueFromIndex(int)”Gets a value from an index.
public static TEnum GetValueFromIndex(int index)Parameters
Section titled “Parameters”index int
Index of the value to get.
Returns
Section titled “Returns”TEnum
A value.
GetIndexFromValue(TEnum)
Section titled “GetIndexFromValue(TEnum)”Gets an index from a value.
public static int GetIndexFromValue(TEnum value)Parameters
Section titled “Parameters”value TEnum
The value to get an index from.
Returns
Section titled “Returns”int
The index.