ImDrawList: Using ImDrawCornerFlags instead of int in various apis.

Demo: Using ImGuiColorEditrFlags instead of int.
This commit is contained in:
omar
2019-07-23 09:49:17 -07:00
parent 1820aaf444
commit 51853292cc
4 changed files with 14 additions and 12 deletions

View File

@ -1088,6 +1088,7 @@ bool ImGui::RadioButton(const char* label, bool active)
return pressed;
}
// FIXME: This would work nicely if it was a public template, e.g. 'template<T> RadioButton(const char* label, T* v, T v_button)', but I'm not sure how we would expose it..
bool ImGui::RadioButton(const char* label, int* v, int v_button)
{
const bool pressed = RadioButton(label, *v == v_button);