/dports/cad/horizon-eda/horizon-2.1.0/src/pr-review/ |
H A D | canvas_cairo2.cpp | 244 …const auto text_bb = draw_text(text_pos, 1_mm, s, 0, TextOrigin::CENTER, ColorP::FROM_LAYER, 10000… in draw_text_box() local 245 float scale_x = (text_bb.second.x - text_bb.first.x) / (float)(width); in draw_text_box() 246 float scale_y = ((text_bb.second.y - text_bb.first.y)) / (float)(height); in draw_text_box() 250 text_pos.x += (width) / 2 - (text_bb.second.x - text_bb.first.x) / (2 * sc); in draw_text_box()
|
/dports/cad/horizon-eda/horizon-2.1.0/src/canvas/ |
H A D | canvas_gl.cpp | 901 auto text_bb = measure_bitmap_text(s); in draw_bitmap_text_box() local 902 float scale_x = width / (text_bb.second.x - text_bb.first.x); in draw_bitmap_text_box() 903 float scale_y = height / ((text_bb.second.y - text_bb.first.y)); in draw_bitmap_text_box() 908 const float text_height = (text_bb.second.y - text_bb.first.y) * sc; in draw_bitmap_text_box() 909 const float text_width = (text_bb.second.x - text_bb.first.x) * sc; in draw_bitmap_text_box() 916 text_pos.y -= text_bb.first.y * sc; in draw_bitmap_text_box()
|
H A D | render.cpp | 1426 … const auto text_bb = draw_text({0, 0}, dim.label_size, s, 0, TextOrigin::CENTER, co, 10000, opts); in render() local 1427 auto text_width = std::abs(text_bb.second.x - text_bb.first.x); in render()
|
/dports/games/flightgear-data/fgdata/Nasal/canvas/ |
H A D | tooltip.nas | 159 var text_bb = me._text.update().getBoundingBox(); 160 var width = text_bb[2]; 161 var height = text_bb[3];
|
/dports/math/curv/curv-0.5/extern/imgui/ |
H A D | imgui_widgets.cpp | 883 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0,style.FramePadding.y), window->DC.CursorPos +… in Checkbox() local 886 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in Checkbox() 887 total_bb = ImRect(ImMin(check_bb.Min, text_bb.Min), ImMax(check_bb.Max, text_bb.Max)); in Checkbox() 911 LogRenderedText(&text_bb.Min, *v ? "[x]" : "[ ]"); in Checkbox() 913 RenderText(text_bb.Min, label); in Checkbox() 950 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0, style.FramePadding.y), window->DC.CursorPos … in RadioButton() local 953 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in RadioButton() 954 total_bb.Add(text_bb); in RadioButton() 986 LogRenderedText(&text_bb.Min, active ? "(x)" : "( )"); in RadioButton() 988 RenderText(text_bb.Min, label); in RadioButton()
|
/dports/graphics/nanort/nanort-b1feea8/examples/common/imgui/ |
H A D | imgui_widgets.cpp | 883 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0,style.FramePadding.y), window->DC.CursorPos +… in Checkbox() local 886 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in Checkbox() 887 total_bb = ImRect(ImMin(check_bb.Min, text_bb.Min), ImMax(check_bb.Max, text_bb.Max)); in Checkbox() 911 LogRenderedText(&text_bb.Min, *v ? "[x]" : "[ ]"); in Checkbox() 913 RenderText(text_bb.Min, label); in Checkbox() 950 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0, style.FramePadding.y), window->DC.CursorPos … in RadioButton() local 953 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in RadioButton() 954 total_bb.Add(text_bb); in RadioButton() 986 LogRenderedText(&text_bb.Min, active ? "(x)" : "( )"); in RadioButton() 988 RenderText(text_bb.Min, label); in RadioButton()
|
/dports/devel/nextpnr/nextpnr-48cd407/3rdparty/imgui/ |
H A D | imgui_widgets.cpp | 884 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0,style.FramePadding.y), window->DC.CursorPos +… in Checkbox() local 887 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in Checkbox() 888 total_bb = ImRect(ImMin(check_bb.Min, text_bb.Min), ImMax(check_bb.Max, text_bb.Max)); in Checkbox() 912 LogRenderedText(&text_bb.Min, *v ? "[x]" : "[ ]"); in Checkbox() 914 RenderText(text_bb.Min, label); in Checkbox() 951 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0, style.FramePadding.y), window->DC.CursorPos … in RadioButton() local 954 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in RadioButton() 955 total_bb.Add(text_bb); in RadioButton() 987 LogRenderedText(&text_bb.Min, active ? "(x)" : "( )"); in RadioButton() 989 RenderText(text_bb.Min, label); in RadioButton()
|
/dports/graphics/qt5-3d/kde-qt3d-5.15.2p39/src/3rdparty/imgui/ |
H A D | imgui_widgets.cpp | 884 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0,style.FramePadding.y), window->DC.CursorPos +… in Checkbox() local 887 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in Checkbox() 888 total_bb = ImRect(ImMin(check_bb.Min, text_bb.Min), ImMax(check_bb.Max, text_bb.Max)); in Checkbox() 912 LogRenderedText(&text_bb.Min, *v ? "[x]" : "[ ]"); in Checkbox() 914 RenderText(text_bb.Min, label); in Checkbox() 951 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0, style.FramePadding.y), window->DC.CursorPos … in RadioButton() local 954 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in RadioButton() 955 total_bb.Add(text_bb); in RadioButton() 987 LogRenderedText(&text_bb.Min, active ? "(x)" : "( )"); in RadioButton() 989 RenderText(text_bb.Min, label); in RadioButton()
|
/dports/misc/box2d/box2d-2.4.1/extern/imgui/ |
H A D | imgui_widgets.cpp | 893 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0,style.FramePadding.y), window->DC.CursorPos +… in Checkbox() local 896 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in Checkbox() 897 total_bb = ImRect(ImMin(check_bb.Min, text_bb.Min), ImMax(check_bb.Max, text_bb.Max)); in Checkbox() 921 LogRenderedText(&text_bb.Min, *v ? "[x]" : "[ ]"); in Checkbox() 923 RenderText(text_bb.Min, label); in Checkbox() 961 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0, style.FramePadding.y), window->DC.CursorPos … in RadioButton() local 964 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in RadioButton() 965 total_bb.Add(text_bb); in RadioButton() 997 LogRenderedText(&text_bb.Min, active ? "(x)" : "( )"); in RadioButton() 999 RenderText(text_bb.Min, label); in RadioButton()
|
/dports/graphics/milton/milton-1.9.1/third_party/imgui/ |
H A D | imgui_widgets.cpp | 899 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0,style.FramePadding.y), window->DC.CursorPos +… in Checkbox() local 902 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in Checkbox() 903 total_bb = ImRect(ImMin(check_bb.Min, text_bb.Min), ImMax(check_bb.Max, text_bb.Max)); in Checkbox() 927 LogRenderedText(&text_bb.Min, *v ? "[x]" : "[ ]"); in Checkbox() 929 RenderText(text_bb.Min, label); in Checkbox() 967 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0, style.FramePadding.y), window->DC.CursorPos … in RadioButton() local 970 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in RadioButton() 971 total_bb.Add(text_bb); in RadioButton() 1003 LogRenderedText(&text_bb.Min, active ? "(x)" : "( )"); in RadioButton() 1005 RenderText(text_bb.Min, label); in RadioButton()
|
/dports/games/openclaw/OpenClaw-0.0-51-gbac7730/Box2D/imgui/ |
H A D | imgui.cpp | 6908 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0,style.FramePadding.y), window->DC.CursorPos +… in Checkbox() local 6911 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in Checkbox() 6912 total_bb = ImRect(ImMin(check_bb.Min, text_bb.Min), ImMax(check_bb.Max, text_bb.Max)); in Checkbox() 6932 LogRenderedText(text_bb.GetTL(), *v ? "[x]" : "[ ]"); in Checkbox() 6934 RenderText(text_bb.GetTL(), label); in Checkbox() 6971 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0, style.FramePadding.y), window->DC.CursorPos … in RadioButton() local 6974 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in RadioButton() 6975 total_bb.Add(text_bb); in RadioButton() 7004 LogRenderedText(text_bb.GetTL(), active ? "(x)" : "( )"); in RadioButton() 7006 RenderText(text_bb.GetTL(), label); in RadioButton()
|
/dports/graphics/simpleviewer/andreyu-simple-viewer-gl-d8928067922d/third-party/imgui/imgui/ |
H A D | imgui.cpp | 7305 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0,style.FramePadding.y), window->DC.CursorPos +… in Checkbox() local 7308 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in Checkbox() 7309 total_bb = ImRect(ImMin(check_bb.Min, text_bb.Min), ImMax(check_bb.Max, text_bb.Max)); in Checkbox() 7329 LogRenderedText(text_bb.GetTL(), *v ? "[x]" : "[ ]"); in Checkbox() 7331 RenderText(text_bb.GetTL(), label); in Checkbox() 7368 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0, style.FramePadding.y), window->DC.CursorPos … in RadioButton() local 7371 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in RadioButton() 7372 total_bb.Add(text_bb); in RadioButton() 7401 LogRenderedText(text_bb.GetTL(), active ? "(x)" : "( )"); in RadioButton() 7403 RenderText(text_bb.GetTL(), label); in RadioButton()
|
/dports/devel/bullet/bullet3-3.21/examples/ThirdPartyLibs/imgui/ |
H A D | imgui.cpp | 9673 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0, style.FramePadding.y), window->DC.CursorPos … in Checkbox() local 9676 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in Checkbox() 9677 total_bb = ImRect(ImMin(check_bb.Min, text_bb.Min), ImMax(check_bb.Max, text_bb.Max)); in Checkbox() 9698 LogRenderedText(&text_bb.Min, *v ? "[x]" : "[ ]"); in Checkbox() 9700 RenderText(text_bb.Min, label); in Checkbox() 9737 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0, style.FramePadding.y), window->DC.CursorPos … in RadioButton() local 9740 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in RadioButton() 9741 total_bb.Add(text_bb); in RadioButton() 9771 LogRenderedText(&text_bb.Min, active ? "(x)" : "( )"); in RadioButton() 9773 RenderText(text_bb.Min, label); in RadioButton()
|
/dports/graphics/embree/embree-3.13.2/tutorials/common/imgui/ |
H A D | imgui.cpp | 9539 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0,style.FramePadding.y), window->DC.CursorPos +… in Checkbox() local 9542 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in Checkbox() 9543 total_bb = ImRect(ImMin(check_bb.Min, text_bb.Min), ImMax(check_bb.Max, text_bb.Max)); in Checkbox() 9564 LogRenderedText(&text_bb.Min, *v ? "[x]" : "[ ]"); in Checkbox() 9566 RenderText(text_bb.Min, label); in Checkbox() 9603 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0, style.FramePadding.y), window->DC.CursorPos … in RadioButton() local 9606 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in RadioButton() 9607 total_bb.Add(text_bb); in RadioButton() 9637 LogRenderedText(&text_bb.Min, active ? "(x)" : "( )"); in RadioButton() 9639 RenderText(text_bb.Min, label); in RadioButton()
|
/dports/devel/py-bullet3/bullet3-3.21/examples/ThirdPartyLibs/imgui/ |
H A D | imgui.cpp | 9673 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0, style.FramePadding.y), window->DC.CursorPos … in Checkbox() local 9676 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in Checkbox() 9677 total_bb = ImRect(ImMin(check_bb.Min, text_bb.Min), ImMax(check_bb.Max, text_bb.Max)); in Checkbox() 9698 LogRenderedText(&text_bb.Min, *v ? "[x]" : "[ ]"); in Checkbox() 9700 RenderText(text_bb.Min, label); in Checkbox() 9737 …const ImRect text_bb(window->DC.CursorPos + ImVec2(0, style.FramePadding.y), window->DC.CursorPos … in RadioButton() local 9740 ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y); in RadioButton() 9741 total_bb.Add(text_bb); in RadioButton() 9771 LogRenderedText(&text_bb.Min, active ? "(x)" : "( )"); in RadioButton() 9773 RenderText(text_bb.Min, label); in RadioButton()
|