BEAST - Free Software Audio Synthesizer and Tracker  0.10.0
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 #ifdef __cplusplus
9 extern "C" {
10 #endif /* __cplusplus */
11 
12 
13 /* --- type macros --- */
14 #define BST_TYPE_SEQUENCE (bst_sequence_get_type ())
15 #define BST_SEQUENCE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BST_TYPE_SEQUENCE, BstSequence))
16 #define BST_SEQUENCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BST_TYPE_SEQUENCE, BstSequenceClass))
17 #define BST_IS_SEQUENCE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BST_TYPE_SEQUENCE))
18 #define BST_IS_SEQUENCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BST_TYPE_SEQUENCE))
19 #define BST_SEQUENCE_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), BST_TYPE_SEQUENCE, BstSequenceClass))
20 
21 
22 /* --- structures --- */
23 typedef struct _BstSequence BstSequence;
24 typedef struct _BstSequenceClass BstSequenceClass;
26 {
27  GtkHBox parent_object;
28 
29  guint entered : 1;
30  GtkWidget *darea;
31  gint n_rows;
32  BseNoteSequence *sdata;
33 };
35 {
36  GtkHBoxClass parent_class;
37 
38  void (*seq_changed) (BstSequence *sequence);
39 };
40 
41 
42 /* --- prototypes --- */
43 GType bst_sequence_get_type (void);
44 void bst_sequence_set_seq (BstSequence *seq,
45  BseNoteSequence *sdata);
46 
47 
48 #ifdef __cplusplus
49 }
50 #endif /* __cplusplus */
51 
52 #endif /* __BST_SEQUENCE_H__ */
53 
Definition: bstsequence.hh:25
Definition: bstsequence.hh:34