34 ImGuiIO &io = ImGui::GetIO();
35 ImVec2 pos(io.DisplaySize.x - 10.f, 40.f);
47 ImGui::SetNextWindowBgAlpha(bg.w);
48 ImGui::SetNextWindowPos(pos, ImGuiCond_Always, ImVec2(1.f, 0.f));
49 ImGuiWindowFlags flags = ImGuiWindowFlags_NoDecoration |
50 ImGuiWindowFlags_AlwaysAutoResize |
51 ImGuiWindowFlags_NoSavedSettings |
52 ImGuiWindowFlags_NoNav;
53 ImGui::PushStyleColor(ImGuiCol_WindowBg, bg);
54 if (ImGui::Begin(
"##toast",
nullptr, flags)) {
55 ImGui::TextUnformatted(t.
message.c_str());
58 ImGui::PopStyleColor(1);
66 pos.y += ImGui::GetItemRectSize().y + 6.f;