Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bstscrollgraph.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_SCROLLGRAPH_H__
3 #define __BST_SCROLLGRAPH_H__
4 
5 #include "bstutils.hh"
6 
7 /* --- type macros --- */
8 #define BST_TYPE_SCROLLGRAPH (bst_scrollgraph_get_type ())
9 #define BST_SCROLLGRAPH(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BST_TYPE_SCROLLGRAPH, BstScrollgraph))
10 #define BST_SCROLLGRAPH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BST_TYPE_SCROLLGRAPH, BstScrollgraphClass))
11 #define BST_IS_SCROLLGRAPH(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BST_TYPE_SCROLLGRAPH))
12 #define BST_IS_SCROLLGRAPH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BST_TYPE_SCROLLGRAPH))
13 #define BST_SCROLLGRAPH_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((obj), BST_TYPE_SCROLLGRAPH, BstScrollgraphClass))
14 
15 /* --- structures & typedefs --- */
16 typedef struct _BstScrollgraph BstScrollgraph;
17 typedef struct _BstScrollgraphClass BstScrollgraphClass;
19 {
20  GtkBin parent_instance;
21  Bst::Direction direction;
22  uint window_size;
23  guint flip : 1;
24  guint delete_toplevel : 1; /* upon proxy::release */
25  guint mix_freq;
26  gdouble boost;
27  guint n_points;
28  guint n_bars;
29  guint bar_offset; /* start of ring-buffer */
30  gfloat *values; /* [n_points * n_bars] */
31  GdkPixbuf *pixbuf; /* n_points wide or high */
32  GdkWindow *canvas;
33  SfiProxy source;
34  guint ochannel;
35 };
37 {
38  GtkBinClass parent_class;
39  void (*resize_values) (BstScrollgraph *self, Bst::Direction direction);
40 };
41 
42 /* --- public methods --- */
43 GType bst_scrollgraph_get_type (void);
44 void bst_scrollgraph_clear (BstScrollgraph *self);
45 void bst_scrollgraph_set_source (BstScrollgraph *self,
46  SfiProxy source,
47  guint ochannel);
48 GtkWidget* bst_scrollgraph_build_dialog (GtkWidget *alive_object,
49  SfiProxy source,
50  guint ochannel);
51 
52 #endif /* __BST_SCROLLGRAPH_H__ */
Definition: bstscrollgraph.hh:18
Definition: bstscrollgraph.hh:36