/external/mesa3d/src/imgui/ |
D | imgui.h | 50 …AndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), … 168 struct ImVec2 struct 171 ImVec2() { x = y = 0.0f; } in ImVec2() argument 172 ImVec2(float _x, float _y) { x = _x; y = _y; } in ImVec2() argument 248 …IMGUI_API bool BeginChild(const char* str_id, const ImVec2& size = ImVec2(0,0), bool bord… 249 …IMGUI_API bool BeginChild(ImGuiID id, const ImVec2& size = ImVec2(0,0), bool border = fal… 260 …IMGUI_API ImVec2 GetWindowPos(); // get current window position… 261 IMGUI_API ImVec2 GetWindowSize(); // get current window size 264 …IMGUI_API ImVec2 GetContentRegionMax(); // current content boundaries … 265 …IMGUI_API ImVec2 GetContentRegionAvail(); // == GetContentRegionMax() - … [all …]
|
D | imgui_internal.h | 165 IMGUI_API ImVec2 ImLineClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& p); 166 …API bool ImTriangleContainsPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const… 167 IMGUI_API ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, c… 168 …void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec2& b, const ImVec2& c, const… 194 static inline ImVec2 operator*(const ImVec2& lhs, const float rhs) { return ImVec2(lhs… 195 static inline ImVec2 operator/(const ImVec2& lhs, const float rhs) { return ImVec2(lhs… 196 static inline ImVec2 operator+(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs… 197 static inline ImVec2 operator-(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs… 198 static inline ImVec2 operator*(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs… 199 static inline ImVec2 operator/(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs… [all …]
|
D | imgui_draw.cpp | 355 CircleVtx12[i] = ImVec2(ImCos(a), ImSin(a)); in ImDrawListSharedData() 480 void ImDrawList::PushClipRect(ImVec2 cr_min, ImVec2 cr_max, bool intersect_with_current_clip_rect) in PushClipRect() 500 …PushClipRect(ImVec2(_Data->ClipRectFullscreen.x, _Data->ClipRectFullscreen.y), ImVec2(_Data->ClipR… in PushClipRectFullScreen() 618 void ImDrawList::PrimRect(const ImVec2& a, const ImVec2& c, ImU32 col) in PrimRect() 620 ImVec2 b(c.x, a.y), d(a.x, c.y), uv(_Data->TexUvWhitePixel); in PrimRect() 633 void ImDrawList::PrimRectUV(const ImVec2& a, const ImVec2& c, const ImVec2& uv_a, const ImVec2& uv_… in PrimRectUV() 635 ImVec2 b(c.x, a.y), d(a.x, c.y), uv_b(uv_c.x, uv_a.y), uv_d(uv_a.x, uv_c.y); in PrimRectUV() 648 …UV(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, const ImVec2& uv_a, const I… in PrimQuadUV() 669 void ImDrawList::AddPolyline(const ImVec2* points, const int points_count, ImU32 col, bool closed, … in AddPolyline() 674 const ImVec2 uv = _Data->TexUvWhitePixel; in AddPolyline() [all …]
|
D | imgui_widgets.cpp | 107 static ImVec2 InputTextCalcTextSizeW(const ImWchar* text_begin, const ImWchar* text_end, … 139 …const ImVec2 text_pos(window->DC.CursorPos.x, window->DC.CursorPos.y + window->DC.CurrentLineTextB… in TextUnformatted() 152 ImVec2 text_size(0,0); in TextUnformatted() 156 ImVec2 pos = text_pos; in TextUnformatted() 180 ImRect line_rect(pos, pos + ImVec2(FLT_MAX, line_height)); in TextUnformatted() 189 const ImVec2 line_size = CalcTextSize(line, line_end, false); in TextUnformatted() 221 const ImVec2 text_size = CalcTextSize(text_begin, text_end, false, wrap_width); in TextUnformatted() 320 const ImVec2 label_size = CalcTextSize(label, NULL, true); in LabelTextV() 321 …const ImRect value_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.… in LabelTextV() 322 …const ImRect total_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w + (label_size.x > 0.0f… in LabelTextV() [all …]
|
D | imgui.cpp | 995 static ImGuiWindow* CreateNewWindow(const char* name, ImVec2 size, ImGuiWindowFlags flags); 997 static ImVec2 CalcNextScrollFromScrollTargetAndClamp(ImGuiWindow* window, bool snap_on_ed… 1016 static bool BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, bool bor… 1026 static ImVec2 NavCalcPreferredRefPos(); 1033 static void UpdateManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* b… 1082 WindowPadding = ImVec2(8,8); // Padding within a window in ImGuiStyle() 1085 WindowMinSize = ImVec2(32,32); // Minimum window size in ImGuiStyle() 1086 WindowTitleAlign = ImVec2(0.0f,0.5f);// Alignment for title bar text in ImGuiStyle() 1091 …FramePadding = ImVec2(4,3); // Padding within a framed rectangle (used by most wid… in ImGuiStyle() 1094 …ItemSpacing = ImVec2(8,4); // Horizontal and vertical spacing between widgets/lin… in ImGuiStyle() [all …]
|
D | imgui_memory_editor.h | 196 ImGui::SetNextWindowSizeConstraints(ImVec2(0.0f, 0.0f), ImVec2(s.WindowWidth, FLT_MAX)); 207 ImGui::SetWindowSize(ImVec2(s.WindowWidth, ImGui::GetWindowSize().y)); 229 ImGui::BeginChild("##scrolling", ImVec2(0, -footer_height), false, ImGuiWindowFlags_NoMove); 232 ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0)); 233 ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); 269 ImVec2 window_pos = ImGui::GetWindowPos(); 271 …draw_list->AddLine(ImVec2(window_pos.x + s.PosAsciiStart - s.GlyphWidth, window_pos.y), ImVec2(win… 301 ImVec2 pos = ImGui::GetCursorScreenPos(); 310 …draw_list->AddRectFilled(pos, ImVec2(pos.x + highlight_width, pos.y + s.LineHeight), HighlightColo… 406 ImVec2 pos = ImGui::GetCursorScreenPos(); [all …]
|
/external/mesa3d/src/intel/tools/ |
D | aubinator_viewer_urb.h | 16 bool _Hovered(const ImVec2& mouse, bool window_hovered, in _Hovered() 17 const ImVec2& tl, const ImVec2& br) { in _Hovered() 28 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() 38 const ImVec2 window_pos = ImGui::GetWindowPos(); in DrawAllocation() 39 const ImVec2 mouse_pos = ImGui::GetMousePos(); in DrawAllocation() 47 ImVec2 alloc_pos(window_pos.x, y); in DrawAllocation() 48 ImVec2 alloc_tl(x + stages[s].start * alloc_delta, y); in DrawAllocation() 49 ImVec2 alloc_br(x + (stages[s].start + in DrawAllocation() [all …]
|
D | aubinator_viewer.cpp | 239 ImVec2 position; 240 ImVec2 size; 384 window->base.position = ImVec2(-1, -1); in new_shader_window() 385 window->base.size = ImVec2(700, 300); in new_shader_window() 447 window->base.position = ImVec2(-1, -1); in new_urb_window() 448 window->base.size = ImVec2(700, 300); in new_urb_window() 519 window->base.position = ImVec2(-1, -1); in new_edit_window() 520 window->base.size = ImVec2(500, 600); in new_edit_window() 620 window->base.position = ImVec2(-1, -1); in show_pml4_window() 621 window->base.size = ImVec2(500, 600); in show_pml4_window() [all …]
|
/external/skia/tools/viewer/ |
D | ImGuiLayer.h | 39 fSize = ImVec2(availWidth, availWidth * aspect); 58 ImGui::SetCursorScreenPos(ImVec2(fPos.x, fPos.y + fSize.y)); in ~DragCanvas() 64 fDrawList->AddRectFilled(fPos, ImVec2(fPos.x + fSize.x, fPos.y + fSize.y), color); in fillColor() 73 ImGui::SetCursorScreenPos(ImVec2(center.fX - 5, center.fY - 5)); 74 ImGui::InvisibleButton("", ImVec2(10, 10)); 93 fScreenPoints.push_back(ImVec2(center.fX, center.fY)); 100 ImVec2 fPos; 101 ImVec2 fSize; 104 SkSTArray<4, ImVec2, true> fScreenPoints; 124 void skiaWidget(const ImVec2& size, SkiaWidgetFunc func);
|
D | SkottieSlide.cpp | 339 ImGui::SetWindowPos(ImVec2(ui_area.x(), ui_area.y())); in renderUI() 340 ImGui::SetWindowSize(ImVec2(ui_area.width(), ui_area.height())); in renderUI() 344 0, nullptr, FLT_MAX, FLT_MAX, ImVec2(0, kUI_hist_height)); in renderUI()
|
D | SkSLSlide.cpp | 128 ImVec2 boxSize(-1.0f, ImGui::GetTextLineHeight() * 30); in draw() 144 ImVec2 mousePos = ImGui::GetMousePos(); in draw()
|
D | Viewer.cpp | 1738 ImVec2(dc.fPos.x + dc.fSize.x, dc.fPos.y + dc.fSize.y), in ImGui_Primaries() 1739 ImVec2(242, 61), ImVec2(1897, 1922)); in ImGui_Primaries() 1809 ImGui::SetNextWindowSize(ImVec2(400, 400), ImGuiCond_FirstUseEver); in drawImGui() 2487 ImVec2 boxSize(-1.0f, ImGui::GetTextLineHeight() * std::min(lines, 30)); in drawImGui() 2560 ImGui::SetNextWindowSize(ImVec2(400, 400), ImGuiCond_FirstUseEver); in drawImGui() 2574 ImGui::SetNextWindowSize(ImVec2(200, 200), ImGuiCond_FirstUseEver); in drawImGui() 2586 ImVec2 mousePos = ImGui::GetMousePos(); in drawImGui() 2593 ImVec2 avail = ImGui::GetContentRegionAvail(); in drawImGui()
|
D | ImGuiLayer.cpp | 124 void ImGuiLayer::skiaWidget(const ImVec2& size, SkiaWidgetFunc func) { in skiaWidget()
|
D | ParticlesSlide.cpp | 102 ImVec2 boxSize(-1.0f, ImGui::GetTextLineHeight() * (lines + 1)); in visit()
|
/external/skqp/tools/viewer/ |
D | Viewer.cpp | 1348 static ImVec2 ImGui_DragPrimary(const char* label, float* x, float* y, in ImGui_DragPrimary() 1349 const ImVec2& pos, const ImVec2& size) { in ImGui_DragPrimary() 1351 ImVec2 center(pos.x + (*x / 0.8f) * size.x, pos.y + (1.0f - (*y / 0.9f)) * size.y); in ImGui_DragPrimary() 1354 ImGui::SetCursorScreenPos(ImVec2(center.x - 5, center.y - 5)); in ImGui_DragPrimary() 1355 ImGui::InvisibleButton(label, ImVec2(10, 10)); in ImGui_DragPrimary() 1360 ImVec2 mousePosXY((io.MousePos.x - pos.x) / size.x, (io.MousePos.y - pos.y) / size.y); in ImGui_DragPrimary() 1372 return ImVec2(pos.x + (*x / 0.8f) * size.x, pos.y + (1.0f - (*y / 0.9f)) * size.y); in ImGui_DragPrimary() 1381 ImVec2 size = ImVec2(canvasWidth, canvasWidth * (0.9f / 0.8f)); in ImGui_Primaries() 1382 ImVec2 pos = ImGui::GetCursorScreenPos(); in ImGui_Primaries() 1387 drawList->AddImage(gamutPaint, pos, ImVec2(pos.x + size.x, pos.y + size.y), in ImGui_Primaries() [all …]
|
D | ImGuiLayer.h | 23 void skiaWidget(const ImVec2& size, SkiaWidgetFunc func);
|
D | NIMASlide.cpp | 117 ImGui::SetNextWindowSize(ImVec2(300, 0)); in renderGUI()
|
D | ImGuiLayer.cpp | 89 void ImGuiLayer::skiaWidget(const ImVec2& size, SkiaWidgetFunc func) { in skiaWidget()
|
/external/mesa3d/src/intel/tools/imgui/ |
D | imgui_impl_gtk3.cpp | 38 static ImVec2 g_MousePosition = ImVec2(-1, -1); 68 g_MousePosition = ImVec2(x, y); in ImGui_ImplGtk3_HandleEvent() 241 io.DisplaySize = ImVec2((float)gtk_widget_get_allocated_width(g_GtkGlArea), in ImGui_ImplGtk3_NewFrame() 244 io.DisplayFramebufferScale = ImVec2(scale_factor, scale_factor); in ImGui_ImplGtk3_NewFrame() 258 io.MousePos = ImVec2(-1,-1); in ImGui_ImplGtk3_NewFrame()
|
D | imgui_impl_opengl3.cpp | 174 ImVec2 pos = draw_data->DisplayPos; in ImGui_ImplOpenGL3_RenderDrawData()
|
/external/mesa3d/src/vulkan/overlay-layer/ |
D | overlay.cpp | 179 ImVec2 window_size; 497 data->window_size = ImVec2(instance_data->params.width, instance_data->params.height); in new_swapchain_data() 904 ImGui::SetNextWindowPos(ImVec2(margin, margin), ImGuiCond_Always); in position_layer() 907 ImGui::SetNextWindowPos(ImVec2(data->width - data->window_size.x - margin, margin), in position_layer() 911 ImGui::SetNextWindowPos(ImVec2(margin, data->height - data->window_size.y - margin), in position_layer() 915 ImGui::SetNextWindowPos(ImVec2(data->width - data->window_size.x - margin, in position_layer() 979 ImVec2(ImGui::GetContentRegionAvailWidth(), 30)); in compute_swapchain_display() 989 ImVec2(ImGui::GetContentRegionAvailWidth(), 30)); in compute_swapchain_display() 995 data->window_size = ImVec2(data->window_size.x, ImGui::GetCursorPosY() + 10.0f); in compute_swapchain_display() 1300 ImVec2 display_pos = draw_data->DisplayPos; in render_swapchain_display() [all …]
|
/external/skia/samplecode/ |
D | SampleVariableWidthStroker.cpp | 1310 ImGui::SetWindowPos(ImVec2(uiArea.x(), uiArea.y())); in drawUI() 1311 ImGui::SetWindowSize(ImVec2(uiArea.width(), uiArea.height())); in drawUI()
|