diff options
author | hnOsmium0001 <[email protected]> | 2022-05-06 19:52:12 -0700 |
---|---|---|
committer | hnOsmium0001 <[email protected]> | 2022-05-06 19:52:12 -0700 |
commit | d98a4159d86406a47628aa58bae9f3308fea4fd0 (patch) | |
tree | 4b5ee8aef4a099503801ea731e6fb3c724433cdf /source/EditorUtils.hpp | |
parent | e663fb70fa47764db4576315b78143b6d23ddfa3 (diff) |
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 { |