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
|
|
|
|
2011-06-30 19:48:07 +04:00
|
|
|
struct plotter_table;
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
/** Current plotters, must be assigned before use. */
|
|
|
|
const struct plotter_table *plot;
|
|
|
|
};
|
|
|
|
|
2011-02-11 22:35:16 +03:00
|
|
|
#endif
|