Lines Matching defs:text_begin
106 static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end);
107 static ImVec2 InputTextCalcTextSizeW(const ImWchar* text_begin, const ImWchar* text_end, const ImWchar** remaining = NULL, ImVec2* out_offset = NULL, bool stop_on_new_line = false);
135 const char* text_begin = text;
221 const ImVec2 text_size = CalcTextSize(text_begin, text_end, false, wrap_width);
230 RenderTextWrapped(bb.Min, text_begin, text_end, wrap_width);
353 const char* text_begin = g.TempBuffer;
354 const char* text_end = text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args);
355 const ImVec2 label_size = CalcTextSize(text_begin, text_end, false);
365 RenderText(bb.Min+ImVec2(g.FontSize + style.FramePadding.x*2, text_base_offset_y), text_begin, text_end, false);
2838 static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end)
2841 const char* s = text_begin;
2852 static ImVec2 InputTextCalcTextSizeW(const ImWchar* text_begin, const ImWchar* text_end, const ImWchar** remaining, ImVec2* out_offset, bool stop_on_new_line)
2862 const ImWchar* s = text_begin;
3635 const ImWchar* text_begin = edit_state.TextW.Data;
3641 searches_input_ptr[0] = text_begin + edit_state.StbState.cursor;
3647 searches_input_ptr[1] = text_begin + ImMin(edit_state.StbState.select_start, edit_state.StbState.select_end);
3656 //for (const ImWchar* s = text_begin; (s = (const ImWchar*)wcschr((const wchar_t*)s, (wchar_t)'\n')) != NULL; s++) // FIXME-OPT: Could use this when wchar_t are 16-bits
3657 for (const ImWchar* s = text_begin; *s != 0; s++)
3669 cursor_offset.x = InputTextCalcTextSizeW(ImStrbolW(searches_input_ptr[0], text_begin), searches_input_ptr[0]).x;
3673 select_start_offset.x = InputTextCalcTextSizeW(ImStrbolW(searches_input_ptr[1], text_begin), searches_input_ptr[1]).x;
3718 const ImWchar* text_selected_begin = text_begin + ImMin(edit_state.StbState.select_start, edit_state.StbState.select_end);
3719 const ImWchar* text_selected_end = text_begin + ImMax(edit_state.StbState.select_start, edit_state.StbState.select_end);