diff options
Diffstat (limited to 'editor/imgui-raii.hpp')
-rw-r--r-- | editor/imgui-raii.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/imgui-raii.hpp b/editor/imgui-raii.hpp index 63c749bb..59134deb 100644 --- a/editor/imgui-raii.hpp +++ b/editor/imgui-raii.hpp @@ -67,4 +67,11 @@ private: float font_size; }; +template<std::size_t N> +const char* label_left(StringView label, char(&buf)[N], float width) +{ + const char* label_left_(StringView, char*, size_t, float); + return label_left_(label, static_cast<char*>(buf), N, width); +} + } // namespace floormat::imgui |