NetSurf
bitmap.h
Go to the documentation of this file.
1/*
2 * Copyright 2006 Daniel Silverstone <dsilvers@digital-scurf.org>
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#ifndef NS_GTK_BITMAP_H
20#define NS_GTK_BITMAP_H
21
22#include <cairo.h>
23
25
26struct bitmap {
27 cairo_surface_t *surface; /* original cairo surface */
28 cairo_surface_t *scsurface; /* scaled surface */
29 bool opaque;
30};
31
32int nsgtk_bitmap_get_width(void *vbitmap);
33int nsgtk_bitmap_get_height(void *vbitmap);
34
35#endif /* NS_GTK_BITMAP_H */
struct gui_bitmap_table * nsgtk_bitmap_table
Definition: bitmap.c:294
int nsgtk_bitmap_get_height(void *vbitmap)
Definition: bitmap.c:187
int nsgtk_bitmap_get_width(void *vbitmap)
Definition: bitmap.c:178
RISC OS wimp toolkit bitmap.
Definition: bitmap.c:68
cairo_surface_t * surface
Definition: bitmap.h:27
cairo_surface_t * scsurface
Definition: bitmap.h:28
bool opaque
Whether the bitmap is opaque.
Definition: bitmap.c:74
Bitmap operations.
Definition: bitmap.h:125