Home
last modified time | relevance | path

Searched refs:select_end (Results 1 - 8 of 8) sorted by relevance

/third_party/mesa3d/src/imgui/
H A Dimstb_textedit.h330 int select_end; member
469 state->select_end = state->cursor; in stb_textedit_click()
487 if (state->select_start == state->select_end) in stb_textedit_drag()
491 state->cursor = state->select_end = p; in stb_textedit_drag()
572 #define STB_TEXT_HAS_SELECTION(s) ((s)->select_start != (s)->select_end)
580 if (state->select_end > n) state->select_end = n; in stb_textedit_clamp()
582 if (state->select_start == state->select_end) in stb_textedit_clamp()
601 if (state->select_start < state->select_end) { in stb_textedit_delete_selection()
602 stb_textedit_delete(str, state, state->select_start, state->select_end in stb_textedit_delete_selection()
[all...]
H A Dimgui_internal.h582 void CursorClamp() { StbState.cursor = ImMin(StbState.cursor, CurLenW); StbState.select_start = ImMin(StbState.select_start, CurLenW); StbState.select_end = ImMin(StbState.select_end, CurLenW); } in CursorClamp()
583 bool HasSelection() const { return StbState.select_start != StbState.select_end; } in HasSelection()
584 void ClearSelection() { StbState.select_start = StbState.select_end = StbState.cursor; } in ClearSelection()
585 void SelectAll() { StbState.select_start = 0; StbState.cursor = StbState.select_end = CurLenW; StbState.has_preferred_x = 0; } in SelectAll()
H A Dimgui_widgets.cpp3423 const int ib = edit_state.HasSelection() ? ImMin(edit_state.StbState.select_start, edit_state.StbState.select_end) : 0;
3424 const int ie = edit_state.HasSelection() ? ImMax(edit_state.StbState.select_start, edit_state.StbState.select_end) : edit_state.CurLenW;
3539 const int utf8_selection_end = callback_data.SelectionEnd = ImTextCountUtf8BytesFromStr(text, text + edit_state.StbState.select_end);
3550 if (callback_data.SelectionEnd != utf8_selection_end) { edit_state.StbState.select_end = ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.SelectionEnd); }
3634 // FIXME: This should occur on buf_display but we'd need to maintain cursor/select_start/select_end for UTF-8.
3645 if (edit_state.StbState.select_start != edit_state.StbState.select_end)
3647 searches_input_ptr[1] = text_begin + ImMin(edit_state.StbState.select_start, edit_state.StbState.select_end);
3716 if (edit_state.StbState.select_start != edit_state.StbState.select_end)
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);
[all...]
/third_party/skia/third_party/externals/imgui/
H A Dimstb_textedit.h328 int select_end; member
471 state->select_end = state->cursor; in stb_textedit_click()
489 if (state->select_start == state->select_end) in stb_textedit_drag()
493 state->cursor = state->select_end = p; in stb_textedit_drag()
574 #define STB_TEXT_HAS_SELECTION(s) ((s)->select_start != (s)->select_end)
582 if (state->select_end > n) state->select_end = n; in stb_textedit_clamp()
584 if (state->select_start == state->select_end) in stb_textedit_clamp()
603 if (state->select_start < state->select_end) { in stb_textedit_delete_selection()
604 stb_textedit_delete(str, state, state->select_start, state->select_end in stb_textedit_delete_selection()
[all...]
H A Dimgui_internal.h1034 void CursorClamp() { Stb.cursor = ImMin(Stb.cursor, CurLenW); Stb.select_start = ImMin(Stb.select_start, CurLenW); Stb.select_end = ImMin(Stb.select_end, CurLenW); }
1035 bool HasSelection() const { return Stb.select_start != Stb.select_end; }
1036 void ClearSelection() { Stb.select_start = Stb.select_end = Stb.cursor; }
1039 int GetSelectionEnd() const { return Stb.select_end; }
1040 void SelectAll() { Stb.select_start = 0; Stb.cursor = Stb.select_end = CurLenW; Stb.has_preferred_x = 0; }
H A Dimgui_widgets.cpp4326 const int ib = state->HasSelection() ? ImMin(state->Stb.select_start, state->Stb.select_end) : 0; in InputTextEx()
4327 const int ie = state->HasSelection() ? ImMax(state->Stb.select_start, state->Stb.select_end) : state->CurLenW; in InputTextEx()
4465 const int utf8_selection_end = callback_data.SelectionEnd = ImTextCountUtf8BytesFromStr(text, text + state->Stb.select_end); in InputTextEx()
4477 if (callback_data.SelectionEnd != utf8_selection_end || buf_dirty) { state->Stb.select_end = (callback_data.SelectionEnd == callback_data.SelectionStart) ? state->Stb.select_start : ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.SelectionEnd); } in InputTextEx()
4574 // FIXME: This should occur on buf_display but we'd need to maintain cursor/select_start/select_end for UTF-8. in InputTextEx()
4591 searches_input_ptr[1] = text_begin + ImMin(state->Stb.select_start, state->Stb.select_end); in InputTextEx()
4667 const ImWchar* text_selected_begin = text_begin + ImMin(state->Stb.select_start, state->Stb.select_end); in InputTextEx()
4668 const ImWchar* text_selected_end = text_begin + ImMax(state->Stb.select_start, state->Stb.select_end); in InputTextEx()
/third_party/glfw/deps/
H A Dnuklear.h4289 int select_end; member
5402 int select_end; member
6014 NK_LIB void nk_do_property(nk_flags *ws, struct nk_command_buffer *out, struct nk_rect property, const char *name, struct nk_property_variant *variant, float inc_per_pixel, char *buffer, int *len, int *state, int *cursor, int *select_begin, int *select_end, const struct nk_style_property *style, enum nk_property_filter filter, struct nk_input *in, const struct nk_user_font *font, struct nk_text_edit *text_edit, enum nk_button_behavior behavior);
21720 #define NK_TEXT_HAS_SELECTION(s) ((s)->select_start != (s)->select_end)
21820 state->select_end = state->cursor; in nk_textedit_click()
21830 if (state->select_start == state->select_end) in nk_textedit_drag()
21832 state->cursor = state->select_end = p; in nk_textedit_drag()
21898 if (state->select_end > n) state->select_end = n; in nk_textedit_clamp()
21900 if (state->select_start == state->select_end) in nk_textedit_clamp()
23628 nk_do_property(nk_flags *ws, struct nk_command_buffer *out, struct nk_rect property, const char *name, struct nk_property_variant *variant, float inc_per_pixel, char *buffer, int *len, int *state, int *cursor, int *select_begin, int *select_end, const struct nk_style_property *style, enum nk_property_filter filter, struct nk_input *in, const struct nk_user_font *font, struct nk_text_edit *text_edit, enum nk_button_behavior behavior) nk_do_property() argument
23855 int *select_end = 0; nk_property() local
[all...]
/third_party/sqlite/src/
H A Dsqlite3.c[all...]

Completed in 192 milliseconds