summaryrefslogtreecommitdiff
path: root/components/gui/src/widget.c
diff options
context:
space:
mode:
authoryangfasheng <[email protected]>2017-12-12 19:46:38 +0800
committeryangfasheng <[email protected]>2017-12-12 19:46:38 +0800
commit2d98c0e7be8e0803de4b4e8e9ba03635bcef91c8 (patch)
tree2369b56b2cb936de281b8e8b335da94828298af3 /components/gui/src/widget.c
parent44e17aa2772a48697604ba1122da4a0bb9015414 (diff)
gui 引擎代码更新;
Diffstat (limited to 'components/gui/src/widget.c')
-rw-r--r--components/gui/src/widget.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/gui/src/widget.c b/components/gui/src/widget.c
index 45919cfd4f..53ef4d4f46 100644
--- a/components/gui/src/widget.c
+++ b/components/gui/src/widget.c
@@ -218,12 +218,12 @@ void rtgui_widget_set_minheight(rtgui_widget_t *widget, int height)
}
RTM_EXPORT(rtgui_widget_set_minheight);
-static void _widget_moveto(struct rtgui_widget* widget, int dx, int dy)
+static void _widget_move(struct rtgui_widget* widget, int dx, int dy)
{
struct rtgui_list_node *node;
rtgui_widget_t *child, *parent;
- rtgui_rect_moveto(&(widget->extent), dx, dy);
+ rtgui_rect_move(&(widget->extent), dx, dy);
/* handle visiable extent */
widget->extent_visiable = widget->extent;
@@ -243,7 +243,7 @@ static void _widget_moveto(struct rtgui_widget* widget, int dx, int dy)
{
child = rtgui_list_entry(node, rtgui_widget_t, sibling);
- _widget_moveto(child, dx, dy);
+ _widget_move(child, dx, dy);
}
}
}
@@ -280,7 +280,7 @@ void rtgui_widget_move_to_logic(rtgui_widget_t *widget, int dx, int dy)
}
/* move this widget (and its children if it's a container) to destination point */
- _widget_moveto(widget, dx, dy);
+ _widget_move(widget, dx, dy);
/* update this widget */
rtgui_widget_update_clip(widget);
}