From 2d98c0e7be8e0803de4b4e8e9ba03635bcef91c8 Mon Sep 17 00:00:00 2001 From: yangfasheng Date: Tue, 12 Dec 2017 19:46:38 +0800 Subject: gui 引擎代码更新; MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/gui/src/widget.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'components/gui/src/widget.c') 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); } -- cgit v1.3.1