~ubuntu-branches/ubuntu/lucid/gnome-themes-extras/lucid

« back to all changes in this revision

Viewing changes to Industrial/industrial_style.h

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2004-06-23 20:28:52 UTC
  • Revision ID: james.westby@ubuntu.com-20040623202852-j7hu6zargn5hnban
Tags: upstream-0.7.debian.1
ImportĀ upstreamĀ versionĀ 0.7.debian.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Industrial Engine
 
2
 * Copyright (C) 2001 Red Hat, Inc.
 
3
 * Copyright (C) 2002 Ximian, Inc.
 
4
 *
 
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.
 
9
 *
 
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.
 
14
 *
 
15
 * You should have received a copy of the GNU Library General Public
 
16
 * License along with this library; if not, write to the
 
17
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
18
 * Boston, MA 02111-1307, USA.
 
19
 *
 
20
 * Written by Owen Taylor <otaylor@redhat.com>
 
21
 * modified by Alexander Larsson <alexl@redhat.com>
 
22
 * modified by Christopher Lahey <clahey@ximian.com>
 
23
 */
 
24
#include <gtk/gtkstyle.h>
 
25
 
 
26
typedef struct _IndustrialStyle IndustrialStyle;
 
27
typedef struct _IndustrialStyleClass IndustrialStyleClass;
 
28
 
 
29
extern GType industrial_type_style;
 
30
 
 
31
#define INDUSTRIAL_TYPE_STYLE              industrial_type_style
 
32
#define INDUSTRIAL_STYLE(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), INDUSTRIAL_TYPE_STYLE, IndustrialStyle))
 
33
#define INDUSTRIAL_STYLE_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), INDUSTRIAL_TYPE_STYLE, IndustrialStyleClass))
 
34
#define INDUSTRIAL_IS_STYLE(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), INDUSTRIAL_TYPE_STYLE))
 
35
#define INDUSTRIAL_IS_STYLE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), INDUSTRIAL_TYPE_STYLE))
 
36
#define INDUSTRIAL_STYLE_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), INDUSTRIAL_TYPE_STYLE, IndustrialStyleClass))
 
37
 
 
38
struct _IndustrialStyle
 
39
{
 
40
  GtkStyle parent_instance;
 
41
 
 
42
  double contrast;
 
43
  double contrast_center;
 
44
  gboolean rounded_buttons;
 
45
 
 
46
  /* from light to dark */
 
47
  GHashTable *shading_hash; /* Of type Shading */
 
48
};
 
49
 
 
50
struct _IndustrialStyleClass
 
51
{
 
52
  GtkStyleClass parent_class;
 
53
};
 
54
 
 
55
void industrial_style_register_type (GTypeModule *module);