Home
last modified time | relevance | path

Searched refs:rect (Results 1 – 14 of 14) sorted by relevance

/GUIX-v6.2.1/common/src/
Dgx_canvas_pixelmap_rotate.c76 static UINT _gx_canvas_rotated_pixelmap_bound_calculate(GX_RECTANGLE *rect, INT angle, INT rot_cx,… in _gx_canvas_rotated_pixelmap_bound_calculate() argument
102 width = (GX_VALUE)(rect -> gx_rectangle_right - rect -> gx_rectangle_left + 1); in _gx_canvas_rotated_pixelmap_bound_calculate()
103 height = (GX_VALUE)(rect -> gx_rectangle_bottom - rect -> gx_rectangle_top + 1); in _gx_canvas_rotated_pixelmap_bound_calculate()
113rect -> gx_rectangle_left = (GX_VALUE)(rect -> gx_rectangle_left + rot_cx - (width - 1 - rot_cy)); in _gx_canvas_rotated_pixelmap_bound_calculate()
114 rect -> gx_rectangle_top = (GX_VALUE)(rect -> gx_rectangle_top + rot_cy - rot_cx); in _gx_canvas_rotated_pixelmap_bound_calculate()
118rect -> gx_rectangle_left = (GX_VALUE)(rect -> gx_rectangle_left + rot_cx - (width - 1 - rot_cx)); in _gx_canvas_rotated_pixelmap_bound_calculate()
119rect -> gx_rectangle_top = (GX_VALUE)(rect -> gx_rectangle_top + rot_cy - (height - 1 - rot_cy)); in _gx_canvas_rotated_pixelmap_bound_calculate()
124 rect -> gx_rectangle_left = (GX_VALUE)(rect -> gx_rectangle_left + rot_cx - rot_cy); in _gx_canvas_rotated_pixelmap_bound_calculate()
125rect -> gx_rectangle_top = (GX_VALUE)(rect -> gx_rectangle_top + rot_cy - (height - 1 - rot_cx)); in _gx_canvas_rotated_pixelmap_bound_calculate()
157 rect -> gx_rectangle_left = (GX_VALUE)(rect -> gx_rectangle_left + rot_cx - x); in _gx_canvas_rotated_pixelmap_bound_calculate()
[all …]
Dgx_utility_canvas_to_bmp.c97 static UINT _gx_utility_write_bitmap_header(GX_CANVAS *canvas, GX_RECTANGLE *rect, UINT (*write_dat… in _gx_utility_write_bitmap_header() argument
120 b_info.bi_Width = rect -> gx_rectangle_right - rect -> gx_rectangle_left + 1; in _gx_utility_write_bitmap_header()
121 b_info.bi_Height = rect -> gx_rectangle_bottom - rect -> gx_rectangle_top + 1; in _gx_utility_write_bitmap_header()
340 static void _gx_utility_write_bitmap_data_32bpp(GX_CANVAS *canvas, GX_RECTANGLE *rect, UINT (*write… in _gx_utility_write_bitmap_data_32bpp() argument
348 get_row += canvas -> gx_canvas_x_resolution * rect -> gx_rectangle_top; in _gx_utility_write_bitmap_data_32bpp()
349 get_row += rect -> gx_rectangle_left; in _gx_utility_write_bitmap_data_32bpp()
351 for (y = rect -> gx_rectangle_top; y <= rect -> gx_rectangle_bottom; y++) in _gx_utility_write_bitmap_data_32bpp()
354 for (x = rect -> gx_rectangle_left; x <= rect -> gx_rectangle_right; x++) in _gx_utility_write_bitmap_data_32bpp()
404 static void _gx_utility_write_bitmap_data_16bpp(GX_CANVAS *canvas, GX_RECTANGLE *rect, UINT (*write… in _gx_utility_write_bitmap_data_16bpp() argument
413 get_row += canvas -> gx_canvas_x_resolution * rect -> gx_rectangle_top; in _gx_utility_write_bitmap_data_16bpp()
[all …]
Dgx_single_line_text_input_text_rectangle_get.c72 …xt_input_text_rectangle_get(GX_SINGLE_LINE_TEXT_INPUT *input, INT offset_index, GX_RECTANGLE *rect) in _gx_single_line_text_input_text_rectangle_get() argument
110 _gx_widget_client_get((GX_WIDGET *)input, border_width, rect); in _gx_single_line_text_input_text_rectangle_get()
114 rect -> gx_rectangle_left = cursor -> gx_text_input_cursor_pos.gx_point_x; in _gx_single_line_text_input_text_rectangle_get()
115 rect -> gx_rectangle_right = (GX_VALUE)(rect -> gx_rectangle_left + text_width - 1); in _gx_single_line_text_input_text_rectangle_get()
119 rect -> gx_rectangle_right = (GX_VALUE)(cursor -> gx_text_input_cursor_pos.gx_point_x - 1); in _gx_single_line_text_input_text_rectangle_get()
120 rect -> gx_rectangle_left = (GX_VALUE)(rect -> gx_rectangle_right - text_width); in _gx_single_line_text_input_text_rectangle_get()
Dgx_multi_line_text_input_text_rectangle_get.c73 …LTI_LINE_TEXT_INPUT *input, GX_POINT start_cursor_pos, GX_POINT end_cursor_pos, GX_RECTANGLE *rect) in _gx_multi_line_text_input_text_rectangle_get() argument
93 _gx_widget_client_get((GX_WIDGET *)input, border_width, rect); in _gx_multi_line_text_input_text_rectangle_get()
106 rect -> gx_rectangle_top = (GX_VALUE)(start_cursor_pos.gx_point_y - half_line_height); in _gx_multi_line_text_input_text_rectangle_get()
107 rect -> gx_rectangle_bottom = (GX_VALUE)(start_cursor_pos.gx_point_y + half_line_height); in _gx_multi_line_text_input_text_rectangle_get()
108 rect -> gx_rectangle_left = (GX_VALUE)(start_cursor_pos.gx_point_x - (cursor_width >> 1)); in _gx_multi_line_text_input_text_rectangle_get()
109rect -> gx_rectangle_right = (GX_VALUE)(end_cursor_pos.gx_point_x + ((cursor_width + 1) >> 1) - 1); in _gx_multi_line_text_input_text_rectangle_get()
117 rect -> gx_rectangle_top = (GX_VALUE)(start_cursor_pos.gx_point_y - half_line_height); in _gx_multi_line_text_input_text_rectangle_get()
118 rect -> gx_rectangle_bottom = (GX_VALUE)(end_cursor_pos.gx_point_y + half_line_height); in _gx_multi_line_text_input_text_rectangle_get()
Dgx_circular_gauge_needle_rectangle_calculate.c78 …_circular_gauge_needle_rectangle_calculate(GX_CIRCULAR_GAUGE *gauge, INT angle, GX_RECTANGLE *rect) in _gx_circular_gauge_needle_rectangle_calculate() argument
144 rect -> gx_rectangle_left = (GX_VALUE)(gauge -> gx_widget_size.gx_rectangle_left + in _gx_circular_gauge_needle_rectangle_calculate()
147 rect -> gx_rectangle_top = (GX_VALUE)(gauge -> gx_widget_size.gx_rectangle_top + in _gx_circular_gauge_needle_rectangle_calculate()
150 rect -> gx_rectangle_right = (GX_VALUE)(rect -> gx_rectangle_left + width); in _gx_circular_gauge_needle_rectangle_calculate()
151 rect -> gx_rectangle_bottom = (GX_VALUE)(rect -> gx_rectangle_top + height); in _gx_circular_gauge_needle_rectangle_calculate()
Dgxe_utility_canvas_to_bmp.c72 UINT _gxe_utility_canvas_to_bmp(GX_CANVAS *canvas, GX_RECTANGLE *rect, UINT (*write_data)(GX_UBYTE … in _gxe_utility_canvas_to_bmp() argument
81 (rect == GX_NULL) || in _gxe_utility_canvas_to_bmp()
87 return _gx_utility_canvas_to_bmp(canvas, rect, write_data); in _gxe_utility_canvas_to_bmp()
Dgx_scrollbar_event_process.c106 GX_RECTANGLE rect; in _gx_scrollbar_event_process() local
114 rect = scrollbar->gx_widget_size; in _gx_scrollbar_event_process()
121rect.gx_rectangle_top = (GX_VALUE)(scrollbar->gx_scrollbar_upleft.gx_widget_size.gx_rectangle_bott… in _gx_scrollbar_event_process()
122rect.gx_rectangle_bottom = (GX_VALUE)(scrollbar->gx_scrollbar_downright.gx_widget_size.gx_rectangl… in _gx_scrollbar_event_process()
126rect.gx_rectangle_left = (GX_VALUE)(scrollbar->gx_scrollbar_upleft.gx_widget_size.gx_rectangle_rig… in _gx_scrollbar_event_process()
127rect.gx_rectangle_right = (GX_VALUE)(scrollbar->gx_scrollbar_downright.gx_widget_size.gx_rectangle… in _gx_scrollbar_event_process()
138 if (_gx_utility_rectangle_point_detect(&rect, pen_point)) in _gx_scrollbar_event_process()
Dgx_multi_line_text_input_highlight_rectangle_get.c73 …_multi_line_text_input_highlight_rectangle_get(GX_MULTI_LINE_TEXT_INPUT *input, GX_RECTANGLE *rect) in _gx_multi_line_text_input_highlight_rectangle_get() argument
134 …line_text_input_text_rectangle_get(input, start_pos, cursor_ptr -> gx_text_input_cursor_pos, rect); in _gx_multi_line_text_input_highlight_rectangle_get()
/GUIX-v6.2.1/samples/demo_guix_shapes/
Ddemo_guix_shapes.c312 GX_RECTANGLE rect; in graphics_draw() local
379 rect = window->gx_widget_size; in graphics_draw()
380 gx_utility_rectangle_resize(&rect, -10); in graphics_draw()
381 gx_canvas_rectangle_draw(&rect); in graphics_draw()
383 gx_utility_rectangle_resize(&rect, -30); in graphics_draw()
386 gx_canvas_rectangle_draw(&rect); in graphics_draw()
388 gx_utility_rectangle_resize(&rect, -30); in graphics_draw()
391 gx_canvas_rectangle_draw(&rect); in graphics_draw()
/GUIX-v6.2.1/common/inc/
Dgx_circular_gauge.h71 …circular_gauge_needle_rectangle_calculate(GX_CIRCULAR_GAUGE *gauge, INT angle, GX_RECTANGLE *rect);
Dgx_multi_line_text_input.h89 …multi_line_text_input_highlight_rectangle_get(GX_MULTI_LINE_TEXT_INPUT *input, GX_RECTANGLE *rect);
108 …TI_LINE_TEXT_INPUT *input, GX_POINT start_cursor_pos, GX_POINT end_cursor_pos, GX_RECTANGLE *rect);
Dgx_single_line_text_input.h99 …ine_text_input_text_rectangle_get(GX_SINGLE_LINE_TEXT_INPUT *input, INT shift, GX_RECTANGLE *rect);
Dgx_utility.h282 UINT _gx_utility_canvas_to_bmp(GX_CANVAS *canvas, GX_RECTANGLE *rect, UINT (*write_data)(GX_UBYTE *…
345 UINT _gxe_utility_canvas_to_bmp(GX_CANVAS *canvas, GX_RECTANGLE *rect, UINT (*write_data)(GX_UBY…
Dgx_api.h4310 UINT _gx_utility_canvas_to_bmp(GX_CANVAS *canvas, GX_RECTANGLE *rect, UINT(*write_data)(GX_UBYTE…
5785 UINT _gxe_utility_canvas_to_bmp(GX_CANVAS *canvas, GX_RECTANGLE *rect, UINT(*write_data)(GX_UBYT…