1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
3
#ifndef __GDU_GRID_VIEW_H
4
#define __GDU_GRID_VIEW_H
6
#include "gdu-grid-types.h"
10
#define GDU_TYPE_GRID_VIEW gdu_grid_view_get_type()
11
#define GDU_GRID_VIEW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDU_TYPE_GRID_VIEW, GduGridView))
12
#define GDU_GRID_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GDU_TYPE_GRID_VIEW, GduGridViewClass))
13
#define GDU_IS_GRID_VIEW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDU_TYPE_GRID_VIEW))
14
#define GDU_IS_GRID_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDU_TYPE_GRID_VIEW))
15
#define GDU_GRID_VIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDU_TYPE_GRID_VIEW, GduGridViewClass))
17
typedef struct GduGridViewClass GduGridViewClass;
18
typedef struct GduGridViewPrivate GduGridViewPrivate;
25
GduGridViewPrivate *priv;
28
struct GduGridViewClass
30
GtkVBoxClass parent_class;
34
void (*selection_changed) (GduGridView *view);
37
GType gdu_grid_view_get_type (void) G_GNUC_CONST;
38
GtkWidget *gdu_grid_view_new (GduPool *pool);
40
gboolean gdu_grid_view_is_selected (GduGridView *view,
41
GduPresentable *presentable);
42
GList *gdu_grid_view_selection_get (GduGridView *view);
43
void gdu_grid_view_selection_add (GduGridView *view,
44
GduPresentable *presentable);
45
void gdu_grid_view_selection_remove (GduGridView *view,
46
GduPresentable *presentable);
47
void gdu_grid_view_selection_clear (GduGridView *view);
51
#endif /* __GDU_GRID_VIEW_H */