-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathcellrenderericon.h
86 lines (67 loc) · 2.62 KB
/
cellrenderericon.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
* Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <[email protected]>
* Copyright (C) 2008 - 2016 The Geeqie Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __GQV_CELL_RENDERER_ICON_H__
#define __GQV_CELL_RENDERER_ICON_H__
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <glib-object.h>
#include <glib.h>
#include <gtk/gtk.h>
#include <pango/pango.h>
struct GQvCellRendererIcon;
#define TOGGLE_WIDTH 13
#define TOGGLE_SPACING 16
#define GQV_TYPE_CELL_RENDERER_ICON (gqv_cell_renderer_icon_get_type())
#define GQV_CELL_RENDERER_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GQV_TYPE_CELL_RENDERER_ICON, GQvCellRendererIcon))
#define GQV_CELL_RENDERER_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GQV_TYPE_CELL_RENDERER_ICON, GQvCellRendererIconClass))
#define GQV_IS_CELL_RENDERER_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GQV_TYPE_CELL_RENDERER_ICON))
#define GQV_IS_CELL_RENDERER_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GQV_TYPE_CELL_RENDERER_ICON))
#define GQV_CELL_RENDERER_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GQV_TYPE_CELL_RENDERER_ICON, GQvCellRendererIconClass))
struct GQvCellRendererIcon
{
GtkCellRenderer parent;
/*< private >*/
GdkPixbuf *pixbuf;
gchar *text;
PangoColor foreground;
PangoColor background;
gboolean focused;
gint fixed_width;
gint fixed_height;
gboolean foreground_set;
gboolean background_set;
gint num_marks;
gboolean show_text;
gboolean show_marks;
guint marks;
guint toggled_mark;
};
struct GQvCellRendererIconClass
{
GtkCellRendererClass parent_class;
void (*toggled)(GQvCellRendererIcon *cell_renderer, const gchar *path);
/* Padding for future expansion */
void (*_gtk_reserved1)();
void (*_gtk_reserved2)();
void (*_gtk_reserved3)();
void (*_gtk_reserved4)();
};
GType gqv_cell_renderer_icon_get_type();
GtkCellRenderer *gqv_cell_renderer_icon_new();
#endif /* __GQV_CELL_RENDERER_ICON_H__ */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */