Home
last modified time | relevance | path

Searched refs:select_start (Results 1 - 7 of 7) sorted by relevance

/third_party/mesa3d/src/imgui/
H A Dimstb_textedit.h329 int select_start; // selection start point member
468 state->select_start = state->cursor; in stb_textedit_click()
487 if (state->select_start == state->select_end) in stb_textedit_drag()
488 state->select_start = state->cursor; in stb_textedit_drag()
572 #define STB_TEXT_HAS_SELECTION(s) ((s)->select_start != (s)->select_end)
579 if (state->select_start > n) state->select_start = n; in stb_textedit_clamp()
582 if (state->select_start == state->select_end) in stb_textedit_clamp()
583 state->cursor = state->select_start; in stb_textedit_clamp()
601 if (state->select_start < stat 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;
3538 const int utf8_selection_start = callback_data.SelectionStart = ImTextCountUtf8BytesFromStr(text, text + edit_state.StbState.select_start);
3549 if (callback_data.SelectionStart != utf8_selection_start) { edit_state.StbState.select_start = ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.SelectionStart); }
3634 // FIXME: This should occur on buf_display but we'd need to maintain cursor/select_start/select_end for UTF-8.
3639 // Count lines + find lines numbers straddling 'cursor' and 'select_start' position.
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_stat
[all...]
/third_party/skia/third_party/externals/imgui/
H A Dimstb_textedit.h327 int select_start; // selection start point member
470 state->select_start = state->cursor; in stb_textedit_click()
489 if (state->select_start == state->select_end) in stb_textedit_drag()
490 state->select_start = state->cursor; in stb_textedit_drag()
574 #define STB_TEXT_HAS_SELECTION(s) ((s)->select_start != (s)->select_end)
581 if (state->select_start > n) state->select_start = n; in stb_textedit_clamp()
584 if (state->select_start == state->select_end) in stb_textedit_clamp()
585 state->cursor = state->select_start; in stb_textedit_clamp()
603 if (state->select_start < stat 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; }
1038 int GetSelectionStart() const { return Stb.select_start; }
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()
4464 const int utf8_selection_start = callback_data.SelectionStart = ImTextCountUtf8BytesFromStr(text, text + state->Stb.select_start); in InputTextEx()
4476 if (callback_data.SelectionStart != utf8_selection_start || buf_dirty) { state->Stb.select_start = (callback_data.SelectionStart == callback_data.CursorPos) ? state->Stb.cursor : ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.SelectionStart); } 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()
4579 // Find lines numbers straddling 'cursor' (slot 0) and 'select_start' (slot 1) positions. 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, stat in InputTextEx()
[all...]
/third_party/glfw/deps/
H A Dnuklear.h4288 int select_start; member
5401 int select_start; member
21720 #define NK_TEXT_HAS_SELECTION(s) ((s)->select_start != (s)->select_end)
21819 state->select_start = state->cursor; in nk_textedit_click()
21830 if (state->select_start == state->select_end) in nk_textedit_drag()
21831 state->select_start = state->cursor; in nk_textedit_drag()
21897 if (state->select_start > n) state->select_start = n; in nk_textedit_clamp()
21900 if (state->select_start == state->select_end) in nk_textedit_clamp()
21901 state->cursor = state->select_start; in nk_textedit_clamp()
[all...]

Completed in 72 milliseconds