diff options
| author | [email protected] <[email protected]> | 2010-12-21 23:50:25 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2010-12-21 23:50:25 +0000 |
| commit | 297405c3c662c8b8f09c1abb9579f151c7128dfe (patch) | |
| tree | 2f6ef1218f38bed35c6557e00c2d32943a3b84b8 /components/rtgui/widgets/widget.c | |
| parent | 32d13198df15cfed5164ed510073b4f9a1a6181e (diff) | |
update menu control and add notebook control.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1220 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/rtgui/widgets/widget.c')
| -rw-r--r-- | components/rtgui/widgets/widget.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/rtgui/widgets/widget.c b/components/rtgui/widgets/widget.c index 34b022c04a..b3c5450444 100644 --- a/components/rtgui/widgets/widget.c +++ b/components/rtgui/widgets/widget.c @@ -138,6 +138,14 @@ void rtgui_widget_set_rect(rtgui_widget_t* widget, rtgui_rect_t* rect) } } +void rtgui_widget_get_extent(rtgui_widget_t* widget, rtgui_rect_t *rect) +{ + RT_ASSERT(widget != RT_NULL); + RT_ASSERT(rect != RT_NULL); + + *rect = widget->extent; +} + #ifndef RTGUI_USING_SMALL_SIZE void rtgui_widget_set_miniwidth(rtgui_widget_t* widget, int width) { |
