Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
gxkrackitem.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 __GXK_RACK_ITEM_H__
3 #define __GXK_RACK_ITEM_H__
4 
5 #include <gxk/gxkracktable.hh>
6 
7 /* --- type macros --- */
8 #define GXK_TYPE_RACK_ITEM (gxk_rack_item_get_type ())
9 #define GXK_RACK_ITEM(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GXK_TYPE_RACK_ITEM, GxkRackItem))
10 #define GXK_RACK_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXK_TYPE_RACK_ITEM, GxkRackItemClass))
11 #define GXK_IS_RACK_ITEM(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GXK_TYPE_RACK_ITEM))
12 #define GXK_IS_RACK_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXK_TYPE_RACK_ITEM))
13 #define GXK_RACK_ITEM_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), GXK_TYPE_RACK_ITEM, GxkRackItemClass))
14 
15 
16 /* --- structures & typedefs --- */
17 typedef struct _GxkRackItem GxkRackItem;
18 typedef struct _GxkRackItemClass GxkRackItemClass;
20 {
21  GtkFrame parent_instance;
22  /* maintained by GxkRackTable */
23  gint col, row, hspan, vspan;
24  guint empty_frame : 1;
25 };
27 {
28  GtkFrameClass parent_class;
29 
30  void (*button_press) (GxkRackItem *item,
31  GdkEventButton *event);
32 };
33 
34 
35 /* --- prototypes --- */
36 GtkType gxk_rack_item_get_type (void);
37 void gxk_rack_item_gui_changed (GxkRackItem *self);
38 gboolean gxk_rack_item_set_area (GxkRackItem *self,
39  gint col,
40  gint row,
41  gint hspan,
42  gint vspan);
43 
44 #endif /* __GXK_RACK_ITEM_H__ */
Definition: gxkrackitem.hh:26
uint32_t * row(uint y)
Definition: gxkrackitem.hh:19