Trim trailing white spaces on empty lines.
[geeqie.git] / src / cellrenderericon.h
1 /* cellrenderericon.h, based on:
2  *
3  * gtkcellrendererpixbuf.h
4  * Copyright (C) 2000  Red Hat, Inc.,  Jonathan Blandford <jrb@redhat.com>
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
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21
22 #ifndef __GQV_CELL_RENDERER_ICON_H__
23 #define __GQV_CELL_RENDERER_ICON_H__
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif /* __cplusplus */
28
29
30 #define GQV_TYPE_CELL_RENDERER_ICON             (gqv_cell_renderer_icon_get_type())
31 #define GQV_CELL_RENDERER_ICON(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GQV_TYPE_CELL_RENDERER_ICON, GQvCellRendererIcon))
32 #define GQV_CELL_RENDERER_ICON_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), GQV_TYPE_CELL_RENDERER_ICON, GQvCellRendererIconClass))
33 #define GQV_IS_CELL_RENDERER_ICON(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GQV_TYPE_CELL_RENDERER_ICON))
34 #define GQV_IS_CELL_RENDERER_ICON_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), GQV_TYPE_CELL_RENDERER_ICON))
35 #define GQV_CELL_RENDERER_ICON_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GQV_TYPE_CELL_RENDERER_ICON, GQvCellRendererIconClass))
36
37 typedef struct _GQvCellRendererIcon GQvCellRendererIcon;
38 typedef struct _GQvCellRendererIconClass GQvCellRendererIconClass;
39
40 struct _GQvCellRendererIcon
41 {
42         GtkCellRenderer parent;
43
44         /*< private >*/
45         GdkPixbuf *pixbuf;
46         gchar *text;
47         PangoColor foreground;
48         PangoColor background;
49         gboolean focused;
50
51         gint fixed_width;
52         gint fixed_height;
53
54         gboolean foreground_set;
55         gboolean background_set;
56
57         gint num_marks;
58
59         gboolean show_text;
60         gboolean show_marks;
61
62         guint marks;
63         guint toggled_mark;
64
65 };
66
67 struct _GQvCellRendererIconClass
68 {
69         GtkCellRendererClass parent_class;
70
71         void (*toggled)(GQvCellRendererIcon *cell_renderer, const gchar *path);
72
73         /* Padding for future expansion */
74         void (*_gtk_reserved1)(void);
75         void (*_gtk_reserved2)(void);
76         void (*_gtk_reserved3)(void);
77         void (*_gtk_reserved4)(void);
78 };
79
80 GType            gqv_cell_renderer_icon_get_type(void);
81 GtkCellRenderer *gqv_cell_renderer_icon_new(void);
82
83 #ifdef __cplusplus
84 }
85 #endif /* __cplusplus */
86
87 #endif /* __GQV_CELL_RENDERER_ICON_H__ */
88 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */