summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2006-11-19 14:11:42 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2006-11-19 14:11:42 +0000
commit6288523cfee31a474435ce3445e67733f532d916 (patch)
tree1fe3350c1d27a0144492d64792cea78f6a833c73 /apps/plugin.h
parent687328b7773ae917574841fa63326aa2bec264d6 (diff)
downloadrockbox-6288523cfee31a474435ce3445e67733f532d916.zip
rockbox-6288523cfee31a474435ce3445e67733f532d916.tar.gz
rockbox-6288523cfee31a474435ce3445e67733f532d916.tar.bz2
rockbox-6288523cfee31a474435ce3445e67733f532d916.tar.xz
* Move checkbox to plugin api (core never uses it)
* replace the last of the scrollbar() calls with gui_scrollbar_draw() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11552 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 608009d..339afe9 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -66,7 +66,7 @@
#include "timer.h"
#include "playlist.h"
#ifdef HAVE_LCD_BITMAP
-#include "widgets.h"
+#include "scrollbar.h"
#endif
#include "menu.h"
#include "rbunicode.h"
@@ -107,12 +107,12 @@
#define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 36
+#define PLUGIN_API_VERSION 37
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
new function which are "waiting" at the end of the function table) */
-#define PLUGIN_MIN_API_VERSION 34
+#define PLUGIN_MIN_API_VERSION 37
/* plugin return codes */
enum plugin_status {
@@ -169,6 +169,7 @@ struct plugin_api {
int stride, int x, int y, int width, int height);
void (*lcd_bitmap)(const fb_data *src, int x, int y, int width,
int height);
+ void (*lcd_set_backdrop)(fb_data* backdrop);
#endif
#if LCD_DEPTH == 16
void (*lcd_bitmap_transparent_part)(const fb_data *src,
@@ -189,9 +190,10 @@ struct plugin_api {
int bheight, int stride);
void (*lcd_update)(void);
void (*lcd_update_rect)(int x, int y, int width, int height);
- void (*scrollbar)(int x, int y, int width, int height, int items,
- int min_shown, int max_shown, int orientation);
- void (*checkbox)(int x, int y, int width, int height, bool checked);
+ void (*gui_scrollbar_draw)(struct screen * screen, int x, int y,
+ int width, int height, int items,
+ int min_shown, int max_shown,
+ unsigned flags);
struct font* (*font_get)(int font);
int (*font_getstringsize)(const unsigned char *str, int *w, int *h,
int fontnumber);
@@ -579,9 +581,7 @@ struct plugin_api {
#endif /* HAVE_RECORDING */
#endif /* CONFIG_CODEC == SWCODEC */
-#if LCD_DEPTH > 1
- void (*lcd_set_backdrop)(fb_data* backdrop);
-#endif
+
#ifdef IRAM_STEAL
void (*plugin_iram_init)(char *iramstart, char *iramcopy, size_t iram_size,