diff --git a/src/VL.ImGui/Widgets/Queries/GetStyleColorName.cs b/src/VL.ImGui/Widgets/Queries/GetStyleColorName.cs new file mode 100644 index 0000000..1d8c51d --- /dev/null +++ b/src/VL.ImGui/Widgets/Queries/GetStyleColorName.cs @@ -0,0 +1,18 @@ +namespace VL.ImGui.Widgets +{ + /// + /// Get a string corresponding to the enum value (for display, saving, etc.). + /// + [GenerateNode(Category = "ImGui.Queries", IsStylable = false)] + internal partial class GetStyleColorName : Widget + { + public ImGuiNET.ImGuiCol Color { private get; set; } + + public string? Value { get; private set; } + + internal override unsafe void UpdateCore(Context context) + { + Value = ImGuiNET.ImGui.GetStyleColorName(Color); + } + } +}