2011-02-11 22:35:16 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2011 Michael Drake <tlsa@netsurf-browser.org>
|
|
|
|
*
|
|
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
|
|
*
|
|
|
|
* NetSurf is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* NetSurf is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** \file
|
2011-06-28 19:18:48 +04:00
|
|
|
* Core types.
|
2011-02-11 22:35:16 +03:00
|
|
|
*/
|
|
|
|
|
2011-06-28 19:18:48 +04:00
|
|
|
#ifndef _NETSURF_UTILS_TYPES_H_
|
|
|
|
#define _NETSURF_UTILS_TYPES_H_
|
2011-02-11 22:35:16 +03:00
|
|
|
|
2013-05-31 13:02:27 +04:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2011-06-30 19:48:07 +04:00
|
|
|
struct plotter_table;
|
2011-09-06 22:07:30 +04:00
|
|
|
struct hlcache_handle;
|
2011-06-30 19:48:07 +04:00
|
|
|
|
2011-02-11 22:35:16 +03:00
|
|
|
/* Rectangle coordinates */
|
|
|
|
struct rect {
|
2011-02-19 23:05:16 +03:00
|
|
|
int x0, y0; /* Top left */
|
|
|
|
int x1, y1; /* Bottom right */
|
2011-02-11 22:35:16 +03:00
|
|
|
};
|
|
|
|
|
2011-06-30 19:48:07 +04:00
|
|
|
|
|
|
|
/* Redraw context */
|
|
|
|
struct redraw_context {
|
|
|
|
/** Redraw to show interactive features, such as active selections
|
|
|
|
* etc. Should be off for printing. */
|
|
|
|
bool interactive;
|
|
|
|
|
2011-12-24 02:39:25 +04:00
|
|
|
/** Render background images. May want it off for printing. */
|
|
|
|
bool background_images;
|
|
|
|
|
2011-06-30 19:48:07 +04:00
|
|
|
/** Current plotters, must be assigned before use. */
|
|
|
|
const struct plotter_table *plot;
|
|
|
|
};
|
|
|
|
|
2011-09-06 22:07:30 +04:00
|
|
|
|
|
|
|
/* Content located at a specific spatial location */
|
|
|
|
struct contextual_content {
|
|
|
|
const char *link_url;
|
|
|
|
struct hlcache_handle *object;
|
|
|
|
struct hlcache_handle *main;
|
2012-08-21 01:02:37 +04:00
|
|
|
enum {
|
|
|
|
CTX_FORM_NONE,
|
|
|
|
CTX_FORM_TEXT,
|
|
|
|
CTX_FORM_FILE
|
|
|
|
} form_features;
|
2011-09-06 22:07:30 +04:00
|
|
|
};
|
|
|
|
|
2011-02-11 22:35:16 +03:00
|
|
|
#endif
|