NetSurf
image.h
Go to the documentation of this file.
1/*
2 * Copyright 2011 John-Mark Bell <jmb@netsurf-browser.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/** \file
20 * Initialisation/finalisation of image handlers.
21 */
22
23#ifndef NETSURF_IMAGE_IMAGE_H_
24#define NETSURF_IMAGE_IMAGE_H_
25
26#include "utils/errors.h"
27
29
30/** Initialise the content handlers for image types.
31 */
33
34/** Common image content handler bitmap plot call.
35 *
36 * This plots the specified bitmap controlled by the redraw context
37 * and specific content redraw data. It is a helper specifically
38 * provided for image content handlers redraw callback.
39 */
41 struct content_redraw_data *data,
42 const struct rect *clip,
43 const struct redraw_context *ctx);
44
45#endif
bool image_bitmap_plot(struct bitmap *bitmap, struct content_redraw_data *data, const struct rect *clip, const struct redraw_context *ctx)
Common image content handler bitmap plot call.
Definition: image.c:116
nserror image_init(void)
Initialise the content handlers for image types.
Definition: image.c:48
Error codes.
nserror
Enumeration of error codes.
Definition: errors.h:29
RISC OS wimp toolkit bitmap.
Definition: bitmap.c:68
parameters to content redraw
Definition: content.h:40
Rectangle coordinates.
Definition: types.h:40
Redraw context.
Definition: plotters.h:51
static nserror clip(const struct redraw_context *ctx, const struct rect *clip)
Sets a clip rectangle for subsequent plot operations.
Definition: plot.c:357