19#ifndef FB_COREWINDOW_H
20#define FB_COREWINDOW_H
Interface to core window handling.
core_window_drag_status
drag status passed to drag_status callback
nserror
Enumeration of error codes.
struct core_window_table * framebuffer_core_window_table
nserror fb_corewindow_init(fbtk_widget_t *parent, struct fb_corewindow *fb_cw)
initialise elements of fb core window.
nserror fb_corewindow_fini(struct fb_corewindow *fb_cw)
finalise elements of fb core window.
browser_mouse_state
Mouse state: 1 is primary mouse button.
Core user interface window function table.
struct fbtk_widget_s * wnd
framebuffer toolkit window.
core_window_drag_status drag_status
drag status set by core
nserror(* key)(struct fb_corewindow *fb_cw, uint32_t nskey)
callback for keypress on fb core window
struct fbtk_widget_s * drawable
framebuffer toolkit user drawable widget.
struct fbtk_widget_s * vscroll
framebuffer toolkit vertical scrollbar.
struct fbtk_widget_s * hscroll
framebuffer toolkit horizontal scrollbar.
nserror(* draw)(struct fb_corewindow *fb_cw, struct rect *r)
callback to draw on drawable area of fb core window
int scrolly
scroll offsets.
nserror(* mouse)(struct fb_corewindow *fb_cw, browser_mouse_state mouse_state, int x, int y)
callback for mouse event on fb core window