Searched refs:line_height (Results 1 - 8 of 8) sorted by relevance
/third_party/skia/modules/skottie/src/text/ |
H A D | TextValue.cpp | 25 const skjson::NumberValue* line_height = (*jtxt)["lh"]; in Parse() local 26 if (!font_name || !text || !text_size || !line_height) { in Parse() 38 v->fLineHeight = **line_height; in Parse()
|
/third_party/mesa3d/src/imgui/ |
H A D | imgui_draw.cpp | 2646 const float line_height = size; in CalcTextSizeA() local 2672 text_size.y += line_height; in CalcTextSizeA() 2705 text_size.y += line_height; in CalcTextSizeA() 2727 text_size.y += line_height; in CalcTextSizeA() 2763 const float line_height = FontSize * scale; in RenderText() local 2769 if (y + line_height < clip_rect.y && !word_wrap_enabled) in RenderText() 2770 while (y + line_height < clip_rect.y && s < text_end) in RenderText() 2774 y += line_height; in RenderText() 2787 y_end += line_height; in RenderText() 2819 y += line_height; in RenderText() [all...] |
H A D | imgui_widgets.cpp | 150 const float line_height = GetTextLineHeight(); in TextUnformatted() local 161 int lines_skippable = (int)((clip_rect.Min.y - text_pos.y) / line_height); in TextUnformatted() 173 pos.y += lines_skipped * line_height; in TextUnformatted() 180 ImRect line_rect(pos, pos + ImVec2(FLT_MAX, line_height)); in TextUnformatted() 193 line_rect.Min.y += line_height; in TextUnformatted() 194 line_rect.Max.y += line_height; in TextUnformatted() 195 pos.y += line_height; in TextUnformatted() 208 pos.y += lines_skipped * line_height; in TextUnformatted() 357 const float line_height = ImMax(ImMin(window->DC.CurrentLineSize.y, g.FontSize + g.Style.FramePadding.y*2), g.FontSize); in BulletTextV() local 358 const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(g.FontSize + (label_size.x > 0.0f ? (label_size.x + style.FramePadding.x*2) : 0.0f), ImMax(line_height, label_siz in BulletTextV() 1068 const float line_height = ImMax(ImMin(window->DC.CurrentLineSize.y, g.FontSize + g.Style.FramePadding.y*2), g.FontSize); Bullet() local [all...] |
H A D | imgui.cpp | 2186 static void SetCursorPosYAndSetupDummyPrevLine(float pos_y, float line_height) in SetCursorPosYAndSetupDummyPrevLine() argument 2193 window->DC.CursorPosPrevLine.y = window->DC.CursorPos.y - line_height; // Setting those fields so that SetScrollHereY() can properly function after the end of our clipper usage. in SetCursorPosYAndSetupDummyPrevLine() 2194 window->DC.PrevLineSize.y = (line_height - GImGui->Style.ItemSpacing.y); // If we end up needing more accurate data (to e.g. use SameLine) we may as well make the clipper have a fourth step to let user process and display the last item in their list. in SetCursorPosYAndSetupDummyPrevLine() 2751 const float line_height = ImMax(window->DC.CurrentLineSize.y, size.y); in ItemSize() local 2753 //if (g.IO.KeyAlt) window->DrawList->AddRect(window->DC.CursorPos, window->DC.CursorPos + ImVec2(size.x, line_height), IM_COL32(255,0,0,200)); // [DEBUG] in ItemSize() 2756 window->DC.CursorPos.y = (float)(int)(window->DC.CursorPos.y + line_height + g.Style.ItemSpacing.y); in ItemSize() 2761 window->DC.PrevLineSize.y = line_height; in ItemSize()
|
/third_party/skia/third_party/externals/imgui/ |
H A D | imgui_draw.cpp | 3429 const float line_height = size; in CalcTextSizeA() local 3455 text_size.y += line_height; in CalcTextSizeA() 3488 text_size.y += line_height; in CalcTextSizeA() 3510 text_size.y += line_height; in CalcTextSizeA() 3548 const float line_height = FontSize * scale; in RenderText() local 3554 if (y + line_height < clip_rect.y && !word_wrap_enabled) in RenderText() 3555 while (y + line_height < clip_rect.y && s < text_end) in RenderText() 3559 y += line_height; in RenderText() 3572 y_end += line_height; in RenderText() 3606 y += line_height; in RenderText() [all...] |
H A D | imgui_widgets.cpp | 177 const float line_height = GetTextLineHeight(); in TextEx() local 184 int lines_skippable = (int)((window->ClipRect.Min.y - text_pos.y) / line_height); in TextEx() 198 pos.y += lines_skipped * line_height; in TextEx() 205 ImRect line_rect(pos, pos + ImVec2(FLT_MAX, line_height)); in TextEx() 217 line_rect.Min.y += line_height; in TextEx() 218 line_rect.Max.y += line_height; in TextEx() 219 pos.y += line_height; in TextEx() 234 pos.y += lines_skipped * line_height; in TextEx() 1283 const float line_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + g.Style.FramePadding.y * 2), g.FontSize); in Bullet() local 1284 const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(g.FontSize, line_height)); in Bullet() [all...] |
H A D | imgui.cpp | 2287 static void SetCursorPosYAndSetupForPrevLine(float pos_y, float line_height) in SetCursorPosYAndSetupForPrevLine() argument 2297 window->DC.CursorPosPrevLine.y = window->DC.CursorPos.y - line_height; // Setting those fields so that SetScrollHereY() can properly function after the end of our clipper usage. in SetCursorPosYAndSetupForPrevLine() 2298 window->DC.PrevLineSize.y = (line_height - g.Style.ItemSpacing.y); // If we end up needing more accurate data (to e.g. use SameLine) we may as well make the clipper have a fourth step to let user process and display the last item in their list. in SetCursorPosYAndSetupForPrevLine() 2306 const int row_increase = (int)((off_y / line_height) + 0.5f); in SetCursorPosYAndSetupForPrevLine() 7497 const float line_height = ImMax(window->DC.CurrLineSize.y, size.y + offset_to_match_baseline_y); in ItemSize() local 7500 //if (g.IO.KeyAlt) window->DrawList->AddRect(window->DC.CursorPos, window->DC.CursorPos + ImVec2(size.x, line_height), IM_COL32(255,0,0,200)); // [DEBUG] in ItemSize() 7504 window->DC.CursorPos.y = IM_FLOOR(window->DC.CursorPos.y + line_height + g.Style.ItemSpacing.y); // Next line in ItemSize() 7509 window->DC.PrevLineSize.y = line_height; in ItemSize()
|
/third_party/glfw/deps/ |
H A D | nuklear.h | 7382 float line_height = row_height; in nk_text_calculate_text_bounds() local 7401 text_size.y += line_height; in nk_text_calculate_text_bounds() 7430 *out_offset = nk_vec2(line_width, text_size.y + line_height); in nk_text_calculate_text_bounds() 7432 text_size.y += line_height; in nk_text_calculate_text_bounds()
|
Completed in 120 milliseconds