]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/grob-info.hh
release: 1.5.29
[lilypond.git] / lily / include / grob-info.hh
1 /*
2   grob-info.hh -- declare Grob_info
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef STAFFELEMINFO_HH
11 #define STAFFELEMINFO_HH
12
13 #include "lily-guile.hh"
14 #include "lily-proto.hh"
15 #include "parray.hh"
16
17 /**
18   Data container for broadcasts.
19
20   TODO: Store this in element info! 
21   */
22 struct Grob_info {
23   Translator * origin_trans_l_;
24   friend class Engraver;
25
26   Grob * grob_l_;
27
28   /*
29     Notice that CAUSE is not GC protected ; this might be a cause for
30     GC errors if you don't use music or grobs as a cause.
31   */
32   SCM cause_;
33 public:
34   Music * music_cause ();
35   Link_array<Translator> origin_trans_l_arr (Translator*) const;
36   Grob_info (Grob*, SCM);
37   Grob_info ();
38 };
39
40
41 #endif // STAFFELEMINFO_HH