| 3695 | static int STB_TEXTEDIT_KEYTOTEXT(int key) { return key >= 0x200000 ? 0 : key; } |
| 3696 | static ImWchar STB_TEXTEDIT_NEWLINE = '\n'; |
| 3697 | static void STB_TEXTEDIT_LAYOUTROW(StbTexteditRow* r, ImGuiInputTextState* obj, int line_start_idx) |
| 3698 | { |
| 3699 | const ImWchar* text = obj->TextW.Data; |
| 3700 | const ImWchar* text_remaining = NULL; |
| 3701 | const ImVec2 size = InputTextCalcTextSizeW(obj->Ctx, text + line_start_idx, text + obj->CurLenW, &text_remaining, NULL, true); |
| 3702 | r->x0 = 0.0f; |
| 3703 | r->x1 = size.x; |
| 3704 | r->baseline_y_delta = size.y; |
| 3705 | r->ymin = 0.0f; |
| 3706 | r->ymax = size.y; |
| 3707 | r->num_chars = (int)(text_remaining - (text + line_start_idx)); |
| 3708 | } |
| 3709 | |
| 3710 | static bool is_separator(unsigned int c) |
| 3711 | { |
no test coverage detected