BEAST/BSE - Better Audio System and Sound Engine  0.8.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
bstsequence.hh
Go to the documentation of this file.
00001  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
00002 #ifndef __BST_SEQUENCE_H__
00003 #define __BST_SEQUENCE_H__
00004 
00005 #include <gtk/gtk.h>
00006 #include "bstbseutils.hh"
00007 
00008 #ifdef __cplusplus
00009 extern "C" {
00010 #endif /* __cplusplus */
00011 
00012 
00013 /* --- type macros --- */
00014 #define BST_TYPE_SEQUENCE              (bst_sequence_get_type ())
00015 #define BST_SEQUENCE(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), BST_TYPE_SEQUENCE, BstSequence))
00016 #define BST_SEQUENCE_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), BST_TYPE_SEQUENCE, BstSequenceClass))
00017 #define BST_IS_SEQUENCE(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), BST_TYPE_SEQUENCE))
00018 #define BST_IS_SEQUENCE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), BST_TYPE_SEQUENCE))
00019 #define BST_SEQUENCE_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), BST_TYPE_SEQUENCE, BstSequenceClass))
00020 
00021 
00022 /* --- structures --- */
00023 typedef struct _BstSequence      BstSequence;
00024 typedef struct _BstSequenceClass BstSequenceClass;
00025 struct _BstSequence
00026 {
00027   GtkHBox          parent_object;
00028 
00029   guint            entered : 1;
00030   GtkWidget       *darea;
00031   gint             n_rows;
00032   BseNoteSequence *sdata;
00033 };
00034 struct _BstSequenceClass
00035 {
00036   GtkHBoxClass parent_class;
00037 
00038   void  (*seq_changed)  (BstSequence    *sequence);
00039 };
00040 
00041 
00042 /* --- prototypes --- */
00043 GType           bst_sequence_get_type   (void);
00044 void            bst_sequence_set_seq    (BstSequence     *seq,
00045                                          BseNoteSequence *sdata);
00046 
00047 
00048 #ifdef __cplusplus
00049 }
00050 #endif /* __cplusplus */
00051 
00052 #endif /* __BST_SEQUENCE_H__ */
00053 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines