1 /*
2  * Copyright (c) 2016 Red Hat, Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or (at your
7  * option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
12  * License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program; if not, write to the Free Software Foundation,
16  * Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17  *
18  * Author: Debarshi Ray <debarshir@gnome.org>
19  *
20  */
21 
22 #ifndef __GD_MAIN_BOX_CHILD_H__
23 #define __GD_MAIN_BOX_CHILD_H__
24 
25 #include <gtk/gtk.h>
26 
27 #include "gd-main-box-item.h"
28 
29 G_BEGIN_DECLS
30 
31 #define GD_TYPE_MAIN_BOX_CHILD gd_main_box_child_get_type()
32 G_DECLARE_INTERFACE (GdMainBoxChild, gd_main_box_child, GD, MAIN_BOX_CHILD, GtkWidget)
33 
34 struct _GdMainBoxChildInterface
35 {
36   GTypeInterface base_iface;
37 
38   /* vtable */
39   gint             (* get_index)     (GdMainBoxChild *self);
40   GdMainBoxItem  * (* get_item)      (GdMainBoxChild *self);
41   gboolean         (* get_selected)  (GdMainBoxChild *self);
42   void             (* set_selected)  (GdMainBoxChild *self, gboolean selected);
43 };
44 
45 gint             gd_main_box_child_get_index           (GdMainBoxChild *self);
46 GdMainBoxItem  * gd_main_box_child_get_item            (GdMainBoxChild *self);
47 gboolean         gd_main_box_child_get_selected        (GdMainBoxChild *self);
48 gboolean         gd_main_box_child_get_selection_mode  (GdMainBoxChild *self);
49 void             gd_main_box_child_set_selected        (GdMainBoxChild *self, gboolean selected);
50 void             gd_main_box_child_set_selection_mode  (GdMainBoxChild *self, gboolean selection_mode);
51 
52 G_END_DECLS
53 
54 #endif /* __GD_MAIN_BOX_CHILD_H__ */
55