Convert move pointer during build and use it for page drag-scroll.

This commit is contained in:
Michael Drake 2012-08-01 21:48:16 +01:00
parent ffa3e6bf35
commit 40a754a362
3 changed files with 7 additions and 0 deletions

View File

@ -101,6 +101,7 @@ FB_IMAGE_hand_image := framebuffer/res/pointers/point.png
FB_IMAGE_caret_image := framebuffer/res/pointers/caret.png
FB_IMAGE_menu_image := framebuffer/res/pointers/menu.png
FB_IMAGE_progress_image := framebuffer/res/pointers/progress.png
FB_IMAGE_move_image := framebuffer/res/pointers/move.png
FB_IMAGE_throbber0 := framebuffer/res/throbber/throbber0.png
FB_IMAGE_throbber1 := framebuffer/res/throbber/throbber1.png

View File

@ -653,6 +653,7 @@ fb_browser_window_click(fbtk_widget_t *widget, fbtk_callback_info *cbi)
if (gui_drag.state == GUI_DRAG_DRAG) {
/* End of a drag, rather than click */
gui_drag.state = GUI_DRAG_NONE;
framebuffer_set_cursor(&pointer_image);
break;
}
/* This is a click;
@ -1529,6 +1530,10 @@ gui_window_set_pointer(struct gui_window *g, gui_pointer_shape shape)
framebuffer_set_cursor(&progress_image);
break;
case GUI_POINTER_MOVE:
framebuffer_set_cursor(&move_image);
break;
default:
framebuffer_set_cursor(&pointer_image);
break;

View File

@ -42,6 +42,7 @@ extern struct fbtk_bitmap pointer_image;
extern struct fbtk_bitmap hand_image;
extern struct fbtk_bitmap caret_image;
extern struct fbtk_bitmap menu_image;
extern struct fbtk_bitmap move_image;
extern struct fbtk_bitmap progress_image;
extern struct fbtk_bitmap throbber0;