1
/* Metacity theme widget (displays themed draw operations) */
4
* Copyright (C) 2002 Havoc Pennington
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License as
8
* published by the Free Software Foundation; either version 2 of the
9
* License, or (at your option) any later version.
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
23
#include <gtk/gtkmisc.h>
25
#ifndef META_THEME_WIDGET_H
26
#define META_THEME_WIDGET_H
28
#define META_TYPE_AREA (meta_area_get_type ())
29
#define META_AREA(obj) (GTK_CHECK_CAST ((obj), META_TYPE_AREA, MetaArea))
30
#define META_AREA_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), META_TYPE_AREA, MetaAreaClass))
31
#define META_IS_AREA(obj) (GTK_CHECK_TYPE ((obj), META_TYPE_AREA))
32
#define META_IS_AREA_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), META_TYPE_AREA))
33
#define META_AREA_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), META_TYPE_AREA, MetaAreaClass))
35
typedef struct _MetaArea MetaArea;
36
typedef struct _MetaAreaClass MetaAreaClass;
39
typedef void (* MetaAreaSizeFunc) (MetaArea *area,
44
typedef void (* MetaAreaExposeFunc) (MetaArea *area,
45
GdkEventExpose *event,
54
MetaAreaSizeFunc size_func;
55
MetaAreaExposeFunc expose_func;
57
GDestroyNotify dnotify;
62
GtkMiscClass parent_class;
66
GtkType meta_area_get_type (void) G_GNUC_CONST;
67
GtkWidget* meta_area_new (void);
69
void meta_area_setup (MetaArea *area,
70
MetaAreaSizeFunc size_func,
71
MetaAreaExposeFunc expose_func,
73
GDestroyNotify dnotify);