# HG changeset patch # User ib # Date 1396103440 0 # Node ID 3b5fdb62a907ccff01622146b0d820807b4ef7d6 # Parent 45663ee3a9903c8b19de8e703dcaefcf617e3211 Add doxygen comments. diff -r 45663ee3a990 -r 3b5fdb62a907 gui/ui/render.c --- a/gui/ui/render.c Sat Mar 29 14:27:19 2014 +0000 +++ b/gui/ui/render.c Sat Mar 29 14:30:40 2014 +0000 @@ -16,6 +16,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +/** + * @file + * @brief GUI rendering + */ + #include #include #include @@ -359,6 +364,19 @@ return translation; } +/** + * @brief Put a part of a #guiImage image into a (window's) draw buffer. + * + * @param x x position where to start in the draw buffer + * @param y y position where to start in the draw buffer + * @param drawbuf draw buffer where the image should be put in + * @param drawbuf_width width of the draw buffer + * @param img image (containing several phases, i.e. image parts) + * @param parts number of parts in the image + * @param index index of the part of the image to be drawn + * @param below flag indicating whether the image parts are arranged + * below each other or side by side + */ static void PutImage(int x, int y, uint32_t *drawbuf, int drawbuf_width, guiImage *img, int parts, int index, int below) { register int i, ic, yc; @@ -400,6 +418,15 @@ } } +/** + * @brief Render all GUI items in a window, i.e. copy the respective images + * into the draw buffer. + * + * @param window pointer to a ws window structure of the window to be rendered + * @param items pointer to the array of items + * @param till maximum index in use for the @a items, i.e. number of last item in array + * @param drawbuf pointer to the @a window's draw buffer + */ void RenderAll(wsWindow *window, guiItem *items, int till, char *drawbuf) { uint32_t *db;