aboutsummaryrefslogtreecommitdiff
path: root/source/EditorUtils.hpp
diff options
context:
space:
mode:
authorhnOsmium0001 <[email protected]>2022-05-06 19:52:12 -0700
committerhnOsmium0001 <[email protected]>2022-05-06 19:52:12 -0700
commitd98a4159d86406a47628aa58bae9f3308fea4fd0 (patch)
tree4b5ee8aef4a099503801ea731e6fb3c724433cdf /source/EditorUtils.hpp
parente663fb70fa47764db4576315b78143b6d23ddfa3 (diff)
Improved camera and various cleanups
Diffstat (limited to 'source/EditorUtils.hpp')
-rw-r--r--source/EditorUtils.hpp18
1 files changed, 18 insertions, 0 deletions
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<void(bool)> callback);
+void ShowDialogs();
+
} // namespace ImGui
namespace Utils {