From cde94efdd44553f3f6575ce84b44c6799e1a1425 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Fri, 6 May 2022 19:52:12 -0700 Subject: Changeset: 22 Improved camera and various cleanups --- source/EditorUtils.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'source/EditorUtils.hpp') diff --git a/source/EditorUtils.hpp b/source/EditorUtils.hpp index b079f13..d832447 100644 --- a/source/EditorUtils.hpp +++ b/source/EditorUtils.hpp @@ -33,6 +33,24 @@ bool Splitter(bool splitVertically, float thickness, float* size1, float* size2, void AddUnderLine(ImColor col); +enum class IconType { + Flow, + Circle, + Square, + Grid, + RoundSquare, + Diamond, +}; + +void DrawIcon(ImDrawList* drawList, const ImVec2& a, const ImVec2& b, IconType type, bool filled, ImU32 color, ImU32 innerColor); +void Icon(const ImVec2& size, IconType type, bool filled, const ImVec4& color = ImVec4(1, 1, 1, 1), const ImVec4& innerColor = ImVec4(0, 0, 0, 0)); + +void DrawArrow(ImDrawList* drawList, ImVec2 from, ImVec2 to, ImU32 color, float lineThickness = 1.0f); + +// NOTE: string is copied into an internal storage +void DialogConfirmation(std::string message, std::function callback); +void ShowDialogs(); + } // namespace ImGui namespace Utils { -- cgit v1.2.3-70-g09d2