Updated Esperanto translation
[gtkhtml.git] / gtkhtml / htmldrawqueue.h
blob0169ebfa6b16b772c56e67c468a3e612b3c2dd05
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
24 #include <gtk/gtk.h>
25 #include "htmltypes.h"
27 struct _HTMLDrawQueueClearElement {
28 gint x, y;
29 guint width, height;
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. */
37 HTMLEngine *engine;
39 /* Elements to be drawn. */
40 GList *elems;
41 /* Pointer to the last element in the list, for faster appending. */
42 GList *last;
44 /* Elements to be cleared (HTMLDrawQueueClearElement). */
45 GList *clear_elems;
46 /* Pointer to the last element. */
47 GList *clear_last;
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);
57 /* Adding objects. */
58 void html_draw_queue_add (HTMLDrawQueue *queue,
59 HTMLObject *object);
61 /* Adding clear areas. */
62 void html_draw_queue_add_clear (HTMLDrawQueue *queue,
63 gint x,
64 gint y,
65 guint width,
66 guint height,
67 const GdkColor *background_color);
68 void html_draw_queue_add_clear_with_background (HTMLDrawQueue *queue,
69 gint x,
70 gint y,
71 guint width,
72 guint height,
73 GdkPixbuf *background_image,
74 guint image_x_offset,
75 guint image_y_offset);
77 #endif /* _HTMLDRAWQUEUE_H */