Recreate 2.6 branch.
[bertos.git] / bertos / gui / menu.h
index 9e6e58addca6f70b49873b5822fe226d2542527c..b21b023f72aab7b50e87f7c106408b3240e79914 100644 (file)
 
 #include <cfg/compiler.h>
 
-/* Fwd decl */
-struct Bitmap;
+#include <gfx/gfx.h>
 
 /** 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;
 
 /**