/GUIX-v6.2.1/common/src/ |
D | gx_single_line_text_input_event_process.c | 83 static UINT _gx_single_line_text_input_pen_down_process(GX_SINGLE_LINE_TEXT_INPUT *text_input, GX_E… in _gx_single_line_text_input_pen_down_process() argument 86 UINT start_mark = text_input -> gx_single_line_text_input_start_mark; in _gx_single_line_text_input_pen_down_process() 87 UINT end_mark = text_input -> gx_single_line_text_input_end_mark; in _gx_single_line_text_input_pen_down_process() 89 _gx_system_input_capture((GX_WIDGET *)text_input); in _gx_single_line_text_input_pen_down_process() 94 …_gx_single_line_text_input_text_rectangle_get(text_input, (INT)(start_mark - end_mark), &dirty_are… in _gx_single_line_text_input_pen_down_process() 97 _gx_system_dirty_partial_add((GX_WIDGET *)text_input, &dirty_area); in _gx_single_line_text_input_pen_down_process() 101 …_gx_single_line_text_input_position_get(text_input, (UINT)((*event_ptr).gx_event_payload.gx_event_… in _gx_single_line_text_input_pen_down_process() 104 …text_input -> gx_single_line_text_input_start_mark = text_input -> gx_single_line_text_input_inser… in _gx_single_line_text_input_pen_down_process() 105 …text_input -> gx_single_line_text_input_end_mark = text_input -> gx_single_line_text_input_insert_… in _gx_single_line_text_input_pen_down_process() 108 return _gx_widget_event_process((GX_WIDGET *)text_input, event_ptr); in _gx_single_line_text_input_pen_down_process() [all …]
|
D | gx_multi_line_text_input_event_process.c | 89 static UINT _gx_multi_line_text_input_pen_down_process(GX_MULTI_LINE_TEXT_INPUT *text_input, GX_EVE… in _gx_multi_line_text_input_pen_down_process() argument 91 GX_TEXT_INPUT_CURSOR *cursor_ptr = &text_input -> gx_multi_line_text_input_cursor_instance; in _gx_multi_line_text_input_pen_down_process() 94 UINT start_mark = text_input -> gx_multi_line_text_input_start_mark; in _gx_multi_line_text_input_pen_down_process() 95 UINT end_mark = text_input -> gx_multi_line_text_input_end_mark; in _gx_multi_line_text_input_pen_down_process() 97 _gx_system_input_capture((GX_WIDGET *)text_input); in _gx_multi_line_text_input_pen_down_process() 99 scroll_shift = text_input -> gx_multi_line_text_view_text_scroll_shift; in _gx_multi_line_text_input_pen_down_process() 103 _gx_multi_line_text_input_highlight_rectangle_get(text_input, &cursor_rect); in _gx_multi_line_text_input_pen_down_process() 112 …_gx_multi_line_text_input_cursor_pos_calculate(text_input, (*event_ptr).gx_event_payload.gx_event_… in _gx_multi_line_text_input_pen_down_process() 115 …text_input -> gx_multi_line_text_input_start_mark = text_input -> gx_multi_line_text_input_text_in… in _gx_multi_line_text_input_pen_down_process() 116 …text_input -> gx_multi_line_text_input_end_mark = text_input -> gx_multi_line_text_input_text_inse… in _gx_multi_line_text_input_pen_down_process() [all …]
|
D | gx_multi_line_text_input_left_arrow.c | 90 UINT _gx_multi_line_text_input_left_arrow(GX_MULTI_LINE_TEXT_INPUT *text_input) in _gx_multi_line_text_input_left_arrow() argument 92 GX_TEXT_INPUT_CURSOR *cursor_ptr = &text_input -> gx_multi_line_text_input_cursor_instance; in _gx_multi_line_text_input_left_arrow() 101 UINT start_mark = text_input -> gx_multi_line_text_input_start_mark; in _gx_multi_line_text_input_left_arrow() 102 UINT end_mark = text_input -> gx_multi_line_text_input_end_mark; in _gx_multi_line_text_input_left_arrow() 110 _gx_multi_line_text_input_cursor_visible(text_input); in _gx_multi_line_text_input_left_arrow() 113 _gx_multi_line_text_input_highlight_rectangle_get(text_input, &cur_rect); in _gx_multi_line_text_input_left_arrow() 117 text_input -> gx_multi_line_text_input_text_insert_position = start_mark; in _gx_multi_line_text_input_left_arrow() 119 shift = text_input -> gx_multi_line_text_view_text_scroll_shift; in _gx_multi_line_text_input_left_arrow() 122 _gx_multi_line_text_input_cursor_pos_update(text_input, GX_TRUE); in _gx_multi_line_text_input_left_arrow() 125 if (shift == text_input -> gx_multi_line_text_view_text_scroll_shift) in _gx_multi_line_text_input_left_arrow() [all …]
|
D | gx_single_line_text_input_create.c | 89 UINT _gx_single_line_text_input_create(GX_SINGLE_LINE_TEXT_INPUT *text_input, in _gx_single_line_text_input_create() argument 106 _gx_prompt_create((GX_PROMPT *)text_input, name, GX_NULL, 0, style, text_input_id, size); in _gx_single_line_text_input_create() 123 text_input -> gx_widget_status |= GX_STATUS_DYNAMIC_BUFFER; in _gx_single_line_text_input_create() 126 cursor_ptr = &text_input -> gx_single_line_text_input_cursor_instance; in _gx_single_line_text_input_create() 129 text_input -> gx_widget_type = GX_TYPE_SINGLE_LINE_TEXT_INPUT; in _gx_single_line_text_input_create() 130 text_input -> gx_prompt_font_id = GX_FONT_ID_TEXT_INPUT; in _gx_single_line_text_input_create() 131 text_input -> gx_prompt_normal_text_color = GX_COLOR_ID_TEXT_INPUT_TEXT; in _gx_single_line_text_input_create() 132 text_input -> gx_widget_normal_fill_color = GX_COLOR_ID_TEXT_INPUT_FILL; in _gx_single_line_text_input_create() 133 text_input -> gx_single_line_text_input_readonly_text_color = GX_COLOR_ID_READONLY_TEXT; in _gx_single_line_text_input_create() 134 text_input -> gx_single_line_text_input_readonly_fill_color = GX_COLOR_ID_READONLY_FILL; in _gx_single_line_text_input_create() [all …]
|
D | gx_multi_line_text_input_right_arrow.c | 86 UINT _gx_multi_line_text_input_right_arrow(GX_MULTI_LINE_TEXT_INPUT *text_input) in _gx_multi_line_text_input_right_arrow() argument 88 GX_TEXT_INPUT_CURSOR *cursor_ptr = &text_input -> gx_multi_line_text_input_cursor_instance; in _gx_multi_line_text_input_right_arrow() 94 UINT start_mark = text_input -> gx_multi_line_text_input_start_mark; in _gx_multi_line_text_input_right_arrow() 95 UINT end_mark = text_input -> gx_multi_line_text_input_end_mark; in _gx_multi_line_text_input_right_arrow() 107 _gx_multi_line_text_input_cursor_visible(text_input); in _gx_multi_line_text_input_right_arrow() 110 _gx_multi_line_text_input_highlight_rectangle_get(text_input, &cur_rect); in _gx_multi_line_text_input_right_arrow() 114 text_input -> gx_multi_line_text_input_text_insert_position = start_mark; in _gx_multi_line_text_input_right_arrow() 116 shift = text_input -> gx_multi_line_text_view_text_scroll_shift; in _gx_multi_line_text_input_right_arrow() 119 _gx_multi_line_text_input_cursor_pos_update(text_input, GX_TRUE); in _gx_multi_line_text_input_right_arrow() 122 if (shift == text_input -> gx_multi_line_text_view_text_scroll_shift) in _gx_multi_line_text_input_right_arrow() [all …]
|
D | gx_multi_line_text_input_backspace.c | 102 UINT _gx_multi_line_text_input_backspace(GX_MULTI_LINE_TEXT_INPUT *text_input) in _gx_multi_line_text_input_backspace() argument 104 GX_TEXT_INPUT_CURSOR *cursor_ptr = &text_input -> gx_multi_line_text_input_cursor_instance; in _gx_multi_line_text_input_backspace() 105 GX_MULTI_LINE_TEXT_VIEW *view = (GX_MULTI_LINE_TEXT_VIEW *)text_input; in _gx_multi_line_text_input_backspace() 118 UINT start_mark = text_input -> gx_multi_line_text_input_start_mark; in _gx_multi_line_text_input_backspace() 119 UINT end_mark = text_input -> gx_multi_line_text_input_end_mark; in _gx_multi_line_text_input_backspace() 123 return _gx_multi_line_text_input_delete(text_input); in _gx_multi_line_text_input_backspace() 126 insert_pos = text_input -> gx_multi_line_text_input_text_insert_position; in _gx_multi_line_text_input_backspace() 130 …_gx_widget_font_get((GX_WIDGET *)text_input, text_input -> gx_multi_line_text_view_font_id, &font); in _gx_multi_line_text_input_backspace() 140 text_input -> gx_multi_line_text_input_start_mark = 0; in _gx_multi_line_text_input_backspace() 141 text_input -> gx_multi_line_text_input_end_mark = 0; in _gx_multi_line_text_input_backspace() [all …]
|
D | gx_multi_line_text_input_delete.c | 98 UINT _gx_multi_line_text_input_delete(GX_MULTI_LINE_TEXT_INPUT *text_input) in _gx_multi_line_text_input_delete() argument 100 GX_TEXT_INPUT_CURSOR *cursor_ptr = &text_input -> gx_multi_line_text_input_cursor_instance; in _gx_multi_line_text_input_delete() 101 GX_MULTI_LINE_TEXT_VIEW *view = (GX_MULTI_LINE_TEXT_VIEW *)text_input; in _gx_multi_line_text_input_delete() 114 UINT start_mark = text_input -> gx_multi_line_text_input_start_mark; in _gx_multi_line_text_input_delete() 115 UINT end_mark = text_input -> gx_multi_line_text_input_end_mark; in _gx_multi_line_text_input_delete() 119 return _gx_multi_line_text_input_backspace(text_input); in _gx_multi_line_text_input_delete() 122 insert_pos = text_input -> gx_multi_line_text_input_text_insert_position; in _gx_multi_line_text_input_delete() 123 string_size = text_input -> gx_multi_line_text_view_text.gx_string_length; in _gx_multi_line_text_input_delete() 127 …_gx_widget_font_get((GX_WIDGET *)text_input, text_input -> gx_multi_line_text_view_font_id, &font); in _gx_multi_line_text_input_delete() 137 text_input -> gx_multi_line_text_input_start_mark = 0; in _gx_multi_line_text_input_delete() [all …]
|
D | gx_multi_line_text_input_mark_next.c | 86 UINT _gx_multi_line_text_input_mark_next(GX_MULTI_LINE_TEXT_INPUT *text_input) in _gx_multi_line_text_input_mark_next() argument 94 UINT start_mark = text_input -> gx_multi_line_text_input_start_mark; in _gx_multi_line_text_input_mark_next() 95 UINT end_mark = text_input -> gx_multi_line_text_input_end_mark; in _gx_multi_line_text_input_mark_next() 99 start_mark = text_input -> gx_multi_line_text_input_text_insert_position; in _gx_multi_line_text_input_mark_next() 100 end_mark = text_input -> gx_multi_line_text_input_text_insert_position; in _gx_multi_line_text_input_mark_next() 102 text_input -> gx_multi_line_text_input_start_mark = start_mark; in _gx_multi_line_text_input_mark_next() 103 text_input -> gx_multi_line_text_input_end_mark = end_mark; in _gx_multi_line_text_input_mark_next() 106 if (end_mark < text_input -> gx_multi_line_text_view_text.gx_string_length) in _gx_multi_line_text_input_mark_next() 109 string.gx_string_ptr = text_input -> gx_multi_line_text_view_text.gx_string_ptr + end_mark; in _gx_multi_line_text_input_mark_next() 110 … string.gx_string_length = text_input -> gx_multi_line_text_view_text.gx_string_length - end_mark; in _gx_multi_line_text_input_mark_next() [all …]
|
D | gx_multi_line_text_input_mark_previous.c | 91 UINT _gx_multi_line_text_input_mark_previous(GX_MULTI_LINE_TEXT_INPUT *text_input) in _gx_multi_line_text_input_mark_previous() argument 93 GX_TEXT_INPUT_CURSOR *cursor_ptr = &text_input -> gx_multi_line_text_input_cursor_instance; in _gx_multi_line_text_input_mark_previous() 101 UINT start_mark = text_input -> gx_multi_line_text_input_start_mark; in _gx_multi_line_text_input_mark_previous() 102 UINT end_mark = text_input -> gx_multi_line_text_input_end_mark; in _gx_multi_line_text_input_mark_previous() 106 start_mark = text_input -> gx_multi_line_text_input_text_insert_position; in _gx_multi_line_text_input_mark_previous() 107 end_mark = text_input -> gx_multi_line_text_input_text_insert_position; in _gx_multi_line_text_input_mark_previous() 109 text_input -> gx_multi_line_text_input_start_mark = start_mark; in _gx_multi_line_text_input_mark_previous() 110 text_input -> gx_multi_line_text_input_end_mark = end_mark; in _gx_multi_line_text_input_mark_previous() 115 cursor_line = (UINT)(text_input -> gx_multi_line_text_input_text_cursor_line - 1); in _gx_multi_line_text_input_mark_previous() 116 cursor_line = (UINT)(cursor_line - text_input -> gx_multi_line_text_view_first_cache_line); in _gx_multi_line_text_input_mark_previous() [all …]
|
D | gx_multi_line_text_input_create.c | 90 UINT _gx_multi_line_text_input_create(GX_MULTI_LINE_TEXT_INPUT *text_input, in _gx_multi_line_text_input_create() argument 99 GX_MULTI_LINE_TEXT_VIEW *view = (GX_MULTI_LINE_TEXT_VIEW *)text_input; in _gx_multi_line_text_input_create() 100 GX_TEXT_INPUT_CURSOR *cursor_ptr = &text_input -> gx_multi_line_text_input_cursor_instance; in _gx_multi_line_text_input_create() 123 text_input -> gx_widget_status |= GX_STATUS_DYNAMIC_BUFFER; in _gx_multi_line_text_input_create() 133 text_input -> gx_multi_line_text_view_text.gx_string_ptr = input_buffer; in _gx_multi_line_text_input_create() 134 text_input -> gx_multi_line_text_view_text.gx_string_length = 0; in _gx_multi_line_text_input_create() 137 text_input -> gx_widget_type = GX_TYPE_MULTI_LINE_TEXT_INPUT; in _gx_multi_line_text_input_create() 138 …text_input -> gx_widget_event_process_function = (UINT (*)(GX_WIDGET *, GX_EVENT *))_gx_multi_line… in _gx_multi_line_text_input_create() 139 text_input -> gx_widget_draw_function = (VOID (*)(GX_WIDGET *))_gx_multi_line_text_input_draw; in _gx_multi_line_text_input_create() 140 text_input -> gx_multi_line_text_input_text_was_modified = GX_FALSE; in _gx_multi_line_text_input_create() [all …]
|
D | gx_multi_line_text_input_mark_end.c | 83 UINT _gx_multi_line_text_input_mark_end(GX_MULTI_LINE_TEXT_INPUT *text_input) in _gx_multi_line_text_input_mark_end() argument 85 GX_TEXT_INPUT_CURSOR *cursor_ptr = &text_input -> gx_multi_line_text_input_cursor_instance; in _gx_multi_line_text_input_mark_end() 90 UINT start_mark = text_input -> gx_multi_line_text_input_start_mark; in _gx_multi_line_text_input_mark_end() 91 UINT end_mark = text_input -> gx_multi_line_text_input_end_mark; in _gx_multi_line_text_input_mark_end() 96 start_mark = text_input -> gx_multi_line_text_input_text_insert_position; in _gx_multi_line_text_input_mark_end() 97 end_mark = text_input -> gx_multi_line_text_input_text_insert_position; in _gx_multi_line_text_input_mark_end() 99 text_input -> gx_multi_line_text_input_start_mark = start_mark; in _gx_multi_line_text_input_mark_end() 100 text_input -> gx_multi_line_text_input_end_mark = end_mark; in _gx_multi_line_text_input_mark_end() 104 cursor_pos.gx_point_x = (GX_VALUE)(text_input -> gx_window_client.gx_rectangle_right - in _gx_multi_line_text_input_mark_end() 105 text_input -> gx_multi_line_text_view_whitespace); in _gx_multi_line_text_input_mark_end() [all …]
|
D | gx_multi_line_text_input_mark_home.c | 83 UINT _gx_multi_line_text_input_mark_home(GX_MULTI_LINE_TEXT_INPUT *text_input) in _gx_multi_line_text_input_mark_home() argument 85 GX_TEXT_INPUT_CURSOR *cursor_ptr = &text_input -> gx_multi_line_text_input_cursor_instance; in _gx_multi_line_text_input_mark_home() 90 UINT start_mark = text_input -> gx_multi_line_text_input_start_mark; in _gx_multi_line_text_input_mark_home() 91 UINT end_mark = text_input -> gx_multi_line_text_input_end_mark; in _gx_multi_line_text_input_mark_home() 96 start_mark = text_input -> gx_multi_line_text_input_text_insert_position; in _gx_multi_line_text_input_mark_home() 97 end_mark = text_input -> gx_multi_line_text_input_text_insert_position; in _gx_multi_line_text_input_mark_home() 99 text_input -> gx_multi_line_text_input_start_mark = start_mark; in _gx_multi_line_text_input_mark_home() 100 text_input -> gx_multi_line_text_input_end_mark = end_mark; in _gx_multi_line_text_input_mark_home() 104 cursor_pos.gx_point_x = (GX_VALUE)(text_input -> gx_window_client.gx_rectangle_left + in _gx_multi_line_text_input_mark_home() 105 text_input -> gx_multi_line_text_view_whitespace); in _gx_multi_line_text_input_mark_home() [all …]
|
D | gx_multi_line_text_input_char_insert.c | 79 UINT _gx_multi_line_text_input_char_insert(GX_MULTI_LINE_TEXT_INPUT *text_input, GX_UBYTE *str, UIN… in _gx_multi_line_text_input_char_insert() argument 86 status = _gx_multi_line_text_input_char_insert_ext(text_input, &string); in _gx_multi_line_text_input_char_insert() 149 UINT _gx_multi_line_text_input_char_insert_ext(GX_MULTI_LINE_TEXT_INPUT *text_input, GX_CONST GX_ST… in _gx_multi_line_text_input_char_insert_ext() argument 151 GX_TEXT_INPUT_CURSOR *cursor_ptr = &text_input -> gx_multi_line_text_input_cursor_instance; in _gx_multi_line_text_input_char_insert_ext() 170 …if (text_input -> gx_multi_line_text_input_start_mark != text_input -> gx_multi_line_text_input_en… in _gx_multi_line_text_input_char_insert_ext() 172 …if (text_input -> gx_multi_line_text_input_end_mark < text_input -> gx_multi_line_text_input_start… in _gx_multi_line_text_input_char_insert_ext() 174 _gx_multi_line_text_input_delete(text_input); in _gx_multi_line_text_input_char_insert_ext() 178 _gx_multi_line_text_input_backspace(text_input); in _gx_multi_line_text_input_char_insert_ext() 182 string_size = text_input -> gx_multi_line_text_view_text.gx_string_length; in _gx_multi_line_text_input_char_insert_ext() 183 buffer_size = text_input -> gx_multi_line_text_input_buffer_size; in _gx_multi_line_text_input_char_insert_ext() [all …]
|
D | gx_single_line_text_input_mark_end.c | 84 UINT _gx_single_line_text_input_mark_end(GX_SINGLE_LINE_TEXT_INPUT *text_input) in _gx_single_line_text_input_mark_end() argument 93 UINT start_mark = text_input -> gx_single_line_text_input_start_mark; in _gx_single_line_text_input_mark_end() 94 UINT end_mark = text_input -> gx_single_line_text_input_end_mark; in _gx_single_line_text_input_mark_end() 97 …if (text_input -> gx_single_line_text_input_insert_pos == text_input -> gx_single_line_text_input_… in _gx_single_line_text_input_mark_end() 102 cursor_ptr = &text_input -> gx_single_line_text_input_cursor_instance; in _gx_single_line_text_input_mark_end() 103 string.gx_string_ptr = text_input -> gx_single_line_text_input_buffer; in _gx_single_line_text_input_mark_end() 104 string.gx_string_length = text_input -> gx_single_line_text_input_string_size; in _gx_single_line_text_input_mark_end() 109 start_mark = text_input -> gx_single_line_text_input_insert_pos; in _gx_single_line_text_input_mark_end() 110 end_mark = text_input -> gx_single_line_text_input_insert_pos; in _gx_single_line_text_input_mark_end() 112 text_input -> gx_single_line_text_input_start_mark = start_mark; in _gx_single_line_text_input_mark_end() [all …]
|
D | gx_multi_line_text_input_end.c | 81 UINT _gx_multi_line_text_input_end(GX_MULTI_LINE_TEXT_INPUT *text_input) in _gx_multi_line_text_input_end() argument 83 GX_TEXT_INPUT_CURSOR *cursor_ptr = &text_input -> gx_multi_line_text_input_cursor_instance; in _gx_multi_line_text_input_end() 90 …if (text_input -> gx_multi_line_text_input_start_mark != text_input -> gx_multi_line_text_input_en… in _gx_multi_line_text_input_end() 92 _gx_multi_line_text_input_right_arrow(text_input); in _gx_multi_line_text_input_end() 97 …_gx_text_input_cursor_dirty_rectangle_get(&text_input -> gx_multi_line_text_input_cursor_instance,… in _gx_multi_line_text_input_end() 99 cur_pos.gx_point_x = (GX_VALUE)(text_input -> gx_window_client.gx_rectangle_right - in _gx_multi_line_text_input_end() 100 text_input -> gx_multi_line_text_view_whitespace); in _gx_multi_line_text_input_end() 103 _gx_multi_line_text_input_cursor_pos_calculate(text_input, cur_pos); in _gx_multi_line_text_input_end() 107 line_cache_start = text_input -> gx_multi_line_text_view_first_cache_line; in _gx_multi_line_text_input_end() 109 index = text_input -> gx_multi_line_text_input_text_cursor_line - 1; in _gx_multi_line_text_input_end() [all …]
|
D | gx_multi_line_text_input_mark_down.c | 81 UINT _gx_multi_line_text_input_mark_down(GX_MULTI_LINE_TEXT_INPUT *text_input) in _gx_multi_line_text_input_mark_down() argument 83 GX_TEXT_INPUT_CURSOR *cursor_ptr = &text_input -> gx_multi_line_text_input_cursor_instance; in _gx_multi_line_text_input_mark_down() 92 …_gx_widget_font_get((GX_WIDGET *)text_input, text_input -> gx_multi_line_text_view_font_id, &font); in _gx_multi_line_text_input_mark_down() 99 …if (text_input -> gx_multi_line_text_input_start_mark == text_input -> gx_multi_line_text_input_en… in _gx_multi_line_text_input_mark_down() 101 …text_input -> gx_multi_line_text_input_start_mark = text_input -> gx_multi_line_text_input_text_in… in _gx_multi_line_text_input_mark_down() 102 …text_input -> gx_multi_line_text_input_end_mark = text_input -> gx_multi_line_text_input_text_inse… in _gx_multi_line_text_input_mark_down() 106 shift = text_input -> gx_multi_line_text_view_text_scroll_shift; in _gx_multi_line_text_input_mark_down() 108 …line_height = (GX_VALUE)(font -> gx_font_line_height + text_input -> gx_multi_line_text_view_line_… in _gx_multi_line_text_input_mark_down() 117 _gx_multi_line_text_input_cursor_pos_calculate(text_input, cursor_pos); in _gx_multi_line_text_input_mark_down() 119 …text_input -> gx_multi_line_text_input_end_mark = text_input -> gx_multi_line_text_input_text_inse… in _gx_multi_line_text_input_mark_down() [all …]
|
D | gx_single_line_text_input_mark_home.c | 86 UINT _gx_single_line_text_input_mark_home(GX_SINGLE_LINE_TEXT_INPUT *text_input) in _gx_single_line_text_input_mark_home() argument 95 UINT start_mark = text_input -> gx_single_line_text_input_start_mark; in _gx_single_line_text_input_mark_home() 96 UINT end_mark = text_input -> gx_single_line_text_input_end_mark; in _gx_single_line_text_input_mark_home() 99 cursor_ptr = &text_input -> gx_single_line_text_input_cursor_instance; in _gx_single_line_text_input_mark_home() 102 if (text_input -> gx_single_line_text_input_insert_pos == 0) in _gx_single_line_text_input_mark_home() 110 start_mark = text_input -> gx_single_line_text_input_insert_pos; in _gx_single_line_text_input_mark_home() 111 end_mark = text_input -> gx_single_line_text_input_insert_pos; in _gx_single_line_text_input_mark_home() 113 text_input -> gx_single_line_text_input_start_mark = start_mark; in _gx_single_line_text_input_mark_home() 114 text_input -> gx_single_line_text_input_end_mark = end_mark; in _gx_single_line_text_input_mark_home() 117 _gx_widget_border_width_get((GX_WIDGET *)text_input, &border_width); in _gx_single_line_text_input_mark_home() [all …]
|
D | gx_multi_line_text_input_text_set.c | 79 static VOID _gx_multi_line_text_input_new_line_character_get(GX_MULTI_LINE_TEXT_INPUT *text_input) in _gx_multi_line_text_input_new_line_character_get() argument 88 string = text_input -> gx_multi_line_text_view_text; in _gx_multi_line_text_input_new_line_character_get() 105 …memcpy(text_input -> gx_multi_line_text_input_new_line_character, "\r\n", 3); /* Use case of memcp… in _gx_multi_line_text_input_new_line_character_get() 106 text_input -> gx_multi_line_text_input_new_line_character_size = 2; in _gx_multi_line_text_input_new_line_character_get() 110 …memcpy(text_input -> gx_multi_line_text_input_new_line_character, "\r", 2); /* Use case of memcpy … in _gx_multi_line_text_input_new_line_character_get() 111 text_input -> gx_multi_line_text_input_new_line_character_size = 1; in _gx_multi_line_text_input_new_line_character_get() 118 …memcpy(text_input -> gx_multi_line_text_input_new_line_character, "\n", 2); /* Use case of memcpy … in _gx_multi_line_text_input_new_line_character_get() 119 text_input -> gx_multi_line_text_input_new_line_character_size = 1; in _gx_multi_line_text_input_new_line_character_get() 170 UINT _gx_multi_line_text_input_text_set(GX_MULTI_LINE_TEXT_INPUT *text_input, GX_CONST GX_CHAR *tex… in _gx_multi_line_text_input_text_set() argument 181 status = _gx_multi_line_text_input_text_set_ext(text_input, &new_string); in _gx_multi_line_text_input_text_set() [all …]
|
D | gx_multi_line_text_input_mark_up.c | 84 UINT _gx_multi_line_text_input_mark_up(GX_MULTI_LINE_TEXT_INPUT *text_input) in _gx_multi_line_text_input_mark_up() argument 86 GX_TEXT_INPUT_CURSOR *cursor_ptr = &text_input -> gx_multi_line_text_input_cursor_instance; in _gx_multi_line_text_input_mark_up() 93 UINT start_mark = text_input -> gx_multi_line_text_input_start_mark; in _gx_multi_line_text_input_mark_up() 94 UINT end_mark = text_input -> gx_multi_line_text_input_end_mark; in _gx_multi_line_text_input_mark_up() 99 start_mark = text_input -> gx_multi_line_text_input_text_insert_position; in _gx_multi_line_text_input_mark_up() 100 end_mark = text_input -> gx_multi_line_text_input_text_insert_position; in _gx_multi_line_text_input_mark_up() 102 text_input -> gx_multi_line_text_input_start_mark = start_mark; in _gx_multi_line_text_input_mark_up() 103 text_input -> gx_multi_line_text_input_end_mark = end_mark; in _gx_multi_line_text_input_mark_up() 106 shift = text_input -> gx_multi_line_text_view_text_scroll_shift; in _gx_multi_line_text_input_mark_up() 108 …_gx_widget_font_get((GX_WIDGET *)text_input, text_input -> gx_multi_line_text_view_font_id, &font); in _gx_multi_line_text_input_mark_up() [all …]
|
D | gx_single_line_text_input_backspace.c | 87 UINT _gx_single_line_text_input_backspace(GX_SINGLE_LINE_TEXT_INPUT *text_input) in _gx_single_line_text_input_backspace() argument 89 GX_TEXT_INPUT_CURSOR *cursor_ptr = &text_input -> gx_single_line_text_input_cursor_instance; in _gx_single_line_text_input_backspace() 90 GX_WIDGET *widget = (GX_WIDGET *)text_input; in _gx_single_line_text_input_backspace() 106 …if (text_input -> gx_single_line_text_input_start_mark > text_input -> gx_single_line_text_input_e… in _gx_single_line_text_input_backspace() 108 return _gx_single_line_text_input_character_delete(text_input); in _gx_single_line_text_input_backspace() 111 insert_pos = text_input -> gx_single_line_text_input_insert_pos; in _gx_single_line_text_input_backspace() 115 input_buffer = text_input -> gx_single_line_text_input_buffer; in _gx_single_line_text_input_backspace() 116 string_size = text_input -> gx_single_line_text_input_string_size; in _gx_single_line_text_input_backspace() 119 _gx_widget_client_get((GX_WIDGET *)text_input, border_width, &client); in _gx_single_line_text_input_backspace() 121 …if (text_input -> gx_single_line_text_input_start_mark != text_input -> gx_single_line_text_input_… in _gx_single_line_text_input_backspace() [all …]
|
D | gx_multi_line_text_input_down_arrow.c | 81 UINT _gx_multi_line_text_input_down_arrow(GX_MULTI_LINE_TEXT_INPUT *text_input) in _gx_multi_line_text_input_down_arrow() argument 83 GX_TEXT_INPUT_CURSOR *cursor_ptr = &text_input -> gx_multi_line_text_input_cursor_instance; in _gx_multi_line_text_input_down_arrow() 90 …_gx_widget_font_get((GX_WIDGET *)text_input, text_input -> gx_multi_line_text_view_font_id, &font); in _gx_multi_line_text_input_down_arrow() 97 …if (text_input -> gx_multi_line_text_input_start_mark != text_input -> gx_multi_line_text_input_en… in _gx_multi_line_text_input_down_arrow() 99 _gx_multi_line_text_input_right_arrow(text_input); in _gx_multi_line_text_input_down_arrow() 103 …_gx_text_input_cursor_dirty_rectangle_get(&text_input -> gx_multi_line_text_input_cursor_instance,… in _gx_multi_line_text_input_down_arrow() 105 shift = text_input -> gx_multi_line_text_view_text_scroll_shift; in _gx_multi_line_text_input_down_arrow() 108 text_input -> gx_multi_line_text_view_line_space); in _gx_multi_line_text_input_down_arrow() 117 _gx_multi_line_text_input_cursor_pos_calculate(text_input, cursor_pos); in _gx_multi_line_text_input_down_arrow() 119 if (shift == text_input -> gx_multi_line_text_view_text_scroll_shift) in _gx_multi_line_text_input_down_arrow() [all …]
|
D | gx_multi_line_text_input_up_arrow.c | 84 UINT _gx_multi_line_text_input_up_arrow(GX_MULTI_LINE_TEXT_INPUT *text_input) in _gx_multi_line_text_input_up_arrow() argument 86 GX_TEXT_INPUT_CURSOR *cursor_ptr = &text_input -> gx_multi_line_text_input_cursor_instance; in _gx_multi_line_text_input_up_arrow() 93 …_gx_widget_font_get((GX_WIDGET *)text_input, text_input -> gx_multi_line_text_view_font_id, &font); in _gx_multi_line_text_input_up_arrow() 100 …if (text_input -> gx_multi_line_text_input_start_mark != text_input -> gx_multi_line_text_input_en… in _gx_multi_line_text_input_up_arrow() 102 _gx_multi_line_text_input_left_arrow(text_input); in _gx_multi_line_text_input_up_arrow() 106 …_gx_text_input_cursor_dirty_rectangle_get(&text_input -> gx_multi_line_text_input_cursor_instance,… in _gx_multi_line_text_input_up_arrow() 107 shift = text_input -> gx_multi_line_text_view_text_scroll_shift; in _gx_multi_line_text_input_up_arrow() 110 text_input -> gx_multi_line_text_view_line_space); in _gx_multi_line_text_input_up_arrow() 119 _gx_multi_line_text_input_cursor_pos_calculate(text_input, cursor_pos); in _gx_multi_line_text_input_up_arrow() 122 if (shift == text_input -> gx_multi_line_text_view_text_scroll_shift) in _gx_multi_line_text_input_up_arrow() [all …]
|
D | gx_single_line_text_input_end.c | 84 UINT _gx_single_line_text_input_end(GX_SINGLE_LINE_TEXT_INPUT *text_input) in _gx_single_line_text_input_end() argument 93 UINT start_mark = text_input -> gx_single_line_text_input_start_mark; in _gx_single_line_text_input_end() 94 UINT end_mark = text_input -> gx_single_line_text_input_end_mark; in _gx_single_line_text_input_end() 100 text_input -> gx_single_line_text_input_start_mark = 0; in _gx_single_line_text_input_end() 101 text_input -> gx_single_line_text_input_end_mark = 0; in _gx_single_line_text_input_end() 104 cursor_ptr = &text_input -> gx_single_line_text_input_cursor_instance; in _gx_single_line_text_input_end() 105 string.gx_string_ptr = text_input -> gx_single_line_text_input_buffer; in _gx_single_line_text_input_end() 106 string.gx_string_length = text_input -> gx_single_line_text_input_string_size; in _gx_single_line_text_input_end() 109 _gx_widget_font_get((GX_WIDGET *)text_input, text_input -> gx_prompt_font_id, &gx_font); in _gx_single_line_text_input_end() 112 _gx_widget_border_width_get((GX_WIDGET *)text_input, &border_width); in _gx_single_line_text_input_end() [all …]
|
D | gx_single_line_text_input_home.c | 85 UINT _gx_single_line_text_input_home(GX_SINGLE_LINE_TEXT_INPUT *text_input) in _gx_single_line_text_input_home() argument 94 UINT start_mark = text_input -> gx_single_line_text_input_start_mark; in _gx_single_line_text_input_home() 95 UINT end_mark = text_input -> gx_single_line_text_input_end_mark; in _gx_single_line_text_input_home() 101 text_input -> gx_single_line_text_input_start_mark = 0; in _gx_single_line_text_input_home() 102 text_input -> gx_single_line_text_input_end_mark = 0; in _gx_single_line_text_input_home() 105 cursor_ptr = &text_input -> gx_single_line_text_input_cursor_instance; in _gx_single_line_text_input_home() 108 if (text_input -> gx_single_line_text_input_insert_pos == 0) in _gx_single_line_text_input_home() 113 _gx_widget_border_width_get((GX_WIDGET *)text_input, &border_width); in _gx_single_line_text_input_home() 114 _gx_widget_client_get((GX_WIDGET *)text_input, border_width, &client); in _gx_single_line_text_input_home() 116 switch (text_input -> gx_widget_style & GX_STYLE_TEXT_ALIGNMENT_MASK) in _gx_single_line_text_input_home() [all …]
|
D | gx_multi_line_text_input_buffer_clear.c | 82 UINT _gx_multi_line_text_input_buffer_clear(GX_MULTI_LINE_TEXT_INPUT *text_input) in _gx_multi_line_text_input_buffer_clear() argument 86 if (text_input -> gx_multi_line_text_view_text.gx_string_length != 0) in _gx_multi_line_text_input_buffer_clear() 88 …_gx_multi_line_text_input_char_remove(text_input, 0, text_input -> gx_multi_line_text_view_text.gx… in _gx_multi_line_text_input_buffer_clear() 91 text_input -> gx_multi_line_text_view_first_cache_line = 0; in _gx_multi_line_text_input_buffer_clear() 92 …memset(text_input -> gx_multi_line_text_view_line_index, 0, sizeof(UINT) * GX_MULTI_LINE_INDEX_CAC… in _gx_multi_line_text_input_buffer_clear() 95 _gx_multi_line_text_view_string_total_rows_compute((GX_MULTI_LINE_TEXT_VIEW *)text_input); in _gx_multi_line_text_input_buffer_clear() 97 text_input -> gx_multi_line_text_input_text_insert_position = 0; in _gx_multi_line_text_input_buffer_clear() 99 _gx_window_scrollbar_find((GX_WINDOW *)text_input, GX_TYPE_VERTICAL_SCROLL, &scroll); in _gx_multi_line_text_input_buffer_clear() 106 _gx_multi_line_text_input_cursor_pos_update(text_input, GX_TRUE); in _gx_multi_line_text_input_buffer_clear() 109 _gx_system_dirty_mark((GX_WIDGET *)text_input); in _gx_multi_line_text_input_buffer_clear()
|