projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix type
[bertos.git]
/
bertos
/
gui
/
menu.h
diff --git
a/bertos/gui/menu.h
b/bertos/gui/menu.h
index 9e6e58addca6f70b49873b5822fe226d2542527c..b3ada468f2b2cdbe3cc4ff5ed7f38d30e761a94b 100644
(file)
--- a/
bertos/gui/menu.h
+++ b/
bertos/gui/menu.h
@@
-31,6
+31,9
@@
* All Rights Reserved.
* -->
*
* All Rights Reserved.
* -->
*
+ * \defgroup menu Menu handling module
+ * \ingroup gui
+ * \{
* \author Bernie Innocenti <bernie@codewiz.org>
* \author Stefano Fedrigo <aleph@develer.com>
*
* \author Bernie Innocenti <bernie@codewiz.org>
* \author Stefano Fedrigo <aleph@develer.com>
*
@@
-45,11
+48,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.
@@
-99,6
+102,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;
/**
@@
-127,4
+131,5
@@
iptr_t menu_handle(const struct Menu *menu);
int menu_setFlags(struct Menu *menu, int idx, int flags);
int menu_clearFlags(struct Menu *menu, int idx, int flags);
int menu_setFlags(struct Menu *menu, int idx, int flags);
int menu_clearFlags(struct Menu *menu, int idx, int flags);
+/** \} */ //defgroup menu
#endif /* GUI_MENU_H */
#endif /* GUI_MENU_H */