X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fgui%2Fmenu.h;h=b21b023f72aab7b50e87f7c106408b3240e79914;hb=eadb6634eaa197dbc02331d75285a4a47f58d52a;hp=d5b516ae9cec6443b94eb660ea5cfd0170ac76fa;hpb=6e0b59dab1ec92a0911eb5e8ebde34d96bb4739d;p=bertos.git diff --git a/bertos/gui/menu.h b/bertos/gui/menu.h index d5b516ae..b21b023f 100644 --- a/bertos/gui/menu.h +++ b/bertos/gui/menu.h @@ -37,7 +37,6 @@ * \brief Common menu handling API * * $WIZ$ module_name = "menu" - * $WIZ$ module_configuration = "bertos/cfg/cfg_menu.h" * $WIZ$ module_depends = "text", "gfx", "timer", "kbd" */ @@ -46,11 +45,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. @@ -100,6 +99,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; /**