source: trunk/third/gtkhtml/src/htmlgdkpainter.h @ 16767

Revision 16767, 2.4 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16766, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2/* This file is part of the GtkHTML library.
3
4   Copyright (C) 2000 Helix Code, Inc.
5   
6   This library is free software; you can redistribute it and/or
7   modify it under the terms of the GNU Library General Public
8   License as published by the Free Software Foundation; either
9   version 2 of the License, or (at your option) any later version.
10   
11   This library is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14   Library General Public License for more details.
15   
16   You should have received a copy of the GNU Library General Public License
17   along with this library; see the file COPYING.LIB.  If not, write to
18   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19   Boston, MA 02111-1307, USA.
20*/
21
22#ifndef _HTMLGDKPAINTER_H
23#define _HTMLGDKPAINTER_H
24
25#include "htmlpainter.h"
26#include "htmlfontmanager.h"
27
28
29#define HTML_TYPE_GDK_PAINTER                 (html_gdk_painter_get_type ())
30#define HTML_GDK_PAINTER(obj)                 (GTK_CHECK_CAST ((obj), HTML_TYPE_GDK_PAINTER, HTMLGdkPainter))
31#define HTML_GDK_PAINTER_CLASS(klass)         (GTK_CHECK_CLASS_CAST ((klass), HTML_TYPE_GDK_PAINTER, HTMLGdkPainterClass))
32#define HTML_IS_GDK_PAINTER(obj)              (GTK_CHECK_TYPE ((obj), HTML_TYPE_GDK_PAINTER))
33#define HTML_IS_GDK_PAINTER_CLASS(klass)      (GTK_CHECK_CLASS_TYPE ((klass), HTML_TYPE_GDK_PAINTER))
34
35
36struct _HTMLGdkPainter {
37        HTMLPainter base;
38
39        /* GdkWindow to draw on */
40        GdkWindow *window;
41
42        /* The current GC used.  */
43        GdkGC *gc;
44
45        /* For the double-buffering system.  */
46        gboolean double_buffer;
47        GdkPixmap *pixmap;
48        gint x1, y1, x2, y2;
49        GdkColor background;
50        gboolean set_background;
51        gboolean do_clear;
52        gboolean alpha;
53
54        /* Colors used for shading.  */
55        GdkColor dark;
56        GdkColor light;
57        GdkColor black;
58};
59
60struct _HTMLGdkPainterClass {
61        HTMLPainterClass base;
62};
63
64
65GtkType      html_gdk_painter_get_type   (void);
66HTMLPainter *html_gdk_painter_new        (gboolean        double_buffer);
67void         html_gdk_painter_realize    (HTMLGdkPainter *painter,
68                                          GdkWindow      *window);
69void         html_gdk_painter_unrealize  (HTMLGdkPainter *painter);
70gboolean     html_gdk_painter_realized   (HTMLGdkPainter *painter);
71
72#endif /* _HTMLGDKPAINTER_H */
Note: See TracBrowser for help on using the repository browser.