diff options
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 { |