FIX:add tooltip(const std::string &label, float wrap_width) api

jira: none
Change-Id: I2372f57177a362f540e509747552a4a27f23fe8f
This commit is contained in:
zhou.xu 2025-04-23 10:07:21 +08:00 committed by lane.wei
parent 298d4acee0
commit 9d690cddd6
2 changed files with 5 additions and 0 deletions

View File

@ -1138,6 +1138,10 @@ void ImGuiWrapper::tooltip(const char *label, float wrap_width)
ImGui::EndTooltip();
}
void ImGuiWrapper::tooltip(const std::string &label, float wrap_width) {
tooltip(label.c_str(), wrap_width);
}
void ImGuiWrapper::tooltip(const wxString &label, float wrap_width)
{
ImGui::BeginTooltip();

View File

@ -168,6 +168,7 @@ public:
void text_wrapped(const std::string &label, float wrap_width);
void text_wrapped(const wxString &label, float wrap_width);
void tooltip(const char *label, float wrap_width);
void tooltip(const std::string &label, float wrap_width);
void tooltip(const wxString &label, float wrap_width);
void filament_group(const std::string &filament_type, const char *hex_color, unsigned char filament_id, float align_width);