X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fgui%2Fmenu.h;h=b21b023f72aab7b50e87f7c106408b3240e79914;hb=08eb84f9adca434cbc682642aea5f3a7aea17187;hp=9e6e58addca6f70b49873b5822fe226d2542527c;hpb=316505254b7c56603441d01182c5e71470f1a3ff;p=bertos.git diff --git a/bertos/gui/menu.h b/bertos/gui/menu.h index 9e6e58ad..b21b023f 100644 --- a/bertos/gui/menu.h +++ b/bertos/gui/menu.h @@ -45,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. @@ -99,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; /**