NetSurf
imagemap.h
Go to the documentation of this file.
1/*
2 * Copyright 2004 John M Bell <jmb202@ecs.soton.ac.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 * Interface to HTML imagemap
22 */
23
24#ifndef NETSURF_HTML_IMAGEMAP_H
25#define NETSURF_HTML_IMAGEMAP_H
26
27#include <dom/dom.h>
28
29struct html_content;
30struct hlcache_handle;
31struct nsurl;
32
33void imagemap_destroy(struct html_content *c);
34void imagemap_dump(struct html_content *c);
36
37struct nsurl *imagemap_get(struct html_content *c, const char *key,
38 unsigned long x, unsigned long y,
39 unsigned long click_x, unsigned long click_y,
40 const char **target);
41
42#endif
nserror
Enumeration of error codes.
Definition: errors.h:29
void imagemap_destroy(struct html_content *c)
Destroy hashtable of imagemaps.
Definition: imagemap.c:200
nserror imagemap_extract(struct html_content *c)
Extract all imagemaps from a document tree.
Definition: imagemap.c:603
struct nsurl * imagemap_get(struct html_content *c, const char *key, unsigned long x, unsigned long y, unsigned long click_x, unsigned long click_y, const char **target)
Retrieve url associated with imagemap entry.
Definition: imagemap.c:737
void imagemap_dump(struct html_content *c)
Dump imagemap data to the log.
Definition: imagemap.c:231
struct nsurl nsurl
NetSurf URL object.
Definition: nsurl.h:31
High-level cache handle.
Definition: hlcache.c:66
Data specific to CONTENT_HTML.
Definition: private.h:93