diff options
author | rtk0c <[email protected]> | 2022-05-06 19:52:12 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-05-06 19:52:12 -0700 |
commit | cde94efdd44553f3f6575ce84b44c6799e1a1425 (patch) | |
tree | 593b9f280f2e223268f8d5c73f5d1dd1aba50c36 /source/EditorUtils.hpp | |
parent | 4c9f5ee706faa1435b7dc2f3b6d4753e1289c351 (diff) |
Changeset: 22 Improved camera and various cleanups
Diffstat (limited to 'source/EditorUtils.hpp')
-rw-r--r-- | source/EditorUtils.hpp | 18 |
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 { |