/GUIX-v6.2.1/common/src/ |
D | gx_utility_rectangle_center.c | 72 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 …]
|
D | gx_utility_rectangle_resize.c | 72 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()
|
D | gx_utility_rectangle_shift.c | 75 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()
|
D | gx_canvas_rectangle_draw.c | 76 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 …]
|
D | gxe_utility_rectangle_center_find.c | 75 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()
|
D | gxe_utility_rectangle_point_detect.c | 72 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()
|
D | gxe_utility_rectangle_center.c | 74 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()
|
D | gx_utility_rectangle_center_find.c | 73 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()
|
D | gx_utility_rectangle_point_detect.c | 74 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()
|
D | gx_utility_rectangle_define.c | 75 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()
|
D | gxe_utility_rectangle_resize.c | 73 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()
|
D | gxe_utility_rectangle_shift.c | 75 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()
|
D | gxe_canvas_rectangle_draw.c | 73 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()
|
D | gxe_utility_rectangle_define.c | 76 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()
|
D | gx_canvas_text_draw.c | 334 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()
|
D | gx_radial_slider_needle_rectangle_calculate.c | 78 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()
|
D | gxe_canvas_text_draw.c | 223 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()
|
D | gx_radial_slider_event_process.c | 92 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/ |
D | gx_utility.h | 301 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 …]
|
D | gx_canvas.h | 105 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…
|
D | gx_radial_slider.h | 66 UINT _gx_radial_slider_needle_rectangle_calculate(GX_RADIAL_SLIDER *slider, GX_RECTANGLE *rectangle…
|
D | gx_api.h | 3710 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/ |
D | demo_guix_shapes.c | 313 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()
|