1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-12 02:00:58 +01:00

Added ImGuiStyleVar_GrabMinSize enum value for PushStyleVar()

This commit is contained in:
ocornut 2015-03-15 01:23:56 +00:00
parent 1ef789bb68
commit 98eeeab025
2 changed files with 3 additions and 1 deletions

View File

@ -3382,6 +3382,7 @@ static float* GetStyleVarFloatAddr(ImGuiStyleVar idx)
case ImGuiStyleVar_ChildWindowRounding: return &g.Style.ChildWindowRounding; case ImGuiStyleVar_ChildWindowRounding: return &g.Style.ChildWindowRounding;
case ImGuiStyleVar_FrameRounding: return &g.Style.FrameRounding; case ImGuiStyleVar_FrameRounding: return &g.Style.FrameRounding;
case ImGuiStyleVar_TreeNodeSpacing: return &g.Style.TreeNodeSpacing; case ImGuiStyleVar_TreeNodeSpacing: return &g.Style.TreeNodeSpacing;
case ImGuiStyleVar_GrabMinSize: return &g.Style.GrabMinSize;
} }
return NULL; return NULL;
} }

View File

@ -502,7 +502,8 @@ enum ImGuiStyleVar_
ImGuiStyleVar_FrameRounding, // float ImGuiStyleVar_FrameRounding, // float
ImGuiStyleVar_ItemSpacing, // ImVec2 ImGuiStyleVar_ItemSpacing, // ImVec2
ImGuiStyleVar_ItemInnerSpacing, // ImVec2 ImGuiStyleVar_ItemInnerSpacing, // ImVec2
ImGuiStyleVar_TreeNodeSpacing // float ImGuiStyleVar_TreeNodeSpacing, // float
ImGuiStyleVar_GrabMinSize // float
}; };
// Enumeration for ColorEditMode() // Enumeration for ColorEditMode()