source: trunk/third/gtkhtml3/src/htmlcolor.h @ 19539

Revision 19539, 1.8 KB checked in by ghudson, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r19538, 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   Authors:           Radek Doulik (rodo@helixcode.com)
6
7   This library is free software; you can redistribute it and/or
8   modify it under the terms of the GNU Library General Public
9   License as published by the Free Software Foundation; either
10   version 2 of the License, or (at your option) any later version.
11
12   This library is distributed in the hope that it will be useful,
13   but WITHOUT ANY WARRANTY; without even the implied warranty of
14   MERCHcANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15   Library General Public License for more details.
16
17   You should have received a copy of the GNU Library General Public License
18   along with this library; see the file COPYING.LIB.  If not, write to
19   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20   Boston, MA 02111-1307, USA.
21*/
22
23#ifndef _HTML_COLOR_H_
24#define _HTML_COLOR_H_
25
26#include <gdk/gdktypes.h>
27#include <gdk/gdkcolor.h>
28#include "htmltypes.h"
29
30struct _HTMLColor {
31        GdkColor color;
32        gboolean allocated;
33        guint refcount;
34};
35
36HTMLColor * html_color_new                (void);
37HTMLColor * html_color_new_from_gdk_color (const GdkColor *color);
38HTMLColor * html_color_new_from_rgb       (gushort red, gushort green, gushort blue);
39
40void        html_color_ref                (HTMLColor *color);
41void        html_color_unref              (HTMLColor *color);
42
43void        html_color_alloc              (HTMLColor *color, HTMLPainter *painter);
44void        html_color_free               (HTMLColor *color, HTMLPainter *painter);
45
46gboolean    html_color_equal              (HTMLColor *color1, HTMLColor *color2);
47
48void        html_color_set                (HTMLColor *color, GdkColor *c);
49
50#endif
Note: See TracBrowser for help on using the repository browser.