NetSurf
content
handlers
html
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
29
struct
html_content
;
30
struct
hlcache_handle
;
31
struct
nsurl
;
32
33
void
imagemap_destroy
(
struct
html_content
*c);
34
void
imagemap_dump
(
struct
html_content
*c);
35
nserror
imagemap_extract
(
struct
html_content
*c);
36
37
struct
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
nserror
Enumeration of error codes.
Definition:
errors.h:29
imagemap_destroy
void imagemap_destroy(struct html_content *c)
Destroy hashtable of imagemaps.
Definition:
imagemap.c:200
imagemap_extract
nserror imagemap_extract(struct html_content *c)
Extract all imagemaps from a document tree.
Definition:
imagemap.c:603
imagemap_get
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
imagemap_dump
void imagemap_dump(struct html_content *c)
Dump imagemap data to the log.
Definition:
imagemap.c:231
nsurl
struct nsurl nsurl
NetSurf URL object.
Definition:
nsurl.h:31
hlcache_handle
High-level cache handle.
Definition:
hlcache.c:66
html_content
Data specific to CONTENT_HTML.
Definition:
private.h:93
Generated on Fri Nov 15 2024 15:33:55 for NetSurf by
1.9.4