/third_party/mesa3d/src/imgui/ |
H A D | imgui_draw.cpp | 1176 void ImDrawList::AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end, float wrap_width, const ImVec4* cpu_fine_clip_rect) in AddText() argument 1202 font->RenderText(this, font_size, pos, col, clip_rect, text_begin, text_end, wrap_width, cpu_fine_clip_rect != NULL); in AddText() 2542 const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const in CalcWordWrapPositionA() 2562 wrap_width /= scale; // We work with unscaled widths to avoid scaling every characters in CalcWordWrapPositionA() 2627 if (line_width + word_width >= wrap_width) in CalcWordWrapPositionA() 2630 if (word_width < wrap_width) in CalcWordWrapPositionA() 2641 ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** remaining) const in CalcTextSizeA() argument 2652 const bool word_wrap_enabled = (wrap_width > 0.0f); in CalcTextSizeA() 2663 word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - line_width); in CalcTextSizeA() 2749 void ImFont::RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width, boo argument [all...] |
H A D | imgui.h | 631 IMGUI_API ImVec2 CalcTextSize(const char* text, const char* text_end = NULL, bool hide_text_after_double_hash = false, float wrap_width = -1.0f); 1841 IMGUI_API void AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL, float wrap_width = 0.0f, const ImVec4* cpu_fine_clip_rect = NULL); 2115 // 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable. 2116 IMGUI_API ImVec2 CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end = NULL, const char** remaining = NULL) const; // utf8 2117 IMGUI_API const char* CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const; 2119 IMGUI_API void RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width = 0.0f, bool cpu_fine_clip = false) const;
|
H A D | imgui_internal.h | 1442 IMGUI_API void RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width);
|
H A D | imgui_widgets.cpp | 220 const float wrap_width = wrap_enabled ? CalcWrapWidthForPos(window->DC.CursorPos, wrap_pos_x) : 0.0f; in TextUnformatted() local 221 const ImVec2 text_size = CalcTextSize(text_begin, text_end, false, wrap_width); in TextUnformatted() 230 RenderTextWrapped(bb.Min, text_begin, text_end, wrap_width); in TextUnformatted()
|
H A D | imgui.cpp | 2311 void ImGui::RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width) in RenderTextWrapped() argument 2321 window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_end, wrap_width); in RenderTextWrapped() 3898 ImVec2 ImGui::CalcTextSize(const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width) in CalcTextSize() argument 3912 ImVec2 text_size = font->CalcTextSizeA(font_size, FLT_MAX, wrap_width, text, text_display_end, NULL); in CalcTextSize()
|
/third_party/skia/third_party/externals/imgui/ |
H A D | imgui_draw.cpp | 1571 void ImDrawList::AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end, float wrap_width, const ImVec4* cpu_fine_clip_rect) in AddText() argument 1597 font->RenderText(this, font_size, pos, col, clip_rect, text_begin, text_end, wrap_width, cpu_fine_clip_rect != NULL); in AddText() 3325 const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const in CalcWordWrapPositionA() 3345 wrap_width /= scale; // We work with unscaled widths to avoid scaling every characters in CalcWordWrapPositionA() 3410 if (line_width + word_width > wrap_width) in CalcWordWrapPositionA() 3413 if (word_width < wrap_width) in CalcWordWrapPositionA() 3424 ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** remaining) const in CalcTextSizeA() argument 3435 const bool word_wrap_enabled = (wrap_width > 0.0f); in CalcTextSizeA() 3446 word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - line_width); in CalcTextSizeA() 3534 void ImFont::RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width, boo argument [all...] |
H A D | imgui.h | 877 IMGUI_API ImVec2 CalcTextSize(const char* text, const char* text_end = NULL, bool hide_text_after_double_hash = false, float wrap_width = -1.0f); 2444 IMGUI_API void AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL, float wrap_width = 0.0f, const ImVec4* cpu_fine_clip_rect = NULL); 2771 // 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable. 2772 IMGUI_API ImVec2 CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end = NULL, const char** remaining = NULL) const; // utf8 2773 IMGUI_API const char* CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const; 2775 IMGUI_API void RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width = 0.0f, bool cpu_fine_clip = false) const;
|
H A D | imgui_demo.cpp | 901 static float wrap_width = 200.0f; in ShowDemoWindowWidgets() local 902 ImGui::SliderFloat("Wrap width", &wrap_width, -20, 600, "%.0f"); in ShowDemoWindowWidgets() 909 ImVec2 marker_min = ImVec2(pos.x + wrap_width, pos.y); in ShowDemoWindowWidgets() 910 ImVec2 marker_max = ImVec2(pos.x + wrap_width + 10, pos.y + ImGui::GetTextLineHeight()); in ShowDemoWindowWidgets() 911 ImGui::PushTextWrapPos(ImGui::GetCursorPos().x + wrap_width); in ShowDemoWindowWidgets() local 913 ImGui::Text("The lazy dog is a good dog. This paragraph should fit within %.0f pixels. Testing a 1 character word. The quick brown fox jumps over the lazy dog.", wrap_width); in ShowDemoWindowWidgets()
|
H A D | imgui_widgets.cpp | 244 const float wrap_width = wrap_enabled ? CalcWrapWidthForPos(window->DC.CursorPos, wrap_pos_x) : 0.0f; in TextEx() local 245 const ImVec2 text_size = CalcTextSize(text_begin, text_end, false, wrap_width); in TextEx() 253 RenderTextWrapped(bb.Min, text_begin, text_end, wrap_width); in TextEx()
|
H A D | imgui.cpp | 2732 void ImGui::RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width) in RenderTextWrapped() argument 2742 window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_end, wrap_width); in RenderTextWrapped() 4563 ImVec2 ImGui::CalcTextSize(const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width) in CalcTextSize() argument 4577 ImVec2 text_size = font->CalcTextSizeA(font_size, FLT_MAX, wrap_width, text, text_display_end, NULL); in CalcTextSize()
|
H A D | imgui_internal.h | 2642 IMGUI_API void RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width);
|