NetSurf
icon.h
Go to the documentation of this file.
1/*
2 * Copyright 2010 Chris Young <chris@unsatisfactorysoftware.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/** \file
20 * Content for image/x-amiga-icon (icon.library interface).
21 */
22
23#ifndef AMIGA_ICON_H
24#define AMIGA_ICON_H
25
26#include "utils/config.h"
27#include "utils/errors.h"
28
29#ifdef WITH_AMIGA_ICON
30
32void amiga_icon_fini(void);
33
34#else
35
36#define amiga_icon_init() NSERROR_OK
37#define amiga_icon_fini() ((void) 0)
38
39#endif /* WITH_AMIGA_ICON */
40
41struct hlcache_handle;
42
43void amiga_icon_superimpose_favicon(char *path, struct hlcache_handle *icon, char *type);
44void amiga_icon_superimpose_favicon_internal(struct hlcache_handle *icon, struct DiskObject *dobj);
45struct DiskObject *amiga_icon_from_bitmap(struct bitmap *bm);
46void amiga_icon_free(struct DiskObject *dobj);
47#endif
Error codes.
nserror
Enumeration of error codes.
Definition: errors.h:29
const char * type
Definition: filetype.cpp:44
#define amiga_icon_init()
Definition: icon.h:36
struct DiskObject * amiga_icon_from_bitmap(struct bitmap *bm)
Definition: icon.c:521
#define amiga_icon_fini()
Definition: icon.h:37
void amiga_icon_free(struct DiskObject *dobj)
Definition: icon.c:569
void amiga_icon_superimpose_favicon(char *path, struct hlcache_handle *icon, char *type)
Definition: icon.c:445
void amiga_icon_superimpose_favicon_internal(struct hlcache_handle *icon, struct DiskObject *dobj)
Definition: icon.c:390
RISC OS wimp toolkit bitmap.
Definition: bitmap.c:68
High-level cache handle.
Definition: hlcache.c:66
static nserror path(const struct redraw_context *ctx, const plot_style_t *pstyle, const float *p, unsigned int n, const float transform[6])
Plots a path.
Definition: plot.c:821