NetSurf
knockout.h
Go to the documentation of this file.
1/*
2 * Copyright 2006 Richard Wilson <info@tinct.net>
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 * Knockout rendering (interface).
21 */
22
23#ifndef _NETSURF_DESKTOP_KNOCKOUT_H_
24#define _NETSURF_DESKTOP_KNOCKOUT_H_
25
26#include "netsurf/plotters.h"
27
28
29/**
30 * Start a knockout plotting session
31 *
32 * \param ctx the redraw context with real plotter table
33 * \param knk_ctx updated to copy of ctx, with plotter table replaced
34 * \return true on success, false otherwise
35 */
36bool knockout_plot_start(const struct redraw_context *ctx,
37 struct redraw_context *knk_ctx);
38/**
39 * End a knockout plotting session
40 *
41 * \return true on success, false otherwise
42 */
43bool knockout_plot_end(const struct redraw_context *ctx);
44
45extern const struct plotter_table knockout_plotters;
46
47#endif
Target independent plotting interface.
const struct plotter_table knockout_plotters
knockout plotter operation table
Definition: knockout.c:1012
bool knockout_plot_end(const struct redraw_context *ctx)
End a knockout plotting session.
Definition: knockout.c:997
bool knockout_plot_start(const struct redraw_context *ctx, struct redraw_context *knk_ctx)
Start a knockout plotting session.
Definition: knockout.c:971
Plotter operations table.
Definition: plotters.h:102
Redraw context.
Definition: plotters.h:51