BEAST - Free Software Audio Synthesizer and Tracker  0.9.2
bsteventrollctrl.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_EVENT_ROLL_CONTROLLER_H__
3 #define __BST_EVENT_ROLL_CONTROLLER_H__
4 
5 #include "bsteventroll.hh"
6 
7 G_BEGIN_DECLS
8 
9 typedef struct {
10  /* misc data */
11  guint ref_count;
12  BstEventRoll *eroll;
13  /* drag data */
14  guint obj_id, obj_tick;
15  gfloat obj_value;
16  Bse::PartControlSeq sel_cseq;
17  BstSegment *segment;
18  /* tool data */
19  guint tool_index;
20  /* tool selections */
21  GxkActionGroup *quant_rtools;
22  GxkActionGroup *canvas_rtools;
23  /* action cache */
24  guint64 cached_stamp;
25  guint cached_n_controls;
27 
28 
29 /* --- API --- */
30 BstEventRollController* bst_event_roll_controller_new (BstEventRoll *eroll,
31  GxkActionGroup *quant_rtools,
32  GxkActionGroup *canvas_rtools);
33 BstEventRollController* bst_event_roll_controller_ref (BstEventRollController *self);
34 void bst_event_roll_controller_unref (BstEventRollController *self);
35 guint bst_event_roll_controller_quantize (BstEventRollController *self,
36  guint fine_tick);
37 GxkActionList* bst_event_roll_controller_select_actions (BstEventRollController *self);
38 void bst_event_roll_controller_set_clipboard (const Bse::PartControlSeq &cseq);
39 Bse::PartControlSeq* bst_event_roll_controller_get_clipboard (void);
40 void bst_event_roll_controller_clear (BstEventRollController *self);
41 void bst_event_roll_controller_cut (BstEventRollController *self);
42 gboolean bst_event_roll_controller_copy (BstEventRollController *self);
43 void bst_event_roll_controller_paste (BstEventRollController *self);
44 gboolean bst_event_roll_controller_clipboard_full (BstEventRollController *self);
45 gboolean bst_event_roll_controller_has_selection (BstEventRollController *self,
46  guint64 action_stamp);
47 
48 
49 G_END_DECLS
50 
51 #endif /* __BST_EVENT_ROLL_CONTROLLER_H__ */
Definition: bsteventrollctrl.hh:9
Definition: bstsegment.hh:25
A list of part control events.
Definition: bseapi.idl:378
Definition: gxkaction.hh:143