Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
Added GetStyleColorName. (adds to #29)
Browse files Browse the repository at this point in the history
  • Loading branch information
antongit committed Oct 11, 2022
1 parent 94976ad commit de967de
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/VL.ImGui/Widgets/Queries/GetStyleColorName.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
namespace VL.ImGui.Widgets
{
/// <summary>
/// Get a string corresponding to the enum value (for display, saving, etc.).
/// </summary>
[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);
}
}
}

0 comments on commit de967de

Please sign in to comment.