summaryrefslogtreecommitdiff
path: root/framebuffer/fb_rootwindow.h
blob: 62d9e61f29a32e5fe3edd9bde95df77639cb3072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * Copyright 2008 Vincent Sanders <vince@simtec.co.uk>
 *
 * This file is part of NetSurf, http://www.netsurf-browser.org/
 *
 * NetSurf is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2 of the License.
 *
 * NetSurf is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

typedef struct fb_widget fb_widget_t;

typedef int (*fb_widget_input_t)(fb_widget_t *widget, struct gui_window *g,int value);
typedef int (*fb_widget_mouseclick_t)(struct gui_window *g, browser_mouse_state st, int x, int y);

void fb_rootwindow_click(struct gui_window *g, 
                         browser_mouse_state st , int x, int y);
void fb_rootwindow_input(struct gui_window *g, int value);
void fb_rootwindow_move(framebuffer_t *fb, struct gui_window *g, int x, int y, bool relative);

void fb_rootwindow_status(const char* text);
void fb_rootwindow_url(const char* text);


void fb_rootwindow_create(framebuffer_t *fb);

struct fb_widget *fb_add_window_widget(struct gui_window *g, colour bg, fb_widget_mouseclick_t click_rtn, fb_widget_input_t input_rtn);