29 ImGuiIO &io = ImGui::GetIO();
30 ImVec2 pos(io.DisplaySize.x - 10.f, 40.f);
42 ImGui::SetNextWindowBgAlpha(bg.w);
43 ImGui::SetNextWindowPos(pos, ImGuiCond_Always, ImVec2(1.f, 0.f));
44 ImGuiWindowFlags flags = ImGuiWindowFlags_NoDecoration |
45 ImGuiWindowFlags_AlwaysAutoResize |
46 ImGuiWindowFlags_NoSavedSettings |
47 ImGuiWindowFlags_NoNav;
48 ImGui::PushStyleColor(ImGuiCol_WindowBg, bg);
49 if (ImGui::Begin(
"##toast",
nullptr, flags)) {
50 ImGui::TextUnformatted(t.
message.c_str());
53 ImGui::PopStyleColor(1);
61 pos.y += ImGui::GetItemRectSize().y + 6.f;