Tatooine
draw_icon.h
Go to the documentation of this file.
1#ifndef TATOOINE_FLOWEXPLORER_UI_DRAW_ICON_H
2#define TATOOINE_FLOWEXPLORER_UI_DRAW_ICON_H
3//==============================================================================
4#include <tatooine/gl/imgui.h>
5//==============================================================================
7//==============================================================================
8enum class icon_type : ImU32 {
9 flow,
10 circle,
11 square,
12 grid,
15};
16//==============================================================================
17auto icon(const ImVec2& size, icon_type type, bool filled,
18 const ImVec4& color = ImVec4(1, 1, 1, 1),
19 const ImVec4& innerColor = ImVec4(0, 0, 0, 0)) -> void;
20//------------------------------------------------------------------------------
21auto draw_icon(ImDrawList* drawList, const ImVec2& a, const ImVec2& b,
22 icon_type type, bool filled, ImU32 color, ImU32 innerColor)
23 -> void;
24//==============================================================================
25} // namespace tatooine::flowexplorer::ui
26//==============================================================================
27#endif
Definition: draw_icon.h:6
auto icon(const ImVec2 &size, icon_type type, bool filled, const ImVec4 &color=ImVec4(1, 1, 1, 1), const ImVec4 &innerColor=ImVec4(0, 0, 0, 0)) -> void
icon_type
Definition: draw_icon.h:8
auto draw_icon(ImDrawList *drawList, const ImVec2 &a, const ImVec2 &b, icon_type type, bool filled, ImU32 color, ImU32 innerColor) -> void
auto size(vec< ValueType, N > const &v)
Definition: vec.h:148