add GetID override using std::string

This commit is contained in:
scawful
2024-07-13 10:22:25 -04:00
parent 7b23a35852
commit 8fa989a82d
2 changed files with 4 additions and 0 deletions

View File

@@ -226,6 +226,8 @@ bool ListBox(const char* label, int* current_item,
height_in_items);
}
ImGuiID GetID(const std::string& id) { return ImGui::GetID(id.c_str()); }
} // namespace gui
} // namespace app
} // namespace yaze

View File

@@ -43,6 +43,8 @@ using ItemLabelFlags = enum ItemLabelFlag {
IMGUI_API void ItemLabel(absl::string_view title, ItemLabelFlags flags);
IMGUI_API ImGuiID GetID(const std::string &id);
} // namespace gui
} // namespace app
} // namespace yaze