BEAST - Free Software Audio Synthesizer and Tracker  0.9.2
bsteffectview.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_EFFECT_VIEW_H__
3 #define __BST_EFFECT_VIEW_H__
4 
5 #include "bstitemview.hh"
6 
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif /* __cplusplus */
11 
12 
13 /* --- Gtk+ type macros --- */
14 #define BST_TYPE_EFFECT_VIEW (bst_effect_view_get_type ())
15 #define BST_EFFECT_VIEW(object) (GTK_CHECK_CAST ((object), BST_TYPE_EFFECT_VIEW, BstEffectView))
16 #define BST_EFFECT_VIEW_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), BST_TYPE_EFFECT_VIEW, BstEffectViewClass))
17 #define BST_IS_EFFECT_VIEW(object) (GTK_CHECK_TYPE ((object), BST_TYPE_EFFECT_VIEW))
18 #define BST_IS_EFFECT_VIEW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), BST_TYPE_EFFECT_VIEW))
19 #define BST_EFFECT_VIEW_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), BST_TYPE_EFFECT_VIEW, BstEffectViewClass))
20 
21 
22 /* --- structures & typedefs --- */
23 typedef struct _BstEffectView BstEffectView;
24 typedef struct _BstEffectViewClass BstEffectViewClass;
26 {
27  GtkAlignment parent_object;
28 
29  GtkWidget *paned;
30  GtkWidget *clist_aeffects; /* available effects */
31  GtkWidget *clist_peffects; /* present effects */
32  GtkWidget *param_view;
33  GtkWidget *add_button;
34  GtkWidget *remove_button;
35 
36  BsePattern *pattern;
37  guint channel;
38  guint row;
39 };
41 {
42  GtkAlignmentClass parent_class;
43 
44  guint default_param_view_height;
45 };
46 
47 
48 /* --- prototypes --- */
49 GtkType bst_effect_view_get_type (void);
50 GtkWidget* bst_effect_view_new (BseSong *song);
51 void bst_effect_view_set_note (BstEffectView *effect_view,
52  BsePattern *pattern,
53  guint channel,
54  guint row);
55 
56 
57 
58 #ifdef __cplusplus
59 }
60 #endif /* __cplusplus */
61 
62 #endif /* __BST_EFFECT_VIEW_H__ */
Definition: bsteffectview.hh:25
Definition: bsesong.hh:25
Definition: bsteffectview.hh:40