~ubuntu-branches/ubuntu/karmic/gnome-disk-utility/karmic

« back to all changes in this revision

Viewing changes to src/playground/grid/gdu-grid-view.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-02 23:33:14 UTC
  • Revision ID: james.westby@ubuntu.com-20090302233314-6t4zbyzvpqxs2v96
Tags: upstream-0.3
ImportĀ upstreamĀ versionĀ 0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
 
2
 
 
3
#ifndef __GDU_GRID_VIEW_H
 
4
#define __GDU_GRID_VIEW_H
 
5
 
 
6
#include "gdu-grid-types.h"
 
7
 
 
8
G_BEGIN_DECLS
 
9
 
 
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))
 
16
 
 
17
typedef struct GduGridViewClass   GduGridViewClass;
 
18
typedef struct GduGridViewPrivate GduGridViewPrivate;
 
19
 
 
20
struct GduGridView
 
21
{
 
22
        GtkVBox parent;
 
23
 
 
24
        /*< private >*/
 
25
        GduGridViewPrivate *priv;
 
26
};
 
27
 
 
28
struct GduGridViewClass
 
29
{
 
30
        GtkVBoxClass parent_class;
 
31
 
 
32
        /*< public >*/
 
33
        /* signals */
 
34
        void (*selection_changed) (GduGridView *view);
 
35
};
 
36
 
 
37
GType           gdu_grid_view_get_type         (void) G_GNUC_CONST;
 
38
GtkWidget      *gdu_grid_view_new              (GduPool        *pool);
 
39
 
 
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);
 
48
 
 
49
G_END_DECLS
 
50
 
 
51
#endif /* __GDU_GRID_VIEW_H */