# HG changeset patch # User Thinker K.F. Li # Date 1218029693 -28800 # Node ID e292beec12d4d62da4500b946085305d74f78be2 # Parent db2aa914e14b6f7851ca07bcd19d74bb1ab325d7 - diff -r db2aa914e14b -r e292beec12d4 src/shape_rect.c --- a/src/shape_rect.c Wed Aug 06 21:05:11 2008 +0800 +++ b/src/shape_rect.c Wed Aug 06 21:34:53 2008 +0800 @@ -37,6 +37,18 @@ free(shape); } +void sh_rect_set(shape_t *shape, co_aix x, co_aix y, + co_aix w, co_aix h, co_aix rx, co_aix ry) { + sh_rect_t *rect = (sh_rect_t *)shape; + + rect->x = x; + rect->y = y; + rect->w = w; + rect->h = h; + rect->rx = rx; + rect->ry = ry; +} + void sh_rect_transform(shape_t *shape) { sh_rect_t *rect = (sh_rect_t *)shape; co_aix x, y, w, h, rx, ry; diff -r db2aa914e14b -r e292beec12d4 src/shapes.h --- a/src/shapes.h Wed Aug 06 21:05:11 2008 +0800 +++ b/src/shapes.h Wed Aug 06 21:34:53 2008 +0800 @@ -37,5 +37,7 @@ extern void sh_rect_free(shape_t *shape); extern void sh_rect_transform(shape_t *shape); extern void sh_rect_draw(shape_t *shape, cairo_t *cr); +extern void sh_rect_set(shape_t *shape, co_aix x, co_aix y, + co_aix w, co_aix h, co_aix rx, co_aix ry); #endif /* __SHAPES_H_ */