1 | /* gtksidebarrowprivate.h |
2 | * |
3 | * Copyright (C) 2015 Carlos Soriano <csoriano@gnome.org> |
4 | * |
5 | * This file is free software; you can redistribute it and/or modify it |
6 | * under the terms of the GNU Lesser General Public License as |
7 | * published by the Free Software Foundation; either version 2.1 of the |
8 | * License, or (at your option) any later version. |
9 | * |
10 | * This file is distributed in the hope that it will be useful, but |
11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | * Lesser General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU Lesser General Public License |
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | */ |
18 | #ifndef GTK_SIDEBAR_ROW_PRIVATE_H |
19 | #define |
20 | |
21 | #include <glib.h> |
22 | #include "gtklistbox.h" |
23 | |
24 | G_BEGIN_DECLS |
25 | |
26 | #define (gtk_sidebar_row_get_type()) |
27 | #define (obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SIDEBAR_ROW, GtkSidebarRow)) |
28 | #define (klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SIDEBAR_ROW, GtkSidebarRowClass)) |
29 | #define (obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SIDEBAR_ROW)) |
30 | #define (klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SIDEBAR_ROW)) |
31 | #define (obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SIDEBAR_ROW, GtkSidebarRowClass)) |
32 | |
33 | typedef struct ; |
34 | typedef struct _GtkSidebarRowClass ; |
35 | |
36 | struct |
37 | { |
38 | GtkListBoxRowClass ; |
39 | }; |
40 | |
41 | GType (void) G_GNUC_CONST; |
42 | |
43 | GtkSidebarRow * (void); |
44 | GtkSidebarRow * (GtkSidebarRow *self); |
45 | |
46 | /* Use these methods instead of gtk_widget_hide/show to use an animation */ |
47 | void (GtkSidebarRow *self, |
48 | gboolean immediate); |
49 | void (GtkSidebarRow *self); |
50 | |
51 | GtkWidget * (GtkSidebarRow *self); |
52 | void (GtkSidebarRow *self, |
53 | GIcon *icon); |
54 | void (GtkSidebarRow *self, |
55 | GIcon *icon); |
56 | void (GtkSidebarRow *row, |
57 | gboolean is_busy); |
58 | |
59 | G_END_DECLS |
60 | |
61 | #endif /* GTK_SIDEBAR_ROW_PRIVATE_H */ |
62 | |