src/nautilus-cell-renderer-pixbuf-emblem.h (2560B) - raw
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
2 *
3 * nautilus-cell-renderer-pixbuf-emblem.h: cell renderer which can render
4 * an emblem on top of a pixbuf (for use in FMListView and FMTreeView)
5 * Copyright (C) 2003 Juerg Billeter
6 *
7 * Mail Notification
8 * Copyright (C) 2003-2008 Jean-Yves Lefort <jylefort@brutele.be>
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License along
21 * with this program; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 */
24
25 #ifndef NAUTILUS_CELL_RENDERER_PIXBUF_EMBLEM_H
26 #define NAUTILUS_CELL_RENDERER_PIXBUF_EMBLEM_H
27
28 #include <gtk/gtkcellrenderer.h>
29
30 #define NAUTILUS_TYPE_CELL_RENDERER_PIXBUF_EMBLEM \
31 (nautilus_cell_renderer_pixbuf_emblem_get_type ())
32 #define NAUTILUS_CELL_RENDERER_PIXBUF_EMBLEM(obj) \
33 (GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_CELL_RENDERER_PIXBUF_EMBLEM, NautilusCellRendererPixbufEmblem))
34 #define NAUTILUS_CELL_RENDERER_PIXBUF_EMBLEM_CLASS(klass) \
35 (GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_CELL_RENDERER_PIXBUF_EMBLEM, NautilusCellRendererPixbufEmblemClass))
36 #define NAUTILUS_IS_CELL_RENDERER_PIXBUF_EMBLEM(obj) \
37 (GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_CELL_RENDERER_PIXBUF_EMBLEM))
38 #define NAUTILUS_IS_CELL_RENDERER_PIXBUF_EMBLEM_CLASS(klass) \
39 (GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_CELL_RENDERER_PIXBUF_EMBLEM))
40
41 typedef struct _NautilusCellRendererPixbufEmblem NautilusCellRendererPixbufEmblem;
42 typedef struct _NautilusCellRendererPixbufEmblemClass NautilusCellRendererPixbufEmblemClass;
43
44 struct _NautilusCellRendererPixbufEmblem {
45 GtkCellRenderer parent;
46
47 /*< private >*/
48 GdkPixbuf *pixbuf;
49 GdkPixbuf *pixbuf_expander_open;
50 GdkPixbuf *pixbuf_expander_closed;
51 GdkPixbuf *pixbuf_emblem;
52 };
53
54 struct _NautilusCellRendererPixbufEmblemClass {
55 GtkCellRendererClass parent_class;
56 };
57
58 GType nautilus_cell_renderer_pixbuf_emblem_get_type (void);
59 GtkCellRenderer *nautilus_cell_renderer_pixbuf_emblem_new (void);
60
61 #endif /* NAUTILUS_CELL_RENDERER_PIXBUF_EMBLEM_H */