Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bstsnetrouter.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_SNET_ROUTER_H__
3 #define __BST_SNET_ROUTER_H__
4 
5 #include "bstcanvassource.hh"
6 
7 
8 /* --- Gtk+ type macros --- */
9 #define BST_TYPE_SNET_ROUTER (bst_snet_router_get_type ())
10 #define BST_SNET_ROUTER(object) (GTK_CHECK_CAST ((object), BST_TYPE_SNET_ROUTER, BstSNetRouter))
11 #define BST_SNET_ROUTER_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), BST_TYPE_SNET_ROUTER, BstSNetRouterClass))
12 #define BST_IS_SNET_ROUTER(object) (GTK_CHECK_TYPE ((object), BST_TYPE_SNET_ROUTER))
13 #define BST_IS_SNET_ROUTER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), BST_TYPE_SNET_ROUTER))
14 #define BST_SNET_ROUTER_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), BST_TYPE_SNET_ROUTER, BstSNetRouterClass))
15 
16 
17 /* --- structures & typedefs --- */
18 typedef struct _BstSNetRouter BstSNetRouter;
19 typedef struct _BstSNetRouterClass BstSNetRouterClass;
21 {
22  GnomeCanvas parent_object;
23 
24  GtkMenu *canvas_popup;
25  GtkWidget *palette;
26  GtkWidget *palette_text;
27  GtkAdjustment *adjustment;
28 
29  Bse::SNetH snet;
30 
31  GxkActionGroup *canvas_tool;
32  GxkActionGroup *channel_toggle;
33 
34  gdouble world_x, world_y;
35  guint reshow_palette : 1;
36  guint drag_is_input : 1;
37  guint drag_channel;
38  BstCanvasSource *drag_csource;
39  GnomeCanvasItem *tmp_line;
40  SfiRing *canvas_links;
41 };
43 {
44  GnomeCanvasClass parent_class;
45 
46  GtkItemFactory *popup_factory;
47 };
48 
49 
50 /* --- prototypes --- */
51 GType bst_snet_router_get_type (void);
52 GtkWidget* bst_snet_router_new (Bse::SNetH snet);
53 void bst_snet_router_set_snet (BstSNetRouter *router, Bse::SNetH snet);
54 void bst_snet_router_update (BstSNetRouter *snet_router);
55 void bst_snet_router_adjust_region (BstSNetRouter *snet_router);
56 BstCanvasSource* bst_snet_router_csource_from_source (BstSNetRouter *snet_router, SfiProxy source);
57 BstSNetRouter* bst_snet_router_build_page (Bse::SNetH snet);
58 
59 
60 #endif /* __BST_SNET_ROUTER_H__ */
Definition: bstsnetrouter.hh:42
Definition: sfiring.hh:21
Definition: bstsnetrouter.hh:20
Definition: gxkaction.hh:141