OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
xsrc
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:wrap_width
(Results
1 - 11
of
11
) sorted by relevancy
/xsrc/external/mit/MesaLib/dist/src/imgui/
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)
1202
font->RenderText(this, font_size, pos, col, clip_rect, text_begin, text_end,
wrap_width
, cpu_fine_clip_rect != NULL);
2542
const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float
wrap_width
) const
2562
wrap_width
/= scale; // We work with unscaled widths to avoid scaling every characters
2627
if (line_width + word_width >=
wrap_width
)
2630
if (word_width <
wrap_width
)
2641
ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float
wrap_width
, const char* text_begin, const char* text_end, const char** remaining) const
2652
const bool word_wrap_enabled = (
wrap_width
> 0.0f);
2663
word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end,
wrap_width
- line_width);
2664
if (word_wrap_eol == s) //
Wrap_width
is too small to fit anything. Force displaying 1 character to minimize the height discontinuity
[
all
...]
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;
imgui_internal.h
1442
IMGUI_API void RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float
wrap_width
);
imgui_widgets.cpp
220
const float
wrap_width
= wrap_enabled ? CalcWrapWidthForPos(window->DC.CursorPos, wrap_pos_x) : 0.0f;
local
221
const ImVec2 text_size = CalcTextSize(text_begin, text_end, false,
wrap_width
);
230
RenderTextWrapped(bb.Min, text_begin, text_end,
wrap_width
);
imgui.cpp
2311
void ImGui::RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float
wrap_width
)
2321
window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_end,
wrap_width
);
3898
ImVec2 ImGui::CalcTextSize(const char* text, const char* text_end, bool hide_text_after_double_hash, float
wrap_width
)
3912
ImVec2 text_size = font->CalcTextSizeA(font_size, FLT_MAX,
wrap_width
, text, text_display_end, NULL);
/xsrc/external/mit/MesaLib.old/dist/src/imgui/
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)
1202
font->RenderText(this, font_size, pos, col, clip_rect, text_begin, text_end,
wrap_width
, cpu_fine_clip_rect != NULL);
2542
const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float
wrap_width
) const
2562
wrap_width
/= scale; // We work with unscaled widths to avoid scaling every characters
2627
if (line_width + word_width >=
wrap_width
)
2630
if (word_width <
wrap_width
)
2641
ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float
wrap_width
, const char* text_begin, const char* text_end, const char** remaining) const
2652
const bool word_wrap_enabled = (
wrap_width
> 0.0f);
2663
word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end,
wrap_width
- line_width);
2664
if (word_wrap_eol == s) //
Wrap_width
is too small to fit anything. Force displaying 1 character to minimize the height discontinuity
[
all
...]
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;
imgui_demo.cpp
673
static float
wrap_width
= 200.0f;
local
674
ImGui::SliderFloat("Wrap width", &
wrap_width
, -20, 600, "%.0f");
678
ImGui::GetWindowDrawList()->AddRectFilled(ImVec2(pos.x +
wrap_width
, pos.y), ImVec2(pos.x +
wrap_width
+ 10, pos.y + ImGui::GetTextLineHeight()), IM_COL32(255,0,255,255));
679
ImGui::PushTextWrapPos(ImGui::GetCursorPos().x +
wrap_width
);
local
680
ImGui::Text("The lazy dog is a good dog. This paragraph is made to fit within %.0f pixels. Testing a 1 character word. The quick brown fox jumps over the lazy dog.",
wrap_width
);
686
ImGui::GetWindowDrawList()->AddRectFilled(ImVec2(pos.x +
wrap_width
, pos.y), ImVec2(pos.x +
wrap_width
+ 10, pos.y + ImGui::GetTextLineHeight()), IM_COL32(255,0,255,255));
687
ImGui::PushTextWrapPos(ImGui::GetCursorPos().x +
wrap_width
);
local
imgui_internal.h
1442
IMGUI_API void RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float
wrap_width
);
imgui_widgets.cpp
220
const float
wrap_width
= wrap_enabled ? CalcWrapWidthForPos(window->DC.CursorPos, wrap_pos_x) : 0.0f;
local
221
const ImVec2 text_size = CalcTextSize(text_begin, text_end, false,
wrap_width
);
230
RenderTextWrapped(bb.Min, text_begin, text_end,
wrap_width
);
imgui.cpp
2311
void ImGui::RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float
wrap_width
)
2321
window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_end,
wrap_width
);
3898
ImVec2 ImGui::CalcTextSize(const char* text, const char* text_end, bool hide_text_after_double_hash, float
wrap_width
)
3912
ImVec2 text_size = font->CalcTextSizeA(font_size, FLT_MAX,
wrap_width
, text, text_display_end, NULL);
Completed in 73 milliseconds
Indexes created Sun Jul 05 00:25:41 UTC 2026