Home
last modified time | relevance | path

Searched refs:ImGui (Results 1 - 25 of 64) sorted by relevance

123

/third_party/skia/third_party/externals/imgui/
H A Dimgui_demo.cpp6 // - Newcomers, read 'Programmer guide' in imgui.cpp for notes on how to setup Dear ImGui in your codebase.
7 // - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that.
11 // Message to the person tempted to delete this file when integrating Dear ImGui into their codebase:
13 // coders will want to refer to and call. Have the ImGui::ShowDemoWindow() function wired in an always-available
16 // Everything in this file will be stripped out by the linker if you don't call ImGui::ShowDemoWindow().
17 // If you want to link core Dear ImGui in your shipped builds but want a thorough guarantee that the demo will not be
19 // In another situation, whenever you have Dear ImGui available you probably want this to be available for reference.
33 // - We never omit the ImGui:: prefix when calling functions, even though most code here is in the same namespace.
35 // - We never use any of the helpers/facilities used internally by Dear ImGui, unless available in the public API.
109 #pragma clang diagnostic ignored "-Wexit-time-destructors" // warning: declaration requires an exit-time destructor // exit-time destruction order is undefined. if MemFree() leads to users code that has been disabled before exit it might cause problems. ImGui codin
5811 namespace ImGui { IMGUI_API void ShowFontAtlas(ImFontAtlas* atlas); } global() namespace
[all...]
/third_party/skia/third_party/externals/imgui/examples/example_marmalade/
H A Dmain.cpp1 // Dear ImGui: standalone example application for Marmalade
2 // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
6 // This file is part of Dear ImGui
20 // Setup Dear ImGui context in main()
22 ImGui::CreateContext(); in main()
23 ImGuiIO& io = ImGui::GetIO(); (void)io; in main()
26 // Setup Dear ImGui style in main()
27 ImGui::StyleColorsDark(); in main()
28 //ImGui::StyleColorsClassic(); in main()
34 // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui in main()
[all...]
/third_party/skia/third_party/externals/imgui/examples/example_allegro5/
H A Dmain.cpp1 // Dear ImGui: standalone example application for Allegro 5
2 // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
28 al_set_window_title(display, "Dear ImGui Allegro 5 example"); in main()
34 // Setup Dear ImGui context in main()
36 ImGui::CreateContext(); in main()
37 ImGuiIO& io = ImGui::GetIO(); (void)io; in main()
40 // Setup Dear ImGui style in main()
41 ImGui::StyleColorsDark(); in main()
42 //ImGui::StyleColorsClassic(); in main()
48 // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui in main()
[all...]
/third_party/skia/third_party/externals/imgui/examples/example_glfw_opengl2/
H A Dmain.cpp1 // Dear ImGui: standalone example application for GLFW + OpenGL2, using legacy fixed pipeline
3 // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
37 GLFWwindow* window = glfwCreateWindow(1280, 720, "Dear ImGui GLFW+OpenGL2 example", NULL, NULL); in main()
43 // Setup Dear ImGui context in main()
45 ImGui::CreateContext(); in main()
46 ImGuiIO& io = ImGui::GetIO(); (void)io; in main()
50 // Setup Dear ImGui style in main()
51 ImGui::StyleColorsDark(); in main()
52 //ImGui::StyleColorsClassic(); in main()
59 // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui in main()
[all...]
/third_party/skia/third_party/externals/imgui/examples/example_glut_opengl2/
H A Dmain.cpp1 // Dear ImGui: standalone example application for GLUT/FreeGLUT + OpenGL2, using legacy fixed pipeline
2 // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
37 // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). in my_display_code()
39 ImGui::ShowDemoWindow(&show_demo_window); in my_display_code()
46 ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. in my_display_code()
48 ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) in my_display_code()
49 ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state in my_display_code()
50 ImGui::Checkbox("Another Window", &show_another_window); in my_display_code()
52 ImGui in my_display_code()
[all...]
/third_party/mesa3d/src/imgui/
H A Dimgui_memory_editor.h1 // Mini memory editor for Dear ImGui (to embed in your game/tools)
7 // The code assume a mono-space font for simplicity! If you don't use the default font, use ImGui::PushFont()/PopFont() to switch to a mono-space font before caling this.
15 // ImGui::Begin("MyWindow")
17 // ImGui::End();
169 ImGuiStyle& style = ImGui::GetStyle(); in CalcSizes()
174 s.LineHeight = ImGui::GetTextLineHeight(); in CalcSizes()
175 s.GlyphWidth = ImGui::CalcTextSize("F").x + 1; // We assume the font is mono-space in CalcSizes()
196 ImGui::SetNextWindowSizeConstraints(ImVec2(0.0f, 0.0f), ImVec2(s.WindowWidth, FLT_MAX)); in DrawWindow()
199 if (ImGui::Begin(title, &Open, ImGuiWindowFlags_NoScrollbar)) in DrawWindow()
201 if (ImGui in DrawWindow()
[all...]
/third_party/skia/tools/viewer/
H A DMSKPSlide.cpp30 ImGui::Text("Could not read mskp file %s.\n", fName.c_str()); in draw()
33 ImGui::Begin("MSKP"); in draw()
35 ImGui::BeginGroup(); in draw()
37 if (ImGui::Button(fPaused ? "Play " : "Pause")) { in draw()
45 ImGui::Text("FPS: "); ImGui::SameLine(); in draw()
46 ImGui::RadioButton( "1", &fFPS, 1); ImGui::SameLine(); in draw()
47 ImGui::RadioButton( "15", &fFPS, 15); ImGui in draw()
[all...]
H A DParticlesSlide.cpp87 fDirty = (fTreeStack.back() && ImGui::DragFloat(item(name), &f)) || fDirty;
90 fDirty = (fTreeStack.back() && ImGui::DragInt(item(name), &i)) || fDirty;
93 fDirty = (fTreeStack.back() && ImGui::Checkbox(item(name), &b)) || fDirty;
101 ImGui::LabelText("##Label", "%s", name);
102 ImVec2 boxSize(-1.0f, ImGui::GetTextLineHeight() * (lines + 1));
103 fDirty = ImGui::InputTextMultiline(item(name), s.writable_str(), s.size() + 1,
107 fDirty = ImGui::InputText(item(name), s.writable_str(), s.size() + 1, flags,
117 if (ImGui::BeginCombo("Type", curType ? curType->fName : "Null")) {
120 ImGui::Selectable(t->fName, curType == t)) {
126 ImGui
[all...]
H A DSkSLSlide.cpp124 ImGui::Begin("SkSL", nullptr, ImGuiWindowFlags_AlwaysVerticalScrollbar); in draw()
128 ImVec2 boxSize(-1.0f, ImGui::GetTextLineHeight() * 30); in draw()
129 if (ImGui::InputTextMultiline("Code", fSkSL.writable_str(), fSkSL.size() + 1, boxSize, flags, in draw()
139 ImGui::End(); in draw()
144 ImVec2 mousePos = ImGui::GetMousePos(); in draw()
145 if (ImGui::IsMouseDown(0)) { in draw()
149 if (ImGui::IsMouseClicked(0)) { in draw()
153 fMousePos.z = abs(fMousePos.z) * (ImGui::IsMouseDown(0) ? 1 : -1); in draw()
154 fMousePos.w = abs(fMousePos.w) * (ImGui::IsMouseClicked(0) ? 1 : -1); in draw()
180 ImGui in draw()
[all...]
H A DImGuiLayer.h18 namespace ImGui { namespace
25 ImGui::PushID(id);
26 fDrawList = ImGui::GetWindowDrawList();
37 float availWidth = std::max(ImGui::GetContentRegionAvailWidth(), 1.0f);
38 fPos = ImGui::GetCursorScreenPos();
58 ImGui::SetCursorScreenPos(ImVec2(fPos.x, fPos.y + fSize.y)); in ~DragCanvas()
59 ImGui::Spacing(); in ~DragCanvas()
60 ImGui::PopID(); in ~DragCanvas()
72 ImGui::PushID(fID++); in dragPoint()
73 ImGui in dragPoint()
[all...]
/third_party/skia/third_party/externals/imgui/examples/example_sdl_sdlrenderer/
H A Dmain.cpp1 // Dear ImGui: standalone example application for SDL2 + SDL_Renderer
3 // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
34 SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL2+SDL_Renderer example", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, window_flags); in main()
47 // Setup Dear ImGui context in main()
49 ImGui::CreateContext(); in main()
50 ImGuiIO& io = ImGui::GetIO(); (void)io; in main()
54 // Setup Dear ImGui style in main()
55 ImGui::StyleColorsDark(); in main()
56 //ImGui::StyleColorsClassic(); in main()
63 // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui in main()
[all...]
/third_party/skia/third_party/externals/imgui/examples/example_emscripten_opengl3/
H A Dmain.cpp1 // Dear ImGui: standalone example application for Emscripten, using SDL2 + OpenGL3
3 // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
52 g_Window = SDL_CreateWindow("Dear ImGui Emscripten example", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, window_flags); in main()
61 // Setup Dear ImGui context in main()
63 ImGui::CreateContext(); in main()
64 ImGuiIO& io = ImGui::GetIO(); (void)io; in main()
72 // Setup Dear ImGui style in main()
73 ImGui::StyleColorsDark(); in main()
74 //ImGui::StyleColorsClassic(); in main()
81 // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui in main()
[all...]
/third_party/skia/third_party/externals/imgui/examples/example_glfw_opengl3/
H A Dmain.cpp1 // Dear ImGui: standalone example application for GLFW + OpenGL 3, using programmable pipeline
3 // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
58 GLFWwindow* window = glfwCreateWindow(1280, 720, "Dear ImGui GLFW+OpenGL3 example", NULL, NULL); in main()
64 // Setup Dear ImGui context in main()
66 ImGui::CreateContext(); in main()
67 ImGuiIO& io = ImGui::GetIO(); (void)io; in main()
71 // Setup Dear ImGui style in main()
72 ImGui::StyleColorsDark(); in main()
73 //ImGui::StyleColorsClassic(); in main()
80 // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui in main()
[all...]
/third_party/skia/third_party/externals/imgui/examples/example_sdl_opengl2/
H A Dmain.cpp1 // Dear ImGui: standalone example application for SDL2 + OpenGL
3 // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
36 SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL2+OpenGL example", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, window_flags); in main()
41 // Setup Dear ImGui context in main()
43 ImGui::CreateContext(); in main()
44 ImGuiIO& io = ImGui::GetIO(); (void)io; in main()
48 // Setup Dear ImGui style in main()
49 ImGui::StyleColorsDark(); in main()
50 //ImGui::StyleColorsClassic(); in main()
57 // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui in main()
[all...]
/third_party/skia/third_party/externals/imgui/examples/example_sdl_opengl3/
H A Dmain.cpp1 // Dear ImGui: standalone example application for SDL2 + OpenGL
3 // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
58 SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL2+OpenGL3 example", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, window_flags); in main()
63 // Setup Dear ImGui context in main()
65 ImGui::CreateContext(); in main()
66 ImGuiIO& io = ImGui::GetIO(); (void)io; in main()
70 // Setup Dear ImGui style in main()
71 ImGui::StyleColorsDark(); in main()
72 //ImGui::StyleColorsClassic(); in main()
79 // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui in main()
[all...]
/third_party/skia/third_party/externals/imgui/examples/example_sdl_directx11/
H A Dmain.cpp1 // Dear ImGui: standalone example application for SDL2 + DirectX 11
3 // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
40 SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL2+DirectX11 example", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, window_flags); in main()
53 // Setup Dear ImGui context in main()
55 ImGui::CreateContext(); in main()
56 ImGuiIO& io = ImGui::GetIO(); (void)io; in main()
60 // Setup Dear ImGui style in main()
61 ImGui::StyleColorsDark(); in main()
62 //ImGui::StyleColorsClassic(); in main()
69 // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui in main()
[all...]
/third_party/skia/third_party/externals/imgui/examples/example_emscripten_wgpu/
H A Dmain.cpp1 // Dear ImGui: standalone example application for Emscripten, using GLFW + WebGPU
3 // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
45 GLFWwindow* window = glfwCreateWindow(1280, 720, "Dear ImGui GLFW+WebGPU example", NULL, NULL); in main()
62 // Setup Dear ImGui context in main()
64 ImGui::CreateContext(); in main()
65 ImGuiIO& io = ImGui::GetIO(); (void)io; in main()
73 // Setup Dear ImGui style in main()
74 ImGui::StyleColorsDark(); in main()
75 //ImGui::StyleColorsClassic(); in main()
82 // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui in main()
[all...]
/third_party/mesa3d/src/intel/tools/
H A Daubinator_viewer.cpp337 return ImGui::GetIO().KeyCtrl && ImGui::IsKeyPressed(map_key(key)); in has_ctrl_key()
343 return ImGui::IsRootWindowOrAnyChildFocused() && has_ctrl_key(key); in window_has_ctrl_key()
359 ImGui::InputTextMultiline("Assembly", in display_shader_window()
361 ImGui::GetContentRegionAvail(), in display_shader_window()
364 ImGui::Text("Shader not available"); in display_shader_window()
424 ImGui::Text("URB allocation:"); in display_urb_window()
490 ImGui::BeginChild(ImGui::GetID("##block")); in display_edit_window()
496 ImGui in display_edit_window()
[all...]
H A Daubinator_viewer_urb.h28 const ImVec2 label_size = ImGui::CalcTextSize("VS entry: ", NULL, true); in DrawAllocation()
29 ImVec2 graph_size(ImGui::CalcItemWidth(), 2 * n_stages * label_size.y); in DrawAllocation()
31 ImGui::BeginChild(label, ImVec2(0, graph_size.y), false); in DrawAllocation()
33 ImDrawList* draw_list = ImGui::GetWindowDrawList(); in DrawAllocation()
36 const float width = ImGui::GetContentRegionAvailWidth() - label_size.x; in DrawAllocation()
38 const ImVec2 window_pos = ImGui::GetWindowPos(); in DrawAllocation()
39 const ImVec2 mouse_pos = ImGui::GetMousePos(); in DrawAllocation()
40 const bool window_hovered = ImGui::IsWindowHovered(); in DrawAllocation()
58 draw_list->AddText(alloc_pos, ImGui::GetColorU32(ImGuiCol_Text), label); in DrawAllocation()
65 ImGui in DrawAllocation()
[all...]
/third_party/skia/third_party/externals/imgui/examples/example_win32_directx9/
H A Dmain.cpp1 // Dear ImGui: standalone example application for DirectX 9
2 // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
27 WNDCLASSEX wc = { sizeof(WNDCLASSEX), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(NULL), NULL, NULL, NULL, NULL, _T("ImGui Example"), NULL }; in main()
29 HWND hwnd = ::CreateWindow(wc.lpszClassName, _T("Dear ImGui DirectX9 Example"), WS_OVERLAPPEDWINDOW, 100, 100, 1280, 800, NULL, NULL, wc.hInstance, NULL); in main()
43 // Setup Dear ImGui context in main()
45 ImGui::CreateContext(); in main()
46 ImGuiIO& io = ImGui::GetIO(); (void)io; in main()
50 // Setup Dear ImGui style in main()
51 ImGui::StyleColorsDark(); in main()
52 //ImGui in main()
[all...]
/third_party/skia/third_party/externals/imgui/examples/example_win32_directx10/
H A Dmain.cpp1 // Dear ImGui: standalone example application for DirectX 10
2 // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
29 WNDCLASSEX wc = { sizeof(WNDCLASSEX), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(NULL), NULL, NULL, NULL, NULL, _T("ImGui Example"), NULL }; in main()
31 HWND hwnd = ::CreateWindow(wc.lpszClassName, _T("Dear ImGui DirectX10 Example"), WS_OVERLAPPEDWINDOW, 100, 100, 1280, 800, NULL, NULL, wc.hInstance, NULL); in main()
45 // Setup Dear ImGui context in main()
47 ImGui::CreateContext(); in main()
48 ImGuiIO& io = ImGui::GetIO(); (void)io; in main()
52 // Setup Dear ImGui style in main()
53 ImGui::StyleColorsDark(); in main()
54 //ImGui in main()
[all...]
/third_party/skia/third_party/externals/imgui/examples/example_win32_directx11/
H A Dmain.cpp1 // Dear ImGui: standalone example application for DirectX 11
2 // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
29 WNDCLASSEX wc = { sizeof(WNDCLASSEX), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(NULL), NULL, NULL, NULL, NULL, _T("ImGui Example"), NULL }; in main()
31 HWND hwnd = ::CreateWindow(wc.lpszClassName, _T("Dear ImGui DirectX11 Example"), WS_OVERLAPPEDWINDOW, 100, 100, 1280, 800, NULL, NULL, wc.hInstance, NULL); in main()
45 // Setup Dear ImGui context in main()
47 ImGui::CreateContext(); in main()
48 ImGuiIO& io = ImGui::GetIO(); (void)io; in main()
52 // Setup Dear ImGui style in main()
53 ImGui::StyleColorsDark(); in main()
54 //ImGui in main()
[all...]
/third_party/skia/third_party/externals/imgui/examples/example_android_opengl3/
H A Dmain.cpp68 // Setup Dear ImGui context in init()
70 ImGui::CreateContext(); in init()
71 ImGuiIO& io = ImGui::GetIO(); in init()
77 // Setup Dear ImGui style in init()
78 ImGui::StyleColorsDark(); in init()
79 //ImGui::StyleColorsClassic(); in init()
86 // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. in init()
95 // Important: when calling AddFontFromMemoryTTF(), ownership of font_data is transfered by Dear ImGui by default (deleted is handled by Dear ImGui), unless we set FontDataOwnedByAtlas=false in ImFontConfig in init()
120 ImGui in init()
[all...]
/third_party/skia/third_party/externals/imgui/examples/example_null/
H A Dmain.cpp10 ImGui::CreateContext(); in main()
11 ImGuiIO& io = ImGui::GetIO(); in main()
23 ImGui::NewFrame(); in main()
26 ImGui::Text("Hello, world!"); in main()
27 ImGui::SliderFloat("float", &f, 0.0f, 1.0f); in main()
28 ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); in main()
29 ImGui::ShowDemoWindow(NULL); in main()
31 ImGui::Render(); in main()
35 ImGui::DestroyContext(); in main()
/third_party/skia/third_party/externals/imgui/examples/example_sdl_vulkan/
H A Dmain.cpp1 // Dear ImGui: standalone example application for SDL2 + Vulkan
2 // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
353 SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL2+Vulkan example", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, window_flags); in main()
378 // Setup Dear ImGui context in main()
380 ImGui::CreateContext(); in main()
381 ImGuiIO& io = ImGui::GetIO(); (void)io; in main()
385 // Setup Dear ImGui style in main()
386 ImGui::StyleColorsDark(); in main()
387 //ImGui::StyleColorsClassic(); in main()
406 // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui in main()
[all...]

Completed in 13 milliseconds

123