summaryrefslogtreecommitdiff
path: root/framebuffer/fbtk.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2011-11-21 08:45:08 +0000
committerVincent Sanders <vince@netsurf-browser.org>2011-11-21 08:45:08 +0000
commit820312eb35e6fa4f0930a343e8d418c4e2011755 (patch)
tree6a151f91e1be6496b11e843c8af603addd690727 /framebuffer/fbtk.h
parent747c66c982cd36979e17d2b845f93559a9d5affd (diff)
downloadnetsurf-820312eb35e6fa4f0930a343e8d418c4e2011755.tar.gz
netsurf-820312eb35e6fa4f0930a343e8d418c4e2011755.tar.bz2
Update for modified libnsfb API
Make thumbnailing work svn path=/trunk/netsurf/; revision=13159
Diffstat (limited to 'framebuffer/fbtk.h')
-rw-r--r--framebuffer/fbtk.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/framebuffer/fbtk.h b/framebuffer/fbtk.h
index 1d682d0c4..e58795742 100644
--- a/framebuffer/fbtk.h
+++ b/framebuffer/fbtk.h
@@ -61,6 +61,18 @@ typedef struct fbtk_callback_info {
fbtk_widget_t *widget;
} fbtk_callback_info;
+/* structure for framebuffer toolkit bitmaps */
+struct fbtk_bitmap {
+ int width;
+ int height;
+ uint8_t *pixdata;
+ bool opaque;
+
+ /* The following two are only used for cursors */
+ int hot_x;
+ int hot_y;
+};
+
typedef int (*fbtk_callback)(fbtk_widget_t *widget, fbtk_callback_info *cbi);
/* enter pressed on writable icon */
@@ -349,9 +361,9 @@ void *fbtk_get_userpw(fbtk_widget_t *widget);
* @param window The window to add the bitmap widget to.
* @return new widget handle or NULL on error.
*/
-fbtk_widget_t *fbtk_create_bitmap(fbtk_widget_t *window, int x, int y, int width, int height, colour c,struct bitmap *image);
+fbtk_widget_t *fbtk_create_bitmap(fbtk_widget_t *window, int x, int y, int width, int height, colour c,struct fbtk_bitmap *image);
-void fbtk_set_bitmap(fbtk_widget_t *widget, struct bitmap *image);
+void fbtk_set_bitmap(fbtk_widget_t *widget, struct fbtk_bitmap *image);
/** Create a button widget.
*
@@ -361,7 +373,7 @@ void fbtk_set_bitmap(fbtk_widget_t *widget, struct bitmap *image);
* @param window The window to add the button widget to.
* @return new widget handle or NULL on error.
*/
-fbtk_widget_t *fbtk_create_button(fbtk_widget_t *window, int x, int y, int width, int height, colour c, struct bitmap *image, fbtk_callback click, void *pw);
+fbtk_widget_t *fbtk_create_button(fbtk_widget_t *window, int x, int y, int width, int height, colour c, struct fbtk_bitmap *image, fbtk_callback click, void *pw);