]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/grob-info.hh
* flower/include/std-string.hh:
[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--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef STAFFELEMINFO_HH
10 #define STAFFELEMINFO_HH
11
12 #include "lily-guile.hh"
13 #include "lily-proto.hh"
14 #include "std-vector.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 () const;
31   Music *ultimate_music_cause () const;
32   vector<Context*> origin_contexts (Translator *) const;
33   Grob_info (Translator *, Grob *);
34   Grob_info ();
35
36   Item *item () const;
37   Spanner *spanner () const;
38 };
39
40 #endif // STAFFELEMINFO_HH