Lines Matching defs:line

145         // Perform manual coarse clipping to optimize for long multi-line text
147 // - 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.
149 const char* line = text;
165 while (line < text_end && lines_skipped < lines_skippable)
167 const char* line_end = (const char*)memchr(line, '\n', text_end - line);
170 line = line_end + 1;
178 if (line < text_end)
181 while (line < text_end)
186 const char* line_end = (const char*)memchr(line, '\n', text_end - line);
189 const ImVec2 line_size = CalcTextSize(line, line_end, false);
191 RenderText(pos, line, line_end, false);
192 line = line_end + 1;
200 while (line < text_end)
202 const char* line_end = (const char*)memchr(line, '\n', text_end - line);
205 line = line_end + 1;
1077 // Render and stay on same line
1122 if (window->DC.CurrentLineSize.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.
1140 // Horizontal/vertical separating line
2373 // Add multiple sliders on 1 line for compact edition of multiple components
2897 // 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)
2982 #define STB_TEXTEDIT_K_LINESTART 0x10004 // keyboard input to move cursor to start of line
2983 #define STB_TEXTEDIT_K_LINEEND 0x10005 // keyboard input to move cursor to end of line
3154 ImVec2 size = CalcItemSize(size_arg, CalcItemWidth(), (is_multiline ? GetTextLineHeight() * 8.0f : label_size.y) + style.FramePadding.y*2.0f); // Arbitrary default of 8 lines high for multi-line
3293 // Down the line we should have a cleaner library-wide concept of Selected vs Active.
3393 unsigned int c = '\n'; // Insert new line
3610 // Set upper limit of single-line InputTextEx() at 2 million characters strings. The current pathological worst case is a long line
3612 // Note that we only use this limit on single-line InputText(), so a pathologically large line on a InputTextMultiline() would still crash.
3652 // Iterate all lines to find our line numbers
3653 // In multi-line mode, we never exit the loop until all lines are counted, so add one extra to the searches_remaining counter.
3668 // Calculate 2d position by finding the beginning of the line and measuring distance
3721 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.
3780 Dummy(text_size + ImVec2(0.0f, g.FontSize)); // Always add room to scroll an extra line
4774 // We vertically grow up to current line height up the typical widget height.
4848 if (g.NavId == id && g.NavMoveRequest && g.NavMoveDir == ImGuiDir_Right && !is_open) // If there's something upcoming on the line we may want to give it the priority?
5212 // Assume all items have even height (= 1 line of text). If you need items of different or variable sizes you can create a custom version of ListBox() in your code without using the clipper.
5215 ImGuiListClipper clipper(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.
5320 float histogram_zero_line_t = (scale_min * scale_max < 0.0f) ? (-scale_min * inv_scale) : (scale_min < 0.0f ? 0.0f : 1.0f); // Where does the zero line stands