]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/grob-info.hh
fcf2b44a752018784cd675533728d9bddf090f05
[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--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #ifndef STAFFELEMINFO_HH
10 #define STAFFELEMINFO_HH
11
12 #include "lily-guile.hh"
13 #include "lily-proto.hh"
14 #include "parray.hh"
15
16 /*
17   Data container for broadcasts.
18 */
19 class Grob_info
20 {
21   Translator *origin_trans_;
22   Grob *grob_;
23
24   friend class Engraver;
25 public:
26   Grob *grob () const { return grob_; }
27   Translator *origin_translator () const { return origin_trans_; }
28
29   Context *context () const;
30   Music *music_cause ();
31   Link_array<Context> origin_contexts (Translator *) const;
32   Grob_info (Translator *, Grob *);
33   Grob_info ();
34
35   Item *item () const;
36   Spanner *spanner () const;
37 };
38
39 #endif // STAFFELEMINFO_HH