2 #ifndef __BST_PIANO_ROLL_H__
3 #define __BST_PIANO_ROLL_H__
10 #define BST_TYPE_PIANO_ROLL (bst_piano_roll_get_type ())
11 #define BST_PIANO_ROLL(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BST_TYPE_PIANO_ROLL, BstPianoRoll))
12 #define BST_PIANO_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BST_TYPE_PIANO_ROLL, BstPianoRollClass))
13 #define BST_IS_PIANO_ROLL(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BST_TYPE_PIANO_ROLL))
14 #define BST_IS_PIANO_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BST_TYPE_PIANO_ROLL))
15 #define BST_PIANO_ROLL_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), BST_TYPE_PIANO_ROLL, BstPianoRollClass))
23 BST_PIANO_ROLL_MARKER_NONE,
24 BST_PIANO_ROLL_MARKER_POINTER,
25 BST_PIANO_ROLL_MARKER_SELECT
26 } BstPianoRollMarkerType;
31 GXK_SCROLL_CANVAS_DRAG_FIELDS;
34 guint start_valid : 1;
37 guint current_valid : 1;
43 GxkScrollCanvas parent_instance;
47 BsePartLinkSeq*plinks;
61 guint start_valid : 1;
63 guint draw_qn_grid : 1;
64 guint draw_qqn_grid : 1;
67 guint release_closes_toplevel : 1;
71 int selection_duration;
72 int selection_min_note;
73 int selection_max_note;
79 void (*canvas_drag) (BstPianoRoll *
self,
81 void (*canvas_clicked) (BstPianoRoll *proll,
86 void (*piano_drag) (BstPianoRoll *
self,
88 void (*piano_clicked) (BstPianoRoll *proll,
96 GType bst_piano_roll_get_type (
void);
97 void bst_piano_roll_set_proxy (BstPianoRoll *
self,
99 gfloat bst_piano_roll_set_hzoom (BstPianoRoll *
self,
101 gfloat bst_piano_roll_set_vzoom (BstPianoRoll *
self,
103 void bst_piano_roll_set_view_selection (BstPianoRoll *
self,
108 gint bst_piano_roll_get_vpanel_width (BstPianoRoll *
self);
109 void bst_piano_roll_get_paste_pos (BstPianoRoll *
self,
112 void bst_piano_roll_set_marker (BstPianoRoll *
self,
115 BstPianoRollMarkerType mtype);
Definition: bstpianoroll.hh:41
Definition: bstpianoroll.hh:30
Definition: bstpianoroll.hh:75