X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fgui%2Fmenu.h;h=b3ada468f2b2cdbe3cc4ff5ed7f38d30e761a94b;hb=52dc681d37e2d83df0ab5450584c7591e219a8d6;hp=5c17428330d85eb68114410d870b2d5d28360b1a;hpb=d351f28341d2673dd962cc967c56bba713f71024;p=bertos.git diff --git a/bertos/gui/menu.h b/bertos/gui/menu.h index 5c174283..b3ada468 100644 --- a/bertos/gui/menu.h +++ b/bertos/gui/menu.h @@ -31,10 +31,16 @@ * All Rights Reserved. * --> * + * \defgroup menu Menu handling module + * \ingroup gui + * \{ * \author Bernie Innocenti * \author Stefano Fedrigo * * \brief Common menu handling API + * + * $WIZ$ module_name = "menu" + * $WIZ$ module_depends = "text", "gfx", "timer", "kbd" */ #ifndef GUI_MENU_H @@ -42,11 +48,11 @@ #include -/* Fwd decl */ -struct Bitmap; +#include /** Menu callback function */ typedef iptr_t (*MenuHook)(iptr_t userdata); +typedef void (*BlitBitmap)(const Bitmap *bm); /** * Menu item description. @@ -96,6 +102,7 @@ typedef struct Menu int flags; /**< See MF_#? definitions below */ struct Bitmap *bitmap; /**< Bitmap where the menu is rendered */ int selected; /**< Initial selection (written to if MF_SAVESEL is set). */ + BlitBitmap lcd_blitBitmap; /**< Callback to call to do smooth the display */ } Menu; /** @@ -124,4 +131,5 @@ iptr_t menu_handle(const struct Menu *menu); int menu_setFlags(struct Menu *menu, int idx, int flags); int menu_clearFlags(struct Menu *menu, int idx, int flags); +/** \} */ //defgroup menu #endif /* GUI_MENU_H */