Lines Matching refs:ImGui
337 return ImGui::GetIO().KeyCtrl && ImGui::IsKeyPressed(map_key(key));
343 return ImGui::IsRootWindowOrAnyChildFocused() && has_ctrl_key(key);
359 ImGui::InputTextMultiline("Assembly",
361 ImGui::GetContentRegionAvail(),
364 ImGui::Text("Shader not available");
424 ImGui::Text("URB allocation:");
490 ImGui::BeginChild(ImGui::GetID("##block"));
496 ImGui::EndChild();
498 ImGui::Text("Memory view at 0x%" PRIx64 " not available", window->address);
568 ImGui::TextColored(context.cfg.missing_color, "Page not available");
580 ImGui::Text("Entry%03i - phys_addr=0x%" PRIx64 " - virt_addr=0x%" PRIx64,
588 ImGui::TreeNodeEx(&table[e],
593 ImGui::TreePop();
604 ImGui::Text("pml4: %" PRIx64, window->mem->pml4);
605 ImGui::BeginChild(ImGui::GetID("##block"));
607 ImGui::EndChild();
640 cfg->command_filter.Draw(name); ImGui::SameLine();
642 cfg->field_filter.Draw(name); ImGui::SameLine();
643 if (ImGui::Button("Dwords")) cfg->show_dwords ^= 1;
748 ImGui::PushItemWidth(ImGui::GetContentRegionAvailWidth() / (2 * 2));
749 if (window_has_ctrl_key('f')) ImGui::SetKeyboardFocusHere();
751 ImGui::PopItemWidth();
753 if (ImGui::InputInt("Execbuf", &window->exec_idx))
761 ImGui::Text("execbuf %i", window->exec_idx);
762 if (ImGui::Button("Show PPGTT")) { show_pml4_window(&window->pml4_window, &window->mem); }
764 ImGui::BeginChild(ImGui::GetID("##block"));
777 ImGui::EndChild();
841 if (window_has_ctrl_key('f')) ImGui::SetKeyboardFocusHere();
844 ImGui::BeginChild(ImGui::GetID("##block"));
848 ImGui::CollapsingHeader(reg->name)) {
851 ImGui::Text("%s : %i -> %i\n", field->name, field->start, field->end);
856 ImGui::EndChild();
885 if (window_has_ctrl_key('f')) ImGui::SetKeyboardFocusHere();
891 ImGui::InputText("opcode filter", opcode_str, sizeof(opcode_str),
897 if (ImGui::Button("Dwords")) show_dwords ^= 1;
899 ImGui::BeginChild(ImGui::GetID("##block"));
904 ImGui::CollapsingHeader(cmd->name)) {
911 ImGui::TextColored(context.cfg.dwords_color,
914 ImGui::TextColored(context.cfg.dwords_color, "Dword %d", last_dword);
917 ImGui::Text("%s : %i -> %i\n", field->name, field->start, field->end);
925 ImGui::CollapsingHeader(cmd->name)) {
931 ImGui::TextColored(context.cfg.dwords_color,
935 ImGui::Text("%s : %i -> %i\n", field->name, field->start, field->end);
940 ImGui::EndChild();
993 ImGui::ColorEdit3("background", (float *)&cfg->clear_color, cflags); ImGui::SameLine();
994 ImGui::ColorEdit3("missing", (float *)&cfg->missing_color, cflags); ImGui::SameLine();
995 ImGui::ColorEdit3("error", (float *)&cfg->error_color, cflags); ImGui::SameLine();
996 ImGui::ColorEdit3("highlight", (float *)&cfg->highlight_color, cflags); ImGui::SameLine();
997 ImGui::ColorEdit3("dwords", (float *)&cfg->dwords_color, cflags); ImGui::SameLine();
998 ImGui::ColorEdit3("booleans", (float *)&cfg->boolean_color, cflags); ImGui::SameLine();
1000 if (ImGui::Button("Commands list") || has_ctrl_key('c')) { show_commands_window(); } ImGui::SameLine();
1001 if (ImGui::Button("Registers list") || has_ctrl_key('r')) { show_register_window(); } ImGui::SameLine();
1002 if (ImGui::Button("Help") || has_ctrl_key('h')) { ImGui::OpenPopup("Help"); }
1004 if (ImGui::Button("New batch window") || has_ctrl_key('b')) { new_batch_window(0); }
1006 ImGui::Text("File name: %s", context.input_file);
1007 ImGui::Text("File size: %s", human_size(context.file->end - context.file->map));
1008 ImGui::Text("Execbufs %u", context.file->n_execs);
1009 ImGui::Text("PCI ID: 0x%x", context.file->pci_id);
1010 ImGui::Text("Application name: %s", context.file->app_name);
1011 ImGui::Text("%s", context.file->devinfo.name);
1013 ImGui::SetNextWindowContentWidth(500);
1014 if (ImGui::BeginPopupModal("Help", NULL, ImGuiWindowFlags_AlwaysAutoResize)) {
1015 ImGui::Text("Some global keybindings:");
1016 ImGui::Separator();
1029 align = MAX2(align, ImGui::CalcTextSize(texts[i]).x);
1030 align += ImGui::GetStyle().WindowPadding.x + 10;
1033 ImGui::Text("%s", texts[i]); ImGui::SameLine(align); ImGui::Text("%s", texts[i + 1]);
1036 if (ImGui::Button("Done") || ImGui::IsKeyPressed(ImGuiKey_Escape))
1037 ImGui::CloseCurrentPopup();
1038 ImGui::EndPopup();
1089 ImGui::SetNextWindowPos(window->position, ImGuiCond_FirstUseEver);
1090 ImGui::SetNextWindowSize(window->size, ImGuiCond_FirstUseEver);
1091 if (ImGui::Begin(window->name, &window->opened)) {
1093 window->position = ImGui::GetWindowPos();
1094 window->size = ImGui::GetWindowSize();
1098 ImGui::End();
1107 ImGui::NewFrame();
1111 ImGui::EndFrame();
1112 ImGui::Render();
1118 ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
1124 ImGui::CreateContext();
1130 ImGui::StyleColorsDark();
1133 ImGuiIO& io = ImGui::GetIO();
1144 ImGui::DestroyContext();