1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* This file is part of the GtkHTML library
3 * Copyright (C) 1999 Helix Code, Inc.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library 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 GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
21 #ifndef _HTMLDRAWQUEUE_H
22 #define _HTMLDRAWQUEUE_H
25 #include "htmltypes.h"
27 struct _HTMLDrawQueueClearElement
{
30 GdkColor
*background_color
;
31 GdkPixbuf
*background_image
;
32 guint background_image_x_offset
, background_image_y_offset
;
35 struct _HTMLDrawQueue
{
36 /* The associated engine. */
39 /* Elements to be drawn. */
41 /* Pointer to the last element in the list, for faster appending. */
44 /* Elements to be cleared (HTMLDrawQueueClearElement). */
46 /* Pointer to the last element. */
51 /* Creation/destruction. */
52 HTMLDrawQueue
*html_draw_queue_new (HTMLEngine
*engine
);
53 void html_draw_queue_destroy (HTMLDrawQueue
*queue
);
54 void html_draw_queue_flush (HTMLDrawQueue
*queue
);
55 void html_draw_queue_clear (HTMLDrawQueue
*queue
);
58 void html_draw_queue_add (HTMLDrawQueue
*queue
,
61 /* Adding clear areas. */
62 void html_draw_queue_add_clear (HTMLDrawQueue
*queue
,
67 const GdkColor
*background_color
);
68 void html_draw_queue_add_clear_with_background (HTMLDrawQueue
*queue
,
73 GdkPixbuf
*background_image
,
75 guint image_y_offset
);
77 #endif /* _HTMLDRAWQUEUE_H */