Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
gxklistwrapper.hh
Go to the documentation of this file.
1  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
2 #ifndef __GXK_LIST_WRAPPER_H__
3 #define __GXK_LIST_WRAPPER_H__
4 
5 #include <gxk/gxkglobals.hh>
6 
7 /* --- type macros --- */
8 #define GXK_TYPE_LIST_WRAPPER (gxk_list_wrapper_get_type ())
9 #define GXK_LIST_WRAPPER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GXK_TYPE_LIST_WRAPPER, GxkListWrapper))
10 #define GXK_LIST_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXK_TYPE_LIST_WRAPPER, GxkListWrapperClass))
11 #define GXK_IS_LIST_WRAPPER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GXK_TYPE_LIST_WRAPPER))
12 #define GXK_IS_LIST_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXK_TYPE_LIST_WRAPPER))
13 #define GXK_LIST_WRAPPER_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), GXK_TYPE_LIST_WRAPPER, GxkListWrapperClass))
14 
15 
16 /* --- structures & typedefs --- */
17 typedef struct _GxkListWrapper GxkListWrapper;
18 typedef struct _GxkListWrapperClass GxkListWrapperClass;
20 {
21  GObject parent_instance;
22 
23  guint n_rows;
24  guint n_cols;
25  GType *column_types;
26 
27  /*< private >*/
28  guint stamp;
29 };
31 {
32  GObjectClass parent_class;
33 
34  void (*fill_value) (GxkListWrapper *self,
35  guint column,
36  guint row,
37  GValue *value);
38  void (*row_change) (GxkListWrapper *self,
39  gint row);
40 };
41 
42 
43 /* --- prototypes --- */
44 GType gxk_list_wrapper_get_type (void);
45 GxkListWrapper* gxk_list_wrapper_new (guint n_cols,
46  GType first_column_type,
47  ...);
48 GxkListWrapper* gxk_list_wrapper_newv (guint n_cols,
49  GType *column_types);
50 void gxk_list_wrapper_notify_insert (GxkListWrapper *self,
51  guint nth_row);
52 void gxk_list_wrapper_notify_change (GxkListWrapper *self,
53  guint nth_row);
54 void gxk_list_wrapper_notify_delete (GxkListWrapper *self,
55  guint nth_row);
56 void gxk_list_wrapper_notify_prepend (GxkListWrapper *self,
57  guint n_rows);
58 void gxk_list_wrapper_notify_append (GxkListWrapper *self,
59  guint n_rows);
60 void gxk_list_wrapper_notify_clear (GxkListWrapper *self);
61 guint gxk_list_wrapper_get_index (GxkListWrapper *self,
62  GtkTreeIter *iter);
63 void gxk_list_wrapper_get_iter_at (GxkListWrapper *self,
64  GtkTreeIter *iter,
65  guint index);
66 
67 #endif /* __GXK_LIST_WRAPPER_H__ */
Definition: gxklistwrapper.hh:19
uint32_t * row(uint y)
Definition: gxklistwrapper.hh:30