Lines Matching defs:line

172         // Perform manual coarse clipping to optimize for long multi-line text
174 // - We also don't vertically center the text within the line full height, which is unlikely to matter because we are likely the biggest and only item on the line.
176 const char* line = text;
188 while (line < text_end && lines_skipped < lines_skippable)
190 const char* line_end = (const char*)memchr(line, '\n', text_end - line);
194 text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x);
195 line = line_end + 1;
203 if (line < text_end)
206 while (line < text_end)
211 const char* line_end = (const char*)memchr(line, '\n', text_end - line);
214 text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x);
215 RenderText(pos, line, line_end, false);
216 line = line_end + 1;
224 while (line < text_end)
226 const char* line_end = (const char*)memchr(line, '\n', text_end - line);
230 text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x);
231 line = line_end + 1;
1292 // Render and stay on same line
1339 if (window->DC.CurrLineSize.y > 0.0f) // In the event that we are on a line with items that is smaller that FontSize high, we will preserve its height.
1357 // Horizontal/vertical separating line
1371 // Vertical separator, for menu bars (use current line height). Not exposed because it is misleading and it doesn't have an effect on regular layout.
3077 // Add multiple sliders on 1 line for compact edition of multiple components
3659 // Wrapper for stb_textedit.h to edit text (our wrapper is for: statically sized buffer, single-line, wchar characters. InputText converts between UTF-8 and wchar)
3747 #define STB_TEXTEDIT_K_LINESTART 0x200004 // keyboard input to move cursor to start of line
3748 #define STB_TEXTEDIT_K_LINEEND 0x200005 // keyboard input to move cursor to end of line
3971 const ImVec2 frame_size = CalcItemSize(size_arg, CalcItemWidth(), (is_multiline ? g.FontSize * 8.0f : label_size.y) + style.FramePadding.y * 2.0f); // Arbitrary default of 8 lines high for multi-line
4170 // Down the line we should have a cleaner library-wide concept of Selected vs Active.
4297 unsigned int c = '\n'; // Insert new line
4548 // Set upper limit of single-line InputTextEx() at 2 million characters strings. The current pathological worst case is a long line
4550 // Note that we only use this limit on single-line InputText(), so a pathologically large line on a InputTextMultiline() would still crash.
4596 // Iterate all lines to find our line numbers
4597 // In multi-line mode, we never exit the loop until all lines are counted, so add one extra to the searches_remaining counter.
4614 // Calculate 2d position by finding the beginning of the line and measuring distance
4671 float bg_offy_up = is_multiline ? 0.0f : -1.0f; // FIXME: those offsets should be part of the style? they don't play so well with multi-line selection.
4700 // We test for 'buf_display_max_length' as a way to avoid some pathological cases (e.g. single-line 1 MB string) which would make ImDrawList crash.
5831 // We vertically grow up to current line height up the typical widget height.
5937 if (g.NavId == id && g.NavMoveDir == ImGuiDir_Right && !is_open) // If there's something upcoming on the line we may want to give it the priority?
6376 // Assume all items have even height (= 1 line of text). If you need items of different height,
6380 clipper.Begin(items_count, GetTextLineHeightWithSpacing()); // We know exactly our line height here so we pass it as a minor optimization, but generally you don't need to.
6494 float histogram_zero_line_t = (scale_min * scale_max < 0.0f) ? (1 + scale_min * inv_scale) : (scale_min < 0.0f ? 0.0f : 1.0f); // Where does the zero line stands
6786 // FIXME: Consider removing support for safe area down the line... it's messy. Nowadays consoles have support for TV calibration in OS settings.
7488 // Teleport if we are aiming far off the visible line