implot icon indicating copy to clipboard operation
implot copied to clipboard

Fix for allowing core imgui to use typed ImGuiCol / ImGuiStyleVar enums.

Open ocornut opened this issue 3 years ago • 0 comments

I have been experimenting with making some (non-flags) enums use typed C++ enums. For a few types like ImGuiKey it seemed quite worthwhile are they are useful to see in debugger without a extra cast. I realized ImGuiCol and ImGuiStyleVar, although less useful, could similarly be strongly typed. I haven't push the changes to core lib as I noticed it would break build on ImPlot.

Enclosed a few fixes to ensure it should work before and after. Note the PushStyleVar() signature even used an incorrect type but it didn't matter there.

ocornut avatar Sep 20 '22 11:09 ocornut