add GetID override using std::string
This commit is contained in:
@@ -226,6 +226,8 @@ bool ListBox(const char* label, int* current_item,
|
|||||||
height_in_items);
|
height_in_items);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImGuiID GetID(const std::string& id) { return ImGui::GetID(id.c_str()); }
|
||||||
|
|
||||||
} // namespace gui
|
} // namespace gui
|
||||||
} // namespace app
|
} // namespace app
|
||||||
} // namespace yaze
|
} // namespace yaze
|
||||||
@@ -43,6 +43,8 @@ using ItemLabelFlags = enum ItemLabelFlag {
|
|||||||
|
|
||||||
IMGUI_API void ItemLabel(absl::string_view title, ItemLabelFlags flags);
|
IMGUI_API void ItemLabel(absl::string_view title, ItemLabelFlags flags);
|
||||||
|
|
||||||
|
IMGUI_API ImGuiID GetID(const std::string &id);
|
||||||
|
|
||||||
} // namespace gui
|
} // namespace gui
|
||||||
} // namespace app
|
} // namespace app
|
||||||
} // namespace yaze
|
} // namespace yaze
|
||||||
|
|||||||
Reference in New Issue
Block a user