Home
last modified time | relevance | path

Searched refs:rectangle (Results 1 – 25 of 74) sorted by relevance

123

/GUIX-v6.4.1/common/src/
Dgx_canvas_rectangle_draw.c75 static UINT _gx_canvas_rectangle_fill(GX_RECTANGLE *rectangle, GX_COLOR fill_color) in _gx_canvas_rectangle_fill() argument
88 if (!_gx_utility_rectangle_overlap_detect(rectangle, &context -> gx_draw_context_dirty, &bound)) in _gx_canvas_rectangle_fill()
172 UINT _gx_canvas_rectangle_draw(GX_RECTANGLE *rectangle) in _gx_canvas_rectangle_draw() argument
187 if (!_gx_utility_rectangle_overlap_detect(rectangle, &context -> gx_draw_context_dirty, &bound)) in _gx_canvas_rectangle_draw()
201 fill_rect = *rectangle; in _gx_canvas_rectangle_draw()
212 _gx_canvas_line_draw(rectangle -> gx_rectangle_left, in _gx_canvas_rectangle_draw()
213 (GX_VALUE)(rectangle -> gx_rectangle_top + 1), in _gx_canvas_rectangle_draw()
214 rectangle -> gx_rectangle_left, in _gx_canvas_rectangle_draw()
215 (GX_VALUE)(rectangle -> gx_rectangle_bottom - 1)); in _gx_canvas_rectangle_draw()
217 _gx_canvas_line_draw(rectangle -> gx_rectangle_right, in _gx_canvas_rectangle_draw()
[all …]
Dgx_utility_rectangle_center.c71 UINT _gx_utility_rectangle_center(GX_RECTANGLE *rectangle, GX_RECTANGLE *within) in _gx_utility_rectangle_center() argument
81 ((rectangle -> gx_rectangle_right - in _gx_utility_rectangle_center()
82 rectangle -> gx_rectangle_left) + 1)) / 2; in _gx_utility_rectangle_center()
86 ((rectangle -> gx_rectangle_bottom - in _gx_utility_rectangle_center()
87 rectangle -> gx_rectangle_top) + 1)) / 2; in _gx_utility_rectangle_center()
89 x_delta = within -> gx_rectangle_left + x_space - rectangle -> gx_rectangle_left; in _gx_utility_rectangle_center()
90 y_delta = within -> gx_rectangle_top + y_space - rectangle -> gx_rectangle_top; in _gx_utility_rectangle_center()
92 rectangle -> gx_rectangle_left = (GX_VALUE)(rectangle -> gx_rectangle_left + x_delta); in _gx_utility_rectangle_center()
93 rectangle -> gx_rectangle_top = (GX_VALUE)(rectangle -> gx_rectangle_top + y_delta); in _gx_utility_rectangle_center()
94 rectangle -> gx_rectangle_right = (GX_VALUE)(rectangle -> gx_rectangle_right + x_delta); in _gx_utility_rectangle_center()
[all …]
Dgx_utility_rectangle_resize.c71 UINT _gx_utility_rectangle_resize(GX_RECTANGLE *rectangle, GX_VALUE adjust) in _gx_utility_rectangle_resize() argument
73 rectangle -> gx_rectangle_left = (GX_VALUE)(rectangle -> gx_rectangle_left - adjust); in _gx_utility_rectangle_resize()
74 rectangle -> gx_rectangle_top = (GX_VALUE)(rectangle -> gx_rectangle_top - adjust); in _gx_utility_rectangle_resize()
75 rectangle -> gx_rectangle_right = (GX_VALUE)(rectangle -> gx_rectangle_right + adjust); in _gx_utility_rectangle_resize()
76 rectangle -> gx_rectangle_bottom = (GX_VALUE)(rectangle -> gx_rectangle_bottom + adjust); in _gx_utility_rectangle_resize()
Dgx_utility_rectangle_shift.c74 UINT _gx_utility_rectangle_shift(GX_RECTANGLE *rectangle, GX_VALUE x_shift, GX_VALUE y_shift) in _gx_utility_rectangle_shift() argument
76 rectangle -> gx_rectangle_left = (GX_VALUE)(rectangle -> gx_rectangle_left + x_shift); in _gx_utility_rectangle_shift()
77 rectangle -> gx_rectangle_top = (GX_VALUE)(rectangle -> gx_rectangle_top + y_shift); in _gx_utility_rectangle_shift()
78 rectangle -> gx_rectangle_right = (GX_VALUE)(rectangle -> gx_rectangle_right + x_shift); in _gx_utility_rectangle_shift()
79 rectangle -> gx_rectangle_bottom = (GX_VALUE)(rectangle -> gx_rectangle_bottom + y_shift); in _gx_utility_rectangle_shift()
Dgxe_utility_rectangle_center_find.c74 UINT _gxe_utility_rectangle_center_find(GX_RECTANGLE *rectangle, in _gxe_utility_rectangle_center_find() argument
78 if ((rectangle == GX_NULL) || (return_center == GX_NULL)) in _gxe_utility_rectangle_center_find()
84 if ((rectangle -> gx_rectangle_left > rectangle -> gx_rectangle_right) || in _gxe_utility_rectangle_center_find()
85 (rectangle -> gx_rectangle_top > rectangle -> gx_rectangle_bottom)) in _gxe_utility_rectangle_center_find()
91 return(_gx_utility_rectangle_center_find(rectangle, return_center)); in _gxe_utility_rectangle_center_find()
Dgxe_utility_rectangle_point_detect.c71 GX_BOOL _gxe_utility_rectangle_point_detect(GX_RECTANGLE *rectangle, GX_POINT point) in _gxe_utility_rectangle_point_detect() argument
76 if (rectangle == GX_NULL) in _gxe_utility_rectangle_point_detect()
82 if ((rectangle -> gx_rectangle_left > rectangle -> gx_rectangle_right) || in _gxe_utility_rectangle_point_detect()
83 (rectangle -> gx_rectangle_top > rectangle -> gx_rectangle_bottom)) in _gxe_utility_rectangle_point_detect()
89 status = _gx_utility_rectangle_point_detect(rectangle, point); in _gxe_utility_rectangle_point_detect()
Dgxe_utility_rectangle_center.c73 UINT _gxe_utility_rectangle_center(GX_RECTANGLE *rectangle, GX_RECTANGLE *within) in _gxe_utility_rectangle_center() argument
76 if ((rectangle == GX_NULL) || (within == GX_NULL)) in _gxe_utility_rectangle_center()
82 if ((rectangle -> gx_rectangle_left > rectangle -> gx_rectangle_right) || in _gxe_utility_rectangle_center()
83 (rectangle -> gx_rectangle_top > rectangle -> gx_rectangle_bottom) || in _gxe_utility_rectangle_center()
91 return(_gx_utility_rectangle_center(rectangle, within)); in _gxe_utility_rectangle_center()
Dgx_utility_rectangle_center_find.c72 UINT _gx_utility_rectangle_center_find(GX_RECTANGLE *rectangle, in _gx_utility_rectangle_center_find() argument
76 (GX_VALUE)(rectangle -> gx_rectangle_left + rectangle -> gx_rectangle_right) / 2; in _gx_utility_rectangle_center_find()
78 (GX_VALUE)(rectangle -> gx_rectangle_top + rectangle -> gx_rectangle_bottom) / 2; in _gx_utility_rectangle_center_find()
Dgx_utility_rectangle_point_detect.c73 GX_BOOL _gx_utility_rectangle_point_detect(GX_RECTANGLE *rectangle, GX_POINT point) in _gx_utility_rectangle_point_detect() argument
75 if (rectangle -> gx_rectangle_left <= point.gx_point_x && in _gx_utility_rectangle_point_detect()
76 rectangle -> gx_rectangle_right >= point.gx_point_x && in _gx_utility_rectangle_point_detect()
77 rectangle -> gx_rectangle_top <= point.gx_point_y && in _gx_utility_rectangle_point_detect()
78 rectangle -> gx_rectangle_bottom >= point.gx_point_y) in _gx_utility_rectangle_point_detect()
Dgx_utility_rectangle_define.c74 UINT _gx_utility_rectangle_define(GX_RECTANGLE *rectangle, GX_VALUE left, in _gx_utility_rectangle_define() argument
78 rectangle -> gx_rectangle_left = left; in _gx_utility_rectangle_define()
79 rectangle -> gx_rectangle_top = top; in _gx_utility_rectangle_define()
80 rectangle -> gx_rectangle_right = right; in _gx_utility_rectangle_define()
81 rectangle -> gx_rectangle_bottom = bottom; in _gx_utility_rectangle_define()
Dgx_canvas_text_draw.c333 UINT _gx_canvas_aligned_text_draw(GX_CONST GX_STRING *string, GX_RECTANGLE *rectangle, ULONG align… in _gx_canvas_aligned_text_draw() argument
352 rect_width = (GX_VALUE)(rectangle -> gx_rectangle_right - rectangle -> gx_rectangle_left + 1); in _gx_canvas_aligned_text_draw()
353 rect_height = (GX_VALUE)(rectangle -> gx_rectangle_bottom - rectangle -> gx_rectangle_top + 1); in _gx_canvas_aligned_text_draw()
355 x_pos = rectangle -> gx_rectangle_left; in _gx_canvas_aligned_text_draw()
356 y_pos = rectangle -> gx_rectangle_top; in _gx_canvas_aligned_text_draw()
Dgxe_utility_rectangle_resize.c72 UINT _gxe_utility_rectangle_resize(GX_RECTANGLE *rectangle, GX_VALUE adjust) in _gxe_utility_rectangle_resize() argument
75 if (rectangle == GX_NULL) in _gxe_utility_rectangle_resize()
81 return(_gx_utility_rectangle_resize(rectangle, adjust)); in _gxe_utility_rectangle_resize()
Dgxe_utility_rectangle_shift.c74 UINT _gxe_utility_rectangle_shift(GX_RECTANGLE *rectangle, GX_VALUE x_shift, GX_VALUE y_shift) in _gxe_utility_rectangle_shift() argument
77 if (rectangle == GX_NULL) in _gxe_utility_rectangle_shift()
83 return(_gx_utility_rectangle_shift(rectangle, x_shift, y_shift)); in _gxe_utility_rectangle_shift()
Dgxe_canvas_rectangle_draw.c72 UINT _gxe_canvas_rectangle_draw(GX_RECTANGLE *rectangle) in _gxe_canvas_rectangle_draw() argument
80 if (rectangle == GX_NULL) in _gxe_canvas_rectangle_draw()
90 status = _gx_canvas_rectangle_draw(rectangle); in _gxe_canvas_rectangle_draw()
Dgxe_utility_rectangle_define.c75 UINT _gxe_utility_rectangle_define(GX_RECTANGLE *rectangle, GX_VALUE left, in _gxe_utility_rectangle_define() argument
80 if (rectangle == GX_NULL) in _gxe_utility_rectangle_define()
86 return (_gx_utility_rectangle_define(rectangle, left, top, right, bottom)); in _gxe_utility_rectangle_define()
Dgx_radial_slider_needle_rectangle_calculate.c77 UINT _gx_radial_slider_needle_rectangle_calculate(GX_RADIAL_SLIDER *slider, GX_RECTANGLE *rectangle) in _gx_radial_slider_needle_rectangle_calculate() argument
106 _gx_utility_rectangle_define(rectangle, (GX_VALUE)xpos, (GX_VALUE)ypos, in _gx_radial_slider_needle_rectangle_calculate()
112 _gx_utility_rectangle_define(rectangle, 0, 0, 0, 0); in _gx_radial_slider_needle_rectangle_calculate()
Dgxe_canvas_text_draw.c222 UINT _gxe_canvas_aligned_text_draw(GX_CONST GX_STRING *string, GX_RECTANGLE *rectangle, ULONG align… in _gxe_canvas_aligned_text_draw() argument
231 if ((string == GX_NULL) || (rectangle == GX_NULL) || (string -> gx_string_ptr == GX_NULL)) in _gxe_canvas_aligned_text_draw()
254 status = _gx_canvas_aligned_text_draw(string, rectangle, alignment); in _gxe_canvas_aligned_text_draw()
Dgx_radial_slider_event_process.c91 GX_RECTANGLE rectangle; in _gx_radial_slider_pen_down_event_process() local
102 _gx_radial_slider_needle_rectangle_calculate(slider, &rectangle); in _gx_radial_slider_pen_down_event_process()
105 if (_gx_utility_rectangle_point_detect(&rectangle, *point)) in _gx_radial_slider_pen_down_event_process()
/GUIX-v6.4.1/common/inc/
Dgx_utility.h300 UINT _gx_utility_rectangle_center(GX_RECTANGLE *rectangle, GX_RECTANGLE *within);
301 UINT _gx_utility_rectangle_center_find(GX_RECTANGLE *rectangle, GX_POINT *return_center);
304 UINT _gx_utility_rectangle_define(GX_RECTANGLE *rectangle, GX_VALUE left, GX_VALUE top, GX_…
307 GX_BOOL _gx_utility_rectangle_point_detect(GX_RECTANGLE *rectangle, GX_POINT point);
308 UINT _gx_utility_rectangle_resize(GX_RECTANGLE *rectangle, GX_VALUE adjust);
309 UINT _gx_utility_rectangle_shift(GX_RECTANGLE *rectangle, GX_VALUE x_shift, GX_VALUE y_shif…
352 UINT _gxe_utility_rectangle_center(GX_RECTANGLE *rectangle, GX_RECTANGLE *within);
353 UINT _gxe_utility_rectangle_center_find(GX_RECTANGLE *rectangle, GX_POINT *return_center);
356 UINT _gxe_utility_rectangle_define(GX_RECTANGLE *rectangle, GX_VALUE left, GX_VALUE top, GX_VALU…
357 UINT _gxe_utility_rectangle_resize(GX_RECTANGLE *rectangle, GX_VALUE adjust);
[all …]
Dgx_canvas.h104 UINT _gx_canvas_rectangle_draw(GX_RECTANGLE *rectangle);
112 UINT _gx_canvas_aligned_text_draw(GX_CONST GX_STRING *string, GX_RECTANGLE *rectangle, ULONG alignm…
152 UINT _gxe_canvas_rectangle_draw(GX_RECTANGLE *rectangle);
159 UINT _gxe_canvas_aligned_text_draw(GX_CONST GX_STRING *string, GX_RECTANGLE *rectangle, ULONG align…
/GUIX-v6.4.1/test/guix_test/regression_test/tests/
Dvalidation_guix_all_widgets_16bpp_rotated_polygon_fill.c63 GX_POINT rectangle[4] = { { 188, 50 },{ 254, 50 },{ 254, 150 },{ 188, 150 } }; in test_invalid_graphics_draw() local
74 gx_canvas_polygon_draw(rectangle, 4); in test_invalid_graphics_draw()
78 gx_canvas_polygon_draw(rectangle, 4); in test_invalid_graphics_draw()
Dvalidation_guix_generic_polygon_fill.c63 GX_POINT rectangle[4] = {{18, 50}, {84, 50}, {84, 150}, {18, 150}}; in test_graphics_draw() local
93 gx_canvas_polygon_draw(rectangle, 4); in test_graphics_draw()
/GUIX-v6.4.1/test/example_internal/polygon_16bpp/
Ddemo_guix_polygon_16bpp.c196 GX_POINT rectangle[4] = {{188, 50}, {254, 50}, {254, 150}, {188, 150}}; in polygon_draw() local
229 gx_canvas_polygon_draw(rectangle, 4); in polygon_draw()
/GUIX-v6.4.1/test/example_internal/polygon_32bpp/
Ddemo_guix_polygon_32bpp.c188 GX_POINT rectangle[4] = {{188, 50}, {254, 50}, {254, 150}, {188, 150}}; in polygon_draw() local
221 gx_canvas_polygon_draw(rectangle, 4); in polygon_draw()
/GUIX-v6.4.1/test/example_internal/graphics_565rgb_synergy/
Ddemo_guix_graphics_565rgb_synergy.c227 GX_POINT rectangle[4] = {{188, 50}, {254, 50}, {254, 150}, {188, 150}}; in graphics_draw() local
275 gx_canvas_polygon_draw(rectangle, 4); in graphics_draw()

123