From 98eeeab0255f1839962457582439b53823675bb3 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 15 Mar 2015 01:23:56 +0000 Subject: [PATCH] Added ImGuiStyleVar_GrabMinSize enum value for PushStyleVar() --- imgui.cpp | 1 + imgui.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index bbf50fa35..5d54e062c 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -3382,6 +3382,7 @@ static float* GetStyleVarFloatAddr(ImGuiStyleVar idx) case ImGuiStyleVar_ChildWindowRounding: return &g.Style.ChildWindowRounding; case ImGuiStyleVar_FrameRounding: return &g.Style.FrameRounding; case ImGuiStyleVar_TreeNodeSpacing: return &g.Style.TreeNodeSpacing; + case ImGuiStyleVar_GrabMinSize: return &g.Style.GrabMinSize; } return NULL; } diff --git a/imgui.h b/imgui.h index 0ad58bf1a..f3c51b6de 100644 --- a/imgui.h +++ b/imgui.h @@ -502,7 +502,8 @@ enum ImGuiStyleVar_ ImGuiStyleVar_FrameRounding, // float ImGuiStyleVar_ItemSpacing, // ImVec2 ImGuiStyleVar_ItemInnerSpacing, // ImVec2 - ImGuiStyleVar_TreeNodeSpacing // float + ImGuiStyleVar_TreeNodeSpacing, // float + ImGuiStyleVar_GrabMinSize // float }; // Enumeration for ColorEditMode()