Split menu configuration. Add callback for smooth. Clean up.
[bertos.git] / bertos / gui / menu.h
index d5b516ae9cec6443b94eb660ea5cfd0170ac76fa..6e450d2360d3ca5a583a24d5fe4c900d1bcd7eb5 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.
@@ -100,6 +100,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;
 
 /**