projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
USB: add standard subclasses definitions
[bertos.git]
/
bertos
/
gui
/
menu.h
diff --git
a/bertos/gui/menu.h
b/bertos/gui/menu.h
index 5c17428330d85eb68114410d870b2d5d28360b1a..b21b023f72aab7b50e87f7c106408b3240e79914 100644
(file)
--- a/
bertos/gui/menu.h
+++ b/
bertos/gui/menu.h
@@
-35,6
+35,9
@@
* \author Stefano Fedrigo <aleph@develer.com>
*
* \brief Common menu handling API
* \author Stefano Fedrigo <aleph@develer.com>
*
* \brief Common menu handling API
+ *
+ * $WIZ$ module_name = "menu"
+ * $WIZ$ module_depends = "text", "gfx", "timer", "kbd"
*/
#ifndef GUI_MENU_H
*/
#ifndef GUI_MENU_H
@@
-42,11
+45,11
@@
#include <cfg/compiler.h>
#include <cfg/compiler.h>
-/* Fwd decl */
-struct Bitmap;
+#include <gfx/gfx.h>
/** Menu callback function */
typedef iptr_t (*MenuHook)(iptr_t userdata);
/** Menu callback function */
typedef iptr_t (*MenuHook)(iptr_t userdata);
+typedef void (*BlitBitmap)(const Bitmap *bm);
/**
* Menu item description.
/**
* Menu item description.
@@
-96,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). */
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;
/**
} Menu;
/**