Home
last modified time | relevance | path

Searched refs:wheel (Results 1 – 25 of 73) sorted by relevance

123

/GUIX-v6.2.1/common/src/
Dgx_scroll_wheel_event_process.c84 static UINT _gx_scroll_wheel_timer_event_handler(GX_SCROLL_WHEEL *wheel, UINT timer_id) in _gx_scroll_wheel_timer_event_handler() argument
86 GX_WIDGET *widget = (GX_WIDGET *)wheel; in _gx_scroll_wheel_timer_event_handler()
95 …if (GX_ABS(wheel -> gx_scroll_wheel_selected_yshift) < GX_ABS(wheel -> gx_scroll_wheel_row_height)… in _gx_scroll_wheel_timer_event_handler()
99 shift = wheel -> gx_scroll_wheel_selected_yshift; in _gx_scroll_wheel_timer_event_handler()
103 if (wheel -> gx_scroll_wheel_selected_yshift > 0) in _gx_scroll_wheel_timer_event_handler()
105 shift = wheel -> gx_scroll_wheel_row_height / 3; in _gx_scroll_wheel_timer_event_handler()
109 shift = (GX_VALUE)(-wheel -> gx_scroll_wheel_row_height / 3); in _gx_scroll_wheel_timer_event_handler()
113 wheel -> gx_scroll_wheel_scroll(wheel, (GX_VALUE)(-shift)); in _gx_scroll_wheel_timer_event_handler()
119 wheel -> gx_scroll_wheel_animation_steps--; in _gx_scroll_wheel_timer_event_handler()
120 shift = wheel -> gx_scroll_wheel_animation_speed; in _gx_scroll_wheel_timer_event_handler()
[all …]
Dgx_generic_scroll_wheel_scroll.c88 UINT _gx_generic_scroll_wheel_scroll(GX_GENERIC_SCROLL_WHEEL *wheel, GX_VALUE shift) in _gx_generic_scroll_wheel_scroll() argument
100 if (!wheel -> gx_scroll_wheel_wrap_style_check((GX_SCROLL_WHEEL *)wheel)) in _gx_generic_scroll_wheel_scroll()
102 if ((shift > 0 && wheel -> gx_scroll_wheel_selected_row == 0) || in _gx_generic_scroll_wheel_scroll()
103 … (shift < 0 && wheel -> gx_scroll_wheel_selected_row == wheel -> gx_scroll_wheel_total_rows - 1)) in _gx_generic_scroll_wheel_scroll()
105 y_shift = wheel -> gx_scroll_wheel_selected_yshift + shift; in _gx_generic_scroll_wheel_scroll()
107 …min_shift = (wheel -> gx_scroll_wheel_selected_row - wheel -> gx_scroll_wheel_total_rows + 1) * wh… in _gx_generic_scroll_wheel_scroll()
108 … max_shift = (wheel -> gx_scroll_wheel_selected_row * wheel -> gx_scroll_wheel_row_height); in _gx_generic_scroll_wheel_scroll()
114 shift = (GX_VALUE)(shift + wheel -> gx_scroll_wheel_shift_error); in _gx_generic_scroll_wheel_scroll()
115 wheel -> gx_scroll_wheel_shift_error = (GX_BYTE)(shift % 4); in _gx_generic_scroll_wheel_scroll()
120 wheel -> gx_scroll_wheel_shift_error = 0; in _gx_generic_scroll_wheel_scroll()
[all …]
Dgx_scroll_wheel_selected_set.c76 UINT _gx_scroll_wheel_selected_set(GX_SCROLL_WHEEL *wheel, INT row) in _gx_scroll_wheel_selected_set() argument
80 if ((row < 0) || (wheel -> gx_scroll_wheel_total_rows == 0)) in _gx_scroll_wheel_selected_set()
84 else if (row > wheel -> gx_scroll_wheel_total_rows - 1) in _gx_scroll_wheel_selected_set()
86 row = wheel -> gx_scroll_wheel_total_rows - 1; in _gx_scroll_wheel_selected_set()
89 if (wheel -> gx_scroll_wheel_selected_row == row) in _gx_scroll_wheel_selected_set()
94 if (wheel -> gx_widget_status & GX_STATUS_VISIBLE) in _gx_scroll_wheel_selected_set()
96 if (wheel -> gx_scroll_wheel_wrap_style_check(wheel)) in _gx_scroll_wheel_selected_set()
98 if (GX_ABS(wheel -> gx_scroll_wheel_selected_row - row) < in _gx_scroll_wheel_selected_set()
99 … GX_ABS(wheel -> gx_scroll_wheel_selected_row + wheel -> gx_scroll_wheel_total_rows - row)) in _gx_scroll_wheel_selected_set()
101 dist = wheel -> gx_scroll_wheel_selected_row - row; in _gx_scroll_wheel_selected_set()
[all …]
Dgx_scroll_wheel_scroll.c77 UINT _gx_scroll_wheel_scroll(GX_SCROLL_WHEEL *wheel, GX_VALUE shift) in _gx_scroll_wheel_scroll() argument
83 if (!wheel -> gx_scroll_wheel_wrap_style_check(wheel)) in _gx_scroll_wheel_scroll()
85 y_shift = wheel -> gx_scroll_wheel_selected_yshift + shift; in _gx_scroll_wheel_scroll()
87 if ((shift > 0 && wheel -> gx_scroll_wheel_selected_row == 0) || in _gx_scroll_wheel_scroll()
88 … (shift < 0 && wheel -> gx_scroll_wheel_selected_row == wheel -> gx_scroll_wheel_total_rows - 1)) in _gx_scroll_wheel_scroll()
90 y_shift = wheel -> gx_scroll_wheel_selected_yshift + shift; in _gx_scroll_wheel_scroll()
92 … min_shift = (wheel -> gx_scroll_wheel_selected_row - wheel -> gx_scroll_wheel_total_rows + 1) * in _gx_scroll_wheel_scroll()
93 wheel -> gx_scroll_wheel_row_height; in _gx_scroll_wheel_scroll()
94 … max_shift = (wheel -> gx_scroll_wheel_selected_row * wheel -> gx_scroll_wheel_row_height); in _gx_scroll_wheel_scroll()
98 shift = (GX_VALUE)(shift + wheel -> gx_scroll_wheel_shift_error); in _gx_scroll_wheel_scroll()
[all …]
Dgx_scroll_wheel_create.c83 UINT _gx_scroll_wheel_create(GX_SCROLL_WHEEL *wheel, GX_CONST GX_CHAR *name, in _gx_scroll_wheel_create() argument
90 _gx_window_create((GX_WINDOW *)wheel, name, GX_NULL, style, Id, size); in _gx_scroll_wheel_create()
92 wheel -> gx_widget_type = GX_TYPE_SCROLL_WHEEL; in _gx_scroll_wheel_create()
93 wheel -> gx_scroll_wheel_total_rows = total_rows; in _gx_scroll_wheel_create()
94 wheel -> gx_scroll_wheel_row_height = 30; in _gx_scroll_wheel_create()
96 memset(&wheel -> gx_scroll_wheel_gradient, 0, sizeof(GX_GRADIENT)); in _gx_scroll_wheel_create()
98 wheel -> gx_scroll_wheel_selected_row = 0; in _gx_scroll_wheel_create()
99 wheel -> gx_scroll_wheel_selected_yshift = 0; in _gx_scroll_wheel_create()
100 wheel -> gx_scroll_wheel_shift_error = 0; in _gx_scroll_wheel_create()
101 wheel -> gx_scroll_wheel_animation_speed = 0; in _gx_scroll_wheel_create()
[all …]
Dgx_string_scroll_wheel_string_list_set.c80 UINT _gx_string_scroll_wheel_string_list_set(GX_STRING_SCROLL_WHEEL *wheel, in _gx_string_scroll_wheel_string_list_set() argument
86 if (wheel -> gx_widget_style & GX_STYLE_TEXT_COPY) in _gx_string_scroll_wheel_string_list_set()
88 if (wheel -> gx_string_scroll_wheel_string_list) in _gx_string_scroll_wheel_string_list_set()
95 _gx_system_memory_free((void *)wheel -> gx_string_scroll_wheel_string_list); in _gx_string_scroll_wheel_string_list_set()
99 wheel -> gx_string_scroll_wheel_string_list = GX_NULL; in _gx_string_scroll_wheel_string_list_set()
100 wheel -> gx_string_scroll_wheel_string_list_buffer_size = 0; in _gx_string_scroll_wheel_string_list_set()
102 if (wheel -> gx_widget_style & GX_STYLE_TEXT_COPY) in _gx_string_scroll_wheel_string_list_set()
104 …status = _gx_system_private_string_list_copy(&wheel -> gx_string_scroll_wheel_string_list_deprecat… in _gx_string_scroll_wheel_string_list_set()
108 wheel -> gx_string_scroll_wheel_string_list_deprecated = string_list; in _gx_string_scroll_wheel_string_list_set()
113 wheel -> gx_string_scroll_wheel_string_id_list = GX_NULL; in _gx_string_scroll_wheel_string_list_set()
[all …]
Dgx_generic_scroll_wheel_up_wrap.c78 VOID _gx_generic_scroll_wheel_up_wrap(GX_GENERIC_SCROLL_WHEEL *wheel) in _gx_generic_scroll_wheel_up_wrap() argument
85 …while ((wheel -> gx_generic_scroll_wheel_top_index + wheel -> gx_generic_scroll_wheel_child_count … in _gx_generic_scroll_wheel_up_wrap()
86 (wheel -> gx_widget_style & GX_STYLE_WRAP)) in _gx_generic_scroll_wheel_up_wrap()
91 test = _gx_widget_first_visible_client_child_get((GX_WIDGET *)wheel); in _gx_generic_scroll_wheel_up_wrap()
93 … if (test && test -> gx_widget_size.gx_rectangle_bottom < wheel -> gx_widget_size.gx_rectangle_top) in _gx_generic_scroll_wheel_up_wrap()
97 check = _gx_widget_last_visible_client_child_get((GX_WIDGET *)wheel); in _gx_generic_scroll_wheel_up_wrap()
107 … index = wheel -> gx_generic_scroll_wheel_top_index + wheel -> gx_generic_scroll_wheel_child_count; in _gx_generic_scroll_wheel_up_wrap()
110 if (index >= wheel -> gx_scroll_wheel_total_rows) in _gx_generic_scroll_wheel_up_wrap()
112 index -= wheel -> gx_scroll_wheel_total_rows; in _gx_generic_scroll_wheel_up_wrap()
115 wheel -> gx_generic_scroll_wheel_callback(wheel, test, index); in _gx_generic_scroll_wheel_up_wrap()
[all …]
Dgx_generic_scroll_wheel_total_rows_set.c81 UINT _gx_generic_scroll_wheel_total_rows_set(GX_GENERIC_SCROLL_WHEEL *wheel, INT count) in _gx_generic_scroll_wheel_total_rows_set() argument
87 wheel -> gx_scroll_wheel_total_rows = count; in _gx_generic_scroll_wheel_total_rows_set()
92 wheel -> gx_scroll_wheel_selected_row = 0; in _gx_generic_scroll_wheel_total_rows_set()
94 else if (wheel -> gx_scroll_wheel_selected_row >= count) in _gx_generic_scroll_wheel_total_rows_set()
96 wheel -> gx_scroll_wheel_selected_row = count - 1; in _gx_generic_scroll_wheel_total_rows_set()
100 wheel -> gx_generic_scroll_wheel_child_count = 0; in _gx_generic_scroll_wheel_total_rows_set()
102 test = _gx_widget_first_client_child_get((GX_WIDGET *)wheel); in _gx_generic_scroll_wheel_total_rows_set()
111 wheel->gx_generic_scroll_wheel_child_count++; in _gx_generic_scroll_wheel_total_rows_set()
116 test = wheel -> gx_widget_last_child; in _gx_generic_scroll_wheel_total_rows_set()
119 while (test && (wheel -> gx_generic_scroll_wheel_child_count > count)) in _gx_generic_scroll_wheel_total_rows_set()
[all …]
Dgx_scroll_wheel_selected_row_calculate.c74 UINT _gx_scroll_wheel_selected_row_calculate(GX_SCROLL_WHEEL *wheel) in _gx_scroll_wheel_selected_row_calculate() argument
78 GX_VALUE half_row_height = (wheel -> gx_scroll_wheel_row_height >> 1); in _gx_scroll_wheel_selected_row_calculate()
80 yshift = wheel -> gx_scroll_wheel_selected_yshift; in _gx_scroll_wheel_selected_row_calculate()
81 selected_row = wheel -> gx_scroll_wheel_selected_row; in _gx_scroll_wheel_selected_row_calculate()
83 if (wheel -> gx_scroll_wheel_wrap_style_check(wheel)) in _gx_scroll_wheel_selected_row_calculate()
88 yshift -= wheel -> gx_scroll_wheel_row_height; in _gx_scroll_wheel_selected_row_calculate()
95 yshift += wheel -> gx_scroll_wheel_row_height; in _gx_scroll_wheel_selected_row_calculate()
99 while (selected_row > wheel -> gx_scroll_wheel_total_rows - 1) in _gx_scroll_wheel_selected_row_calculate()
101 selected_row -= wheel -> gx_scroll_wheel_total_rows; in _gx_scroll_wheel_selected_row_calculate()
106 selected_row += wheel -> gx_scroll_wheel_total_rows; in _gx_scroll_wheel_selected_row_calculate()
[all …]
Dgx_text_scroll_wheel_draw.c99 static UINT _gx_text_scroll_wheel_round_text_draw(GX_TEXT_SCROLL_WHEEL *wheel, GX_RESOURCE_ID tCol… in _gx_text_scroll_wheel_round_text_draw() argument
121 if (wheel -> gx_scroll_wheel_row_height <= 0) in _gx_text_scroll_wheel_round_text_draw()
126 text_height = (GX_VALUE)(text_height * height / wheel -> gx_scroll_wheel_row_height); in _gx_text_scroll_wheel_round_text_draw()
137 switch (wheel -> gx_widget_style & GX_STYLE_TEXT_ALIGNMENT_MASK) in _gx_text_scroll_wheel_round_text_draw()
234 static UINT _gx_text_scroll_wheel_flat_text_draw(GX_TEXT_SCROLL_WHEEL *wheel, GX_RESOURCE_ID tColo… in _gx_text_scroll_wheel_flat_text_draw() argument
254 switch (wheel -> gx_widget_style & GX_STYLE_TEXT_ALIGNMENT_MASK) in _gx_text_scroll_wheel_flat_text_draw()
328 static UINT _gx_text_scroll_wheel_row_draw(GX_TEXT_SCROLL_WHEEL *wheel, GX_RECTANGLE *selected_area… in _gx_text_scroll_wheel_row_draw() argument
335 UINT (*text_draw)(GX_TEXT_SCROLL_WHEEL *wheel, GX_RESOURCE_ID tColor, GX_RESOURCE_ID font… in _gx_text_scroll_wheel_row_draw()
347 if (wheel -> gx_widget_style & GX_STYLE_TEXT_SCROLL_WHEEL_ROUND) in _gx_text_scroll_wheel_row_draw()
356 if ((wheel -> gx_widget_status & GX_STATUS_TRACKING_PEN) || in _gx_text_scroll_wheel_row_draw()
[all …]
Dgx_scroll_wheel_gradient_create.c80 VOID _gx_scroll_wheel_gradient_create(GX_SCROLL_WHEEL *wheel) in _gx_scroll_wheel_gradient_create() argument
88 if (wheel -> gx_scroll_wheel_gradient.gx_gradient_alpha_start || in _gx_scroll_wheel_gradient_create()
89 wheel -> gx_scroll_wheel_gradient.gx_gradient_alpha_end) in _gx_scroll_wheel_gradient_create()
92 if (wheel -> gx_scroll_wheel_gradient.gx_gradient_pixelmap.gx_pixelmap_data == GX_NULL) in _gx_scroll_wheel_gradient_create()
94 _gx_widget_canvas_get((GX_WIDGET *)wheel, &canvas); in _gx_scroll_wheel_gradient_create()
100 …height = wheel -> gx_widget_size.gx_rectangle_bottom - wheel -> gx_widget_size.gx_rectangle_top + … in _gx_scroll_wheel_gradient_create()
105 … _gx_utility_gradient_create(&wheel -> gx_scroll_wheel_gradient, 3, (GX_VALUE)height, in _gx_scroll_wheel_gradient_create()
107wheel -> gx_scroll_wheel_gradient.gx_gradient_alpha_start, in _gx_scroll_wheel_gradient_create()
108wheel -> gx_scroll_wheel_gradient.gx_gradient_alpha_end); in _gx_scroll_wheel_gradient_create()
113 … _gx_utility_gradient_create(&wheel -> gx_scroll_wheel_gradient, (GX_VALUE)height, 3, in _gx_scroll_wheel_gradient_create()
[all …]
Dgx_generic_scroll_wheel_down_wrap.c80 VOID _gx_generic_scroll_wheel_down_wrap(GX_GENERIC_SCROLL_WHEEL *wheel) in _gx_generic_scroll_wheel_down_wrap() argument
86 while ((wheel -> gx_generic_scroll_wheel_top_index > 0) || in _gx_generic_scroll_wheel_down_wrap()
87 (wheel -> gx_widget_style & GX_STYLE_WRAP)) in _gx_generic_scroll_wheel_down_wrap()
90 test = _gx_widget_last_visible_client_child_get((GX_WIDGET *)wheel); in _gx_generic_scroll_wheel_down_wrap()
92 …if (test && (test -> gx_widget_size.gx_rectangle_top > wheel -> gx_widget_size.gx_rectangle_bottom… in _gx_generic_scroll_wheel_down_wrap()
96 wheel -> gx_generic_scroll_wheel_top_index--; in _gx_generic_scroll_wheel_down_wrap()
99 if (wheel -> gx_generic_scroll_wheel_top_index < 0) in _gx_generic_scroll_wheel_down_wrap()
101wheel -> gx_generic_scroll_wheel_top_index = wheel -> gx_scroll_wheel_total_rows - 1; in _gx_generic_scroll_wheel_down_wrap()
104 check = _gx_widget_first_visible_client_child_get((GX_WIDGET *)wheel); in _gx_generic_scroll_wheel_down_wrap()
113wheel -> gx_generic_scroll_wheel_callback(wheel, test, wheel -> gx_generic_scroll_wheel_top_index); in _gx_generic_scroll_wheel_down_wrap()
[all …]
Dgx_string_scroll_wheel_text_get.c75 UINT _gx_string_scroll_wheel_text_get(GX_STRING_SCROLL_WHEEL *wheel, INT row, GX_STRING *string) in _gx_string_scroll_wheel_text_get() argument
86 if ((wheel -> gx_string_scroll_wheel_string_list_deprecated == GX_NULL && in _gx_string_scroll_wheel_text_get()
87 wheel -> gx_string_scroll_wheel_string_list == GX_NULL && in _gx_string_scroll_wheel_text_get()
88 wheel -> gx_string_scroll_wheel_string_id_list == GX_NULL) || in _gx_string_scroll_wheel_text_get()
89 (row >= wheel -> gx_scroll_wheel_total_rows)) in _gx_string_scroll_wheel_text_get()
94 if ((wheel -> gx_string_scroll_wheel_string_list == GX_NULL && in _gx_string_scroll_wheel_text_get()
95 wheel -> gx_string_scroll_wheel_string_id_list == GX_NULL) || in _gx_string_scroll_wheel_text_get()
96 row >= wheel -> gx_scroll_wheel_total_rows) in _gx_string_scroll_wheel_text_get()
102 if (wheel -> gx_string_scroll_wheel_string_id_list) in _gx_string_scroll_wheel_text_get()
104 …_gx_widget_string_get_ext((GX_WIDGET *)wheel, wheel -> gx_string_scroll_wheel_string_id_list[row],… in _gx_string_scroll_wheel_text_get()
[all …]
Dgx_string_scroll_wheel_string_id_list_set.c76 UINT _gx_string_scroll_wheel_string_id_list_set(GX_STRING_SCROLL_WHEEL *wheel, in _gx_string_scroll_wheel_string_id_list_set() argument
82 if (wheel -> gx_widget_style & GX_STYLE_TEXT_COPY) in _gx_string_scroll_wheel_string_id_list_set()
85 if (wheel -> gx_string_scroll_wheel_string_list_deprecated) in _gx_string_scroll_wheel_string_id_list_set()
92 _gx_system_memory_free((void *)wheel -> gx_string_scroll_wheel_string_list_deprecated); in _gx_string_scroll_wheel_string_id_list_set()
96 if (wheel -> gx_string_scroll_wheel_string_list) in _gx_string_scroll_wheel_string_id_list_set()
103 _gx_system_memory_free((void *)wheel -> gx_string_scroll_wheel_string_list); in _gx_string_scroll_wheel_string_id_list_set()
107 wheel -> gx_string_scroll_wheel_string_id_list = string_id_list; in _gx_string_scroll_wheel_string_id_list_set()
108 wheel -> gx_string_scroll_wheel_string_list = GX_NULL; in _gx_string_scroll_wheel_string_id_list_set()
109 wheel -> gx_string_scroll_wheel_string_list_buffer_size = 0; in _gx_string_scroll_wheel_string_id_list_set()
111 wheel -> gx_string_scroll_wheel_string_list_deprecated = GX_NULL; in _gx_string_scroll_wheel_string_id_list_set()
[all …]
Dgx_text_scroll_wheel_create.c80 UINT _gx_text_scroll_wheel_create(GX_TEXT_SCROLL_WHEEL *wheel, in _gx_text_scroll_wheel_create() argument
86 _gx_scroll_wheel_create((GX_SCROLL_WHEEL *)wheel, name, parent, total_rows, style, Id, size); in _gx_text_scroll_wheel_create()
89 wheel -> gx_text_scroll_wheel_text_get_deprecated = GX_NULL; in _gx_text_scroll_wheel_create()
91 wheel -> gx_text_scroll_wheel_text_get = GX_NULL; in _gx_text_scroll_wheel_create()
92 wheel -> gx_widget_type = GX_TYPE_TEXT_SCROLL_WHEEL; in _gx_text_scroll_wheel_create()
93 wheel -> gx_text_scroll_wheel_normal_font = GX_FONT_ID_DEFAULT; in _gx_text_scroll_wheel_create()
94 wheel -> gx_text_scroll_wheel_selected_font = GX_FONT_ID_DEFAULT; in _gx_text_scroll_wheel_create()
95 wheel -> gx_text_scroll_wheel_normal_text_color = GX_COLOR_ID_SHADOW; in _gx_text_scroll_wheel_create()
96 wheel -> gx_text_scroll_wheel_selected_text_color = GX_COLOR_ID_TEXT; in _gx_text_scroll_wheel_create()
97 wheel -> gx_text_scroll_wheel_disabled_text_color = GX_COLOR_ID_DISABLED_TEXT; in _gx_text_scroll_wheel_create()
[all …]
Dgx_string_scroll_wheel_event_process.c72 UINT _gx_string_scroll_wheel_event_process(GX_STRING_SCROLL_WHEEL *wheel, GX_EVENT *event_ptr) in _gx_string_scroll_wheel_event_process() argument
78 if (wheel -> gx_widget_style & GX_STYLE_TEXT_COPY) in _gx_string_scroll_wheel_event_process()
80 if (wheel -> gx_string_scroll_wheel_string_list) in _gx_string_scroll_wheel_event_process()
86 _gx_system_memory_free((void *)wheel -> gx_string_scroll_wheel_string_list); in _gx_string_scroll_wheel_event_process()
87 wheel -> gx_string_scroll_wheel_string_list = GX_NULL; in _gx_string_scroll_wheel_event_process()
90 if (wheel -> gx_string_scroll_wheel_string_list_deprecated) in _gx_string_scroll_wheel_event_process()
97 … _gx_system_memory_free((void *)wheel -> gx_string_scroll_wheel_string_list_deprecated); in _gx_string_scroll_wheel_event_process()
98 wheel -> gx_string_scroll_wheel_string_list_deprecated = GX_NULL; in _gx_string_scroll_wheel_event_process()
101 wheel -> gx_string_scroll_wheel_string_list_buffer_size = 0; in _gx_string_scroll_wheel_event_process()
110 return _gx_text_scroll_wheel_event_process((GX_TEXT_SCROLL_WHEEL*)wheel, event_ptr);; in _gx_string_scroll_wheel_event_process()
Dgx_generic_scroll_wheel_children_position.c79 UINT _gx_generic_scroll_wheel_children_position(GX_GENERIC_SCROLL_WHEEL *wheel) in _gx_generic_scroll_wheel_children_position() argument
92 child = _gx_widget_first_visible_client_child_get((GX_WIDGET*)wheel); in _gx_generic_scroll_wheel_children_position()
100 row_height = wheel -> gx_scroll_wheel_row_height; in _gx_generic_scroll_wheel_children_position()
108 client = &wheel -> gx_window_client; in _gx_generic_scroll_wheel_children_position()
113 selected_top = (GX_VALUE)(selected_top + wheel -> gx_scroll_wheel_selected_yshift); in _gx_generic_scroll_wheel_children_position()
120 if ((wheel -> gx_scroll_wheel_total_rows) && top_rows >= wheel -> gx_scroll_wheel_total_rows) in _gx_generic_scroll_wheel_children_position()
122 top_rows = wheel -> gx_scroll_wheel_total_rows - 1; in _gx_generic_scroll_wheel_children_position()
129 wheel -> gx_generic_scroll_wheel_child_count = 0; in _gx_generic_scroll_wheel_children_position()
132 selected_row = wheel -> gx_scroll_wheel_selected_row; in _gx_generic_scroll_wheel_children_position()
134 row = wheel -> gx_generic_scroll_wheel_top_index; in _gx_generic_scroll_wheel_children_position()
[all …]
Dgx_generic_scroll_wheel_draw.c83 VOID _gx_generic_scroll_wheel_draw(GX_GENERIC_SCROLL_WHEEL *wheel) in _gx_generic_scroll_wheel_draw() argument
90 _gx_window_background_draw((GX_WINDOW *)wheel); in _gx_generic_scroll_wheel_draw()
93 _gx_context_pixelmap_get(wheel -> gx_scroll_wheel_selected_background, &map); in _gx_generic_scroll_wheel_draw()
96 selected_area = wheel -> gx_window_client; in _gx_generic_scroll_wheel_draw()
98 …selected_area.gx_rectangle_top = (GX_VALUE)(selected_area.gx_rectangle_top - (wheel -> gx_scroll_w… in _gx_generic_scroll_wheel_draw()
99 …selected_area.gx_rectangle_bottom = (GX_VALUE)(selected_area.gx_rectangle_top + wheel -> gx_scroll… in _gx_generic_scroll_wheel_draw()
108 if (!(wheel -> gx_widget_status & GX_STATUS_TRACKING_PEN) && in _gx_generic_scroll_wheel_draw()
109 (wheel -> gx_scroll_wheel_animation_steps == 0)) in _gx_generic_scroll_wheel_draw()
111 child = _gx_widget_first_visible_client_child_get((GX_WIDGET *)wheel); in _gx_generic_scroll_wheel_draw()
127 _gx_widget_children_draw((GX_WIDGET *)wheel); in _gx_generic_scroll_wheel_draw()
[all …]
Dgx_generic_scroll_wheel_create.c81 UINT _gx_generic_scroll_wheel_create(GX_GENERIC_SCROLL_WHEEL *wheel, in _gx_generic_scroll_wheel_create() argument
92 _gx_scroll_wheel_create((GX_SCROLL_WHEEL *)wheel, name, parent, total_rows, style, id, size); in _gx_generic_scroll_wheel_create()
94 wheel -> gx_widget_type = GX_TYPE_GENERIC_SCROLL_WHEEL; in _gx_generic_scroll_wheel_create()
95 wheel -> gx_generic_scroll_wheel_top_index = 0; in _gx_generic_scroll_wheel_create()
96 wheel -> gx_generic_scroll_wheel_callback = callback; in _gx_generic_scroll_wheel_create()
97 wheel -> gx_generic_scroll_wheel_child_count = 0; in _gx_generic_scroll_wheel_create()
98 wheel -> gx_generic_scroll_wheel_visible_rows = 0; in _gx_generic_scroll_wheel_create()
99wheel -> gx_widget_event_process_function = (UINT (*)(GX_WIDGET *, GX_EVENT *))_gx_generic_scroll_… in _gx_generic_scroll_wheel_create()
100 wheel -> gx_widget_draw_function = (VOID (*)(GX_WIDGET *))_gx_generic_scroll_wheel_draw; in _gx_generic_scroll_wheel_create()
101wheel -> gx_scroll_wheel_scroll = (UINT(*)(GX_SCROLL_WHEEL*, GX_VALUE))_gx_generic_scroll_wheel_sc… in _gx_generic_scroll_wheel_create()
[all …]
Dgx_numeric_scroll_wheel_text_get.c71 UINT _gx_numeric_scroll_wheel_text_get(GX_NUMERIC_SCROLL_WHEEL *wheel, INT row, GX_STRING *string) in _gx_numeric_scroll_wheel_text_get() argument
76 if (row < wheel -> gx_scroll_wheel_total_rows) in _gx_numeric_scroll_wheel_text_get()
78 … step = wheel -> gx_numeric_scroll_wheel_end_val - wheel -> gx_numeric_scroll_wheel_start_val; in _gx_numeric_scroll_wheel_text_get()
80 if (step == (wheel -> gx_scroll_wheel_total_rows - 1)) in _gx_numeric_scroll_wheel_text_get()
84 else if (step == (1 - wheel -> gx_scroll_wheel_total_rows)) in _gx_numeric_scroll_wheel_text_get()
88 else if (wheel -> gx_scroll_wheel_total_rows > 1) in _gx_numeric_scroll_wheel_text_get()
90 step /= (wheel -> gx_scroll_wheel_total_rows - 1); in _gx_numeric_scroll_wheel_text_get()
93 val = wheel -> gx_numeric_scroll_wheel_start_val + (step * row); in _gx_numeric_scroll_wheel_text_get()
94 …_gx_utility_ltoa(val, wheel -> gx_numeric_scroll_wheel_string_buffer, GX_NUMERIC_SCROLL_WHEEL_STRI… in _gx_numeric_scroll_wheel_text_get()
96 string -> gx_string_ptr = wheel -> gx_numeric_scroll_wheel_string_buffer; in _gx_numeric_scroll_wheel_text_get()
Dgx_string_scroll_wheel_create.c82 UINT _gx_string_scroll_wheel_create(GX_STRING_SCROLL_WHEEL *wheel, in _gx_string_scroll_wheel_create() argument
90 …status = _gx_string_scroll_wheel_create_ext(wheel, name, parent, total_rows, GX_NULL, style, Id, s… in _gx_string_scroll_wheel_create()
92 wheel -> gx_string_scroll_wheel_string_list_deprecated = string_list; in _gx_string_scroll_wheel_create()
151 UINT _gx_string_scroll_wheel_create_ext(GX_STRING_SCROLL_WHEEL *wheel, in _gx_string_scroll_wheel_create_ext() argument
159 …_gx_text_scroll_wheel_create((GX_TEXT_SCROLL_WHEEL *)wheel, name, GX_NULL, total_rows, style, Id, … in _gx_string_scroll_wheel_create_ext()
161 wheel -> gx_widget_type = GX_TYPE_STRING_SCROLL_WHEEL; in _gx_string_scroll_wheel_create_ext()
163 wheel -> gx_string_scroll_wheel_string_list_deprecated = GX_NULL; in _gx_string_scroll_wheel_create_ext()
165 wheel -> gx_string_scroll_wheel_string_list = string_list; in _gx_string_scroll_wheel_create_ext()
166 wheel -> gx_string_scroll_wheel_string_list_buffer_size = 0; in _gx_string_scroll_wheel_create_ext()
167 wheel -> gx_string_scroll_wheel_string_id_list = GX_NULL; in _gx_string_scroll_wheel_create_ext()
[all …]
Dgx_text_scroll_wheel_callback_set.c76 UINT _gx_text_scroll_wheel_callback_set(GX_TEXT_SCROLL_WHEEL *wheel, GX_CONST GX_CHAR *(*callback)(… in _gx_text_scroll_wheel_callback_set() argument
80 wheel -> gx_text_scroll_wheel_text_get_deprecated = callback; in _gx_text_scroll_wheel_callback_set()
81 wheel -> gx_text_scroll_wheel_text_get = GX_NULL; in _gx_text_scroll_wheel_callback_set()
84 _gx_text_scroll_wheel_dynamic_bidi_text_delete(wheel); in _gx_text_scroll_wheel_callback_set()
135 UINT _gx_text_scroll_wheel_callback_set_ext(GX_TEXT_SCROLL_WHEEL *wheel, UINT (*callback)(GX_TEXT_S… in _gx_text_scroll_wheel_callback_set_ext() argument
139 wheel -> gx_text_scroll_wheel_text_get = callback; in _gx_text_scroll_wheel_callback_set_ext()
141 wheel -> gx_text_scroll_wheel_text_get_deprecated = GX_NULL; in _gx_text_scroll_wheel_callback_set_ext()
145 _gx_text_scroll_wheel_dynamic_bidi_text_delete(wheel); in _gx_text_scroll_wheel_callback_set_ext()
Dgx_text_scroll_wheel_dynamic_bidi_text_delete.c73 UINT _gx_text_scroll_wheel_dynamic_bidi_text_delete(GX_TEXT_SCROLL_WHEEL *wheel) in _gx_text_scroll_wheel_dynamic_bidi_text_delete() argument
78 if (wheel -> gx_text_scroll_wheel_bidi_resolved_text_info) in _gx_text_scroll_wheel_dynamic_bidi_text_delete()
80 for (row = 0; row < wheel -> gx_scroll_wheel_total_rows; row++) in _gx_text_scroll_wheel_dynamic_bidi_text_delete()
82 if(wheel->gx_text_scroll_wheel_bidi_resolved_text_info[row]) in _gx_text_scroll_wheel_dynamic_bidi_text_delete()
84 …status = _gx_utility_bidi_resolved_text_info_delete(&wheel -> gx_text_scroll_wheel_bidi_resolved_t… in _gx_text_scroll_wheel_dynamic_bidi_text_delete()
98 _gx_system_memory_free(wheel -> gx_text_scroll_wheel_bidi_resolved_text_info); in _gx_text_scroll_wheel_dynamic_bidi_text_delete()
99 wheel -> gx_text_scroll_wheel_bidi_resolved_text_info = NULL; in _gx_text_scroll_wheel_dynamic_bidi_text_delete()
Dgx_scroll_wheel_total_rows_set.c72 UINT _gx_scroll_wheel_total_rows_set(GX_SCROLL_WHEEL *wheel, INT total_rows) in _gx_scroll_wheel_total_rows_set() argument
74 wheel -> gx_scroll_wheel_total_rows = total_rows; in _gx_scroll_wheel_total_rows_set()
76 if (wheel -> gx_scroll_wheel_selected_row > total_rows - 1) in _gx_scroll_wheel_total_rows_set()
78 _gx_scroll_wheel_selected_set(wheel, total_rows - 1); in _gx_scroll_wheel_total_rows_set()
81 if (wheel -> gx_widget_status & GX_STATUS_VISIBLE) in _gx_scroll_wheel_total_rows_set()
83 _gx_system_dirty_mark((GX_WIDGET *)wheel); in _gx_scroll_wheel_total_rows_set()
/GUIX-v6.2.1/common/inc/
Dgx_scroll_wheel.h71 UINT _gx_numeric_scroll_wheel_create(GX_NUMERIC_SCROLL_WHEEL *wheel, GX_CONST GX_CHAR *name, GX_…
74 UINT _gx_numeric_scroll_wheel_range_set(GX_NUMERIC_SCROLL_WHEEL *wheel, INT start_val, INT end_v…
75 UINT _gx_numeric_scroll_wheel_text_get(GX_NUMERIC_SCROLL_WHEEL *wheel, INT row, GX_STRING *);
77 UINT _gx_scroll_wheel_create(GX_SCROLL_WHEEL *wheel, GX_CONST GX_CHAR *name, GX_WIDGET *parent, …
79 UINT _gx_scroll_wheel_event_process(GX_SCROLL_WHEEL *wheel, GX_EVENT *event_ptr);
80 VOID _gx_scroll_wheel_gradient_create(GX_SCROLL_WHEEL *wheel);
81 UINT _gx_scroll_wheel_gradient_alpha_set(GX_SCROLL_WHEEL *wheel, GX_UBYTE start_alpha, GX_UBYTE …
82 UINT _gx_scroll_wheel_row_height_set(GX_SCROLL_WHEEL *wheel, GX_VALUE row_height);
83 UINT _gx_scroll_wheel_selected_row_calculate(GX_SCROLL_WHEEL *wheel);
84 UINT _gx_scroll_wheel_scroll(GX_SCROLL_WHEEL *wheel, GX_VALUE shift);
[all …]

123