Lines Matching refs:where
304 STB_TEXTEDIT_POSITIONTYPE where;
333 // dragging the mouse, start is where the initial click was, and you
349 float preferred_x; // this determines where the cursor up/down tries to seek to along x
358 // Result of layout query, used by stb_textedit to determine where
502 static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length);
503 static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length);
504 static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length);
589 static void stb_textedit_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int len)
591 stb_text_makeundo_delete(str, state, where, len);
592 STB_TEXTEDIT_DELETECHARS(str, where, len);
1180 r->where = pos;
1208 r->where = u.where;
1242 s->undo_char[r->char_storage + i] = STB_TEXTEDIT_GETCHAR(str, u.where + i);
1246 STB_TEXTEDIT_DELETECHARS(str, u.where, u.delete_length);
1252 STB_TEXTEDIT_INSERTCHARS(str, u.where, &s->undo_char[u.char_storage], u.insert_length);
1256 state->cursor = u.where + u.insert_length;
1278 u->where = r.where;
1295 s->undo_char[u->char_storage + i] = STB_TEXTEDIT_GETCHAR(str, u->where + i);
1298 STB_TEXTEDIT_DELETECHARS(str, r.where, r.delete_length);
1303 STB_TEXTEDIT_INSERTCHARS(str, r.where, &s->undo_char[r.char_storage], r.insert_length);
1307 state->cursor = r.where + r.insert_length;
1313 static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length)
1315 stb_text_createundo(&state->undostate, where, 0, length);
1318 static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length)
1321 STB_TEXTEDIT_CHARTYPE *p = stb_text_createundo(&state->undostate, where, length, 0);
1324 p[i] = STB_TEXTEDIT_GETCHAR(str, where+i);
1328 static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length)
1331 STB_TEXTEDIT_CHARTYPE *p = stb_text_createundo(&state->undostate, where, old_length, new_length);
1334 p[i] = STB_TEXTEDIT_GETCHAR(str, where+i);