summaryrefslogtreecommitdiffstats
path: root/subprojects/libgd/libgd/gd-main-box-child.h
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/libgd/libgd/gd-main-box-child.h')
-rw-r--r--subprojects/libgd/libgd/gd-main-box-child.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/subprojects/libgd/libgd/gd-main-box-child.h b/subprojects/libgd/libgd/gd-main-box-child.h
new file mode 100644
index 0000000..b2600a6
--- /dev/null
+++ b/subprojects/libgd/libgd/gd-main-box-child.h
@@ -0,0 +1,54 @@
+/*
+ * Copyright (c) 2016 Red Hat, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Debarshi Ray <debarshir@gnome.org>
+ *
+ */
+
+#ifndef __GD_MAIN_BOX_CHILD_H__
+#define __GD_MAIN_BOX_CHILD_H__
+
+#include <gtk/gtk.h>
+
+#include "gd-main-box-item.h"
+
+G_BEGIN_DECLS
+
+#define GD_TYPE_MAIN_BOX_CHILD gd_main_box_child_get_type()
+G_DECLARE_INTERFACE (GdMainBoxChild, gd_main_box_child, GD, MAIN_BOX_CHILD, GtkWidget)
+
+struct _GdMainBoxChildInterface
+{
+ GTypeInterface base_iface;
+
+ /* vtable */
+ gint (* get_index) (GdMainBoxChild *self);
+ GdMainBoxItem * (* get_item) (GdMainBoxChild *self);
+ gboolean (* get_selected) (GdMainBoxChild *self);
+ void (* set_selected) (GdMainBoxChild *self, gboolean selected);
+};
+
+gint gd_main_box_child_get_index (GdMainBoxChild *self);
+GdMainBoxItem * gd_main_box_child_get_item (GdMainBoxChild *self);
+gboolean gd_main_box_child_get_selected (GdMainBoxChild *self);
+gboolean gd_main_box_child_get_selection_mode (GdMainBoxChild *self);
+void gd_main_box_child_set_selected (GdMainBoxChild *self, gboolean selected);
+void gd_main_box_child_set_selection_mode (GdMainBoxChild *self, gboolean selection_mode);
+
+G_END_DECLS
+
+#endif /* __GD_MAIN_BOX_CHILD_H__ */