NetSurf
framebuffer.h
Go to the documentation of this file.
1/*
2 * Copyright 2008 Vincent Sanders <vince@simtec.co.uk>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19/**
20 * \file
21 * framebuffer interface.
22 */
23
24#ifndef NETSURF_FB_FRAMEBUFFER_H
25#define NETSURF_FB_FRAMEBUFFER_H
26
27extern const struct plotter_table fb_plotters;
28
29nsfb_t *framebuffer_initialise(const char *fename, int width, int height, int bpp);
30bool framebuffer_resize(nsfb_t *nsfb, int width, int height, int bpp);
31void framebuffer_finalise(void);
32bool framebuffer_set_cursor(struct fbtk_bitmap *bm);
33
34/** Set framebuffer surface to render into
35 *
36 * @return return old surface
37 */
38nsfb_t *framebuffer_set_surface(nsfb_t *new_nsfb);
39
40#endif
static const char * fename
Definition: gui.c:462
static nsfb_t * nsfb
Definition: framebuffer.c:45
nsfb_t * framebuffer_initialise(const char *fename, int width, int height, int bpp)
Definition: framebuffer.c:577
bool framebuffer_resize(nsfb_t *nsfb, int width, int height, int bpp)
Definition: framebuffer.c:619
const struct plotter_table fb_plotters
framebuffer plot operation table
Definition: framebuffer.c:525
nsfb_t * framebuffer_set_surface(nsfb_t *new_nsfb)
Set framebuffer surface to render into.
Definition: framebuffer.c:649
void framebuffer_finalise(void)
Definition: framebuffer.c:638
bool framebuffer_set_cursor(struct fbtk_bitmap *bm)
Definition: framebuffer.c:644
int width
Definition: gui.c:159
int height
Definition: gui.c:160
framebuffer toolkit bitmaps
Definition: fbtk.h:63
Plotter operations table.
Definition: plotters.h:102