Home
last modified time | relevance | path

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

/GUIX-v6.2.1/common/src/
Dgx_utility_rectangle_center.c72 UINT _gx_utility_rectangle_center(GX_RECTANGLE *rectangle, GX_RECTANGLE *within) in _gx_utility_rectangle_center() argument
82 ((rectangle -> gx_rectangle_right - in _gx_utility_rectangle_center()
83 rectangle -> gx_rectangle_left) + 1)) / 2; in _gx_utility_rectangle_center()
87 ((rectangle -> gx_rectangle_bottom - in _gx_utility_rectangle_center()
88 rectangle -> gx_rectangle_top) + 1)) / 2; in _gx_utility_rectangle_center()
90 x_delta = within -> gx_rectangle_left + x_space - rectangle -> gx_rectangle_left; in _gx_utility_rectangle_center()
91 y_delta = within -> gx_rectangle_top + y_space - rectangle -> gx_rectangle_top; in _gx_utility_rectangle_center()
93 rectangle -> gx_rectangle_left = (GX_VALUE)(rectangle -> gx_rectangle_left + x_delta); in _gx_utility_rectangle_center()
94 rectangle -> gx_rectangle_top = (GX_VALUE)(rectangle -> gx_rectangle_top + y_delta); in _gx_utility_rectangle_center()
95 rectangle -> gx_rectangle_right = (GX_VALUE)(rectangle -> gx_rectangle_right + x_delta); in _gx_utility_rectangle_center()
[all …]
Dgx_utility_rectangle_resize.c72 UINT _gx_utility_rectangle_resize(GX_RECTANGLE *rectangle, GX_VALUE adjust) in _gx_utility_rectangle_resize() argument
74 rectangle -> gx_rectangle_left = (GX_VALUE)(rectangle -> gx_rectangle_left - adjust); in _gx_utility_rectangle_resize()
75 rectangle -> gx_rectangle_top = (GX_VALUE)(rectangle -> gx_rectangle_top - adjust); in _gx_utility_rectangle_resize()
76 rectangle -> gx_rectangle_right = (GX_VALUE)(rectangle -> gx_rectangle_right + adjust); in _gx_utility_rectangle_resize()
77 rectangle -> gx_rectangle_bottom = (GX_VALUE)(rectangle -> gx_rectangle_bottom + adjust); in _gx_utility_rectangle_resize()
Dgx_utility_rectangle_shift.c75 UINT _gx_utility_rectangle_shift(GX_RECTANGLE *rectangle, GX_VALUE x_shift, GX_VALUE y_shift) in _gx_utility_rectangle_shift() argument
77 rectangle -> gx_rectangle_left = (GX_VALUE)(rectangle -> gx_rectangle_left + x_shift); in _gx_utility_rectangle_shift()
78 rectangle -> gx_rectangle_top = (GX_VALUE)(rectangle -> gx_rectangle_top + y_shift); in _gx_utility_rectangle_shift()
79 rectangle -> gx_rectangle_right = (GX_VALUE)(rectangle -> gx_rectangle_right + x_shift); in _gx_utility_rectangle_shift()
80 rectangle -> gx_rectangle_bottom = (GX_VALUE)(rectangle -> gx_rectangle_bottom + y_shift); in _gx_utility_rectangle_shift()
Dgx_canvas_rectangle_draw.c76 static UINT _gx_canvas_rectangle_fill(GX_RECTANGLE *rectangle, GX_COLOR fill_color) in _gx_canvas_rectangle_fill() argument
89 if (!_gx_utility_rectangle_overlap_detect(rectangle, &context -> gx_draw_context_dirty, &bound)) in _gx_canvas_rectangle_fill()
173 UINT _gx_canvas_rectangle_draw(GX_RECTANGLE *rectangle) in _gx_canvas_rectangle_draw() argument
188 if (!_gx_utility_rectangle_overlap_detect(rectangle, &context -> gx_draw_context_dirty, &bound)) in _gx_canvas_rectangle_draw()
202 fill_rect = *rectangle; in _gx_canvas_rectangle_draw()
213 _gx_canvas_line_draw(rectangle -> gx_rectangle_left, in _gx_canvas_rectangle_draw()
214 (GX_VALUE)(rectangle -> gx_rectangle_top + 1), in _gx_canvas_rectangle_draw()
215 rectangle -> gx_rectangle_left, in _gx_canvas_rectangle_draw()
216 (GX_VALUE)(rectangle -> gx_rectangle_bottom - 1)); in _gx_canvas_rectangle_draw()
218 _gx_canvas_line_draw(rectangle -> gx_rectangle_right, in _gx_canvas_rectangle_draw()
[all …]
Dgxe_utility_rectangle_center_find.c75 UINT _gxe_utility_rectangle_center_find(GX_RECTANGLE *rectangle, in _gxe_utility_rectangle_center_find() argument
79 if ((rectangle == GX_NULL) || (return_center == GX_NULL)) in _gxe_utility_rectangle_center_find()
85 if ((rectangle -> gx_rectangle_left > rectangle -> gx_rectangle_right) || in _gxe_utility_rectangle_center_find()
86 (rectangle -> gx_rectangle_top > rectangle -> gx_rectangle_bottom)) in _gxe_utility_rectangle_center_find()
92 return(_gx_utility_rectangle_center_find(rectangle, return_center)); in _gxe_utility_rectangle_center_find()
Dgxe_utility_rectangle_point_detect.c72 GX_BOOL _gxe_utility_rectangle_point_detect(GX_RECTANGLE *rectangle, GX_POINT point) in _gxe_utility_rectangle_point_detect() argument
77 if (rectangle == GX_NULL) in _gxe_utility_rectangle_point_detect()
83 if ((rectangle -> gx_rectangle_left > rectangle -> gx_rectangle_right) || in _gxe_utility_rectangle_point_detect()
84 (rectangle -> gx_rectangle_top > rectangle -> gx_rectangle_bottom)) in _gxe_utility_rectangle_point_detect()
90 status = _gx_utility_rectangle_point_detect(rectangle, point); in _gxe_utility_rectangle_point_detect()
Dgxe_utility_rectangle_center.c74 UINT _gxe_utility_rectangle_center(GX_RECTANGLE *rectangle, GX_RECTANGLE *within) in _gxe_utility_rectangle_center() argument
77 if ((rectangle == GX_NULL) || (within == GX_NULL)) in _gxe_utility_rectangle_center()
83 if ((rectangle -> gx_rectangle_left > rectangle -> gx_rectangle_right) || in _gxe_utility_rectangle_center()
84 (rectangle -> gx_rectangle_top > rectangle -> gx_rectangle_bottom) || in _gxe_utility_rectangle_center()
92 return(_gx_utility_rectangle_center(rectangle, within)); in _gxe_utility_rectangle_center()
Dgx_utility_rectangle_center_find.c73 UINT _gx_utility_rectangle_center_find(GX_RECTANGLE *rectangle, in _gx_utility_rectangle_center_find() argument
77 (GX_VALUE)(rectangle -> gx_rectangle_left + rectangle -> gx_rectangle_right) / 2; in _gx_utility_rectangle_center_find()
79 (GX_VALUE)(rectangle -> gx_rectangle_top + rectangle -> gx_rectangle_bottom) / 2; in _gx_utility_rectangle_center_find()
Dgx_utility_rectangle_point_detect.c74 GX_BOOL _gx_utility_rectangle_point_detect(GX_RECTANGLE *rectangle, GX_POINT point) in _gx_utility_rectangle_point_detect() argument
76 if (rectangle -> gx_rectangle_left <= point.gx_point_x && in _gx_utility_rectangle_point_detect()
77 rectangle -> gx_rectangle_right >= point.gx_point_x && in _gx_utility_rectangle_point_detect()
78 rectangle -> gx_rectangle_top <= point.gx_point_y && in _gx_utility_rectangle_point_detect()
79 rectangle -> gx_rectangle_bottom >= point.gx_point_y) in _gx_utility_rectangle_point_detect()
Dgx_utility_rectangle_define.c75 UINT _gx_utility_rectangle_define(GX_RECTANGLE *rectangle, GX_VALUE left, in _gx_utility_rectangle_define() argument
79 rectangle -> gx_rectangle_left = left; in _gx_utility_rectangle_define()
80 rectangle -> gx_rectangle_top = top; in _gx_utility_rectangle_define()
81 rectangle -> gx_rectangle_right = right; in _gx_utility_rectangle_define()
82 rectangle -> gx_rectangle_bottom = bottom; in _gx_utility_rectangle_define()
Dgxe_utility_rectangle_resize.c73 UINT _gxe_utility_rectangle_resize(GX_RECTANGLE *rectangle, GX_VALUE adjust) in _gxe_utility_rectangle_resize() argument
76 if (rectangle == GX_NULL) in _gxe_utility_rectangle_resize()
82 return(_gx_utility_rectangle_resize(rectangle, adjust)); in _gxe_utility_rectangle_resize()
Dgxe_utility_rectangle_shift.c75 UINT _gxe_utility_rectangle_shift(GX_RECTANGLE *rectangle, GX_VALUE x_shift, GX_VALUE y_shift) in _gxe_utility_rectangle_shift() argument
78 if (rectangle == GX_NULL) in _gxe_utility_rectangle_shift()
84 return(_gx_utility_rectangle_shift(rectangle, x_shift, y_shift)); in _gxe_utility_rectangle_shift()
Dgxe_canvas_rectangle_draw.c73 UINT _gxe_canvas_rectangle_draw(GX_RECTANGLE *rectangle) in _gxe_canvas_rectangle_draw() argument
81 if (rectangle == GX_NULL) in _gxe_canvas_rectangle_draw()
91 status = _gx_canvas_rectangle_draw(rectangle); in _gxe_canvas_rectangle_draw()
Dgxe_utility_rectangle_define.c76 UINT _gxe_utility_rectangle_define(GX_RECTANGLE *rectangle, GX_VALUE left, in _gxe_utility_rectangle_define() argument
81 if (rectangle == GX_NULL) in _gxe_utility_rectangle_define()
87 return (_gx_utility_rectangle_define(rectangle, left, top, right, bottom)); in _gxe_utility_rectangle_define()
Dgx_canvas_text_draw.c334 UINT _gx_canvas_aligned_text_draw(GX_CONST GX_STRING *string, GX_RECTANGLE *rectangle, ULONG align… in _gx_canvas_aligned_text_draw() argument
353 rect_width = (GX_VALUE)(rectangle -> gx_rectangle_right - rectangle -> gx_rectangle_left + 1); in _gx_canvas_aligned_text_draw()
354 rect_height = (GX_VALUE)(rectangle -> gx_rectangle_bottom - rectangle -> gx_rectangle_top + 1); in _gx_canvas_aligned_text_draw()
356 x_pos = rectangle -> gx_rectangle_left; in _gx_canvas_aligned_text_draw()
357 y_pos = rectangle -> gx_rectangle_top; in _gx_canvas_aligned_text_draw()
Dgx_radial_slider_needle_rectangle_calculate.c78 UINT _gx_radial_slider_needle_rectangle_calculate(GX_RADIAL_SLIDER *slider, GX_RECTANGLE *rectangle) in _gx_radial_slider_needle_rectangle_calculate() argument
107 _gx_utility_rectangle_define(rectangle, (GX_VALUE)xpos, (GX_VALUE)ypos, in _gx_radial_slider_needle_rectangle_calculate()
113 _gx_utility_rectangle_define(rectangle, 0, 0, 0, 0); in _gx_radial_slider_needle_rectangle_calculate()
Dgxe_canvas_text_draw.c223 UINT _gxe_canvas_aligned_text_draw(GX_CONST GX_STRING *string, GX_RECTANGLE *rectangle, ULONG align… in _gxe_canvas_aligned_text_draw() argument
232 if ((string == GX_NULL) || (rectangle == GX_NULL) || (string -> gx_string_ptr == GX_NULL)) in _gxe_canvas_aligned_text_draw()
255 status = _gx_canvas_aligned_text_draw(string, rectangle, alignment); in _gxe_canvas_aligned_text_draw()
Dgx_radial_slider_event_process.c92 GX_RECTANGLE rectangle; in _gx_radial_slider_pen_down_event_process() local
103 _gx_radial_slider_needle_rectangle_calculate(slider, &rectangle); in _gx_radial_slider_pen_down_event_process()
106 if (_gx_utility_rectangle_point_detect(&rectangle, *point)) in _gx_radial_slider_pen_down_event_process()
/GUIX-v6.2.1/common/inc/
Dgx_utility.h301 UINT _gx_utility_rectangle_center(GX_RECTANGLE *rectangle, GX_RECTANGLE *within);
302 UINT _gx_utility_rectangle_center_find(GX_RECTANGLE *rectangle, GX_POINT *return_center);
305 UINT _gx_utility_rectangle_define(GX_RECTANGLE *rectangle, GX_VALUE left, GX_VALUE top, GX_…
308 GX_BOOL _gx_utility_rectangle_point_detect(GX_RECTANGLE *rectangle, GX_POINT point);
309 UINT _gx_utility_rectangle_resize(GX_RECTANGLE *rectangle, GX_VALUE adjust);
310 UINT _gx_utility_rectangle_shift(GX_RECTANGLE *rectangle, GX_VALUE x_shift, GX_VALUE y_shif…
353 UINT _gxe_utility_rectangle_center(GX_RECTANGLE *rectangle, GX_RECTANGLE *within);
354 UINT _gxe_utility_rectangle_center_find(GX_RECTANGLE *rectangle, GX_POINT *return_center);
357 UINT _gxe_utility_rectangle_define(GX_RECTANGLE *rectangle, GX_VALUE left, GX_VALUE top, GX_VALU…
358 UINT _gxe_utility_rectangle_resize(GX_RECTANGLE *rectangle, GX_VALUE adjust);
[all …]
Dgx_canvas.h105 UINT _gx_canvas_rectangle_draw(GX_RECTANGLE *rectangle);
113 UINT _gx_canvas_aligned_text_draw(GX_CONST GX_STRING *string, GX_RECTANGLE *rectangle, ULONG alignm…
153 UINT _gxe_canvas_rectangle_draw(GX_RECTANGLE *rectangle);
160 UINT _gxe_canvas_aligned_text_draw(GX_CONST GX_STRING *string, GX_RECTANGLE *rectangle, ULONG align…
Dgx_radial_slider.h66 UINT _gx_radial_slider_needle_rectangle_calculate(GX_RADIAL_SLIDER *slider, GX_RECTANGLE *rectangle
Dgx_api.h3710 UINT _gx_canvas_rectangle_draw(GX_RECTANGLE *rectangle);
3718 UINT _gx_canvas_aligned_text_draw(GX_CONST GX_STRING *string, GX_RECTANGLE *rectangle, ULONG alignm…
4331 UINT _gx_utility_rectangle_center(GX_RECTANGLE *rectangle, GX_RECTANGLE *within);
4332 UINT _gx_utility_rectangle_center_find(GX_RECTANGLE *rectangle, GX_POINT *return_center);
4335 UINT _gx_utility_rectangle_define(GX_RECTANGLE *rectangle, GX_VALUE left, GX_VALUE top, GX_VALUE…
4337 GX_BOOL _gx_utility_rectangle_point_detect(GX_RECTANGLE *rectangle, GX_POINT point);
4338 UINT _gx_utility_rectangle_resize(GX_RECTANGLE *rectangle, GX_VALUE adjust);
4339 UINT _gx_utility_rectangle_shift(GX_RECTANGLE *rectangle, GX_VALUE x_shift, GX_VALUE y_shift);
5189 UINT _gxe_canvas_rectangle_draw(GX_RECTANGLE *rectangle);
5197 UINT _gxe_canvas_aligned_text_draw(GX_CONST GX_STRING *string, GX_RECTANGLE *rectangle, ULONG align…
[all …]
/GUIX-v6.2.1/samples/demo_guix_shapes/
Ddemo_guix_shapes.c313 GX_POINT rectangle[4] = { { 208, 63 },{ 274, 63 },{ 274, 163 },{ 208, 163 } }; in graphics_draw() local
396 gx_canvas_polygon_draw(rectangle, 4); in graphics_draw()