Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bstsequence.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 __BST_SEQUENCE_H__
3 #define __BST_SEQUENCE_H__
4 
5 #include <gtk/gtk.h>
6 #include "bstbseutils.hh"
7 
8 
9 /* --- type macros --- */
10 #define BST_TYPE_SEQUENCE (bst_sequence_get_type ())
11 #define BST_SEQUENCE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BST_TYPE_SEQUENCE, BstSequence))
12 #define BST_SEQUENCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BST_TYPE_SEQUENCE, BstSequenceClass))
13 #define BST_IS_SEQUENCE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BST_TYPE_SEQUENCE))
14 #define BST_IS_SEQUENCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BST_TYPE_SEQUENCE))
15 #define BST_SEQUENCE_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), BST_TYPE_SEQUENCE, BstSequenceClass))
16 
17 
18 /* --- structures --- */
19 typedef struct _BstSequence BstSequence;
20 typedef struct _BstSequenceClass BstSequenceClass;
22 {
23  GtkHBox parent_object;
24 
25  guint entered : 1;
26  GtkWidget *darea;
27  gint n_rows;
28  BseNoteSequence *sdata;
29 };
31 {
32  GtkHBoxClass parent_class;
33 
34  void (*seq_changed) (BstSequence *sequence);
35 };
36 
37 
38 /* --- prototypes --- */
39 GType bst_sequence_get_type (void);
40 void bst_sequence_set_seq (BstSequence *seq,
41  BseNoteSequence *sdata);
42 
43 
44 #endif /* __BST_SEQUENCE_H__ */
45 
Definition: bstsequence.hh:21
Definition: bstsequence.hh:30