]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/grob-info.hh
Run `make grand-replace'.
[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--2008 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   Direction start_end_;
24   
25   friend class Engraver;
26 public:
27   Direction start_end () const { return start_end_; }
28   Grob *grob () const { return grob_; }
29   Translator *origin_translator () const { return origin_trans_; }
30
31   Context *context () const;
32   Stream_event *event_cause () const;
33   Stream_event *ultimate_event_cause () const;
34   vector<Context*> origin_contexts (Translator *) const;
35   Grob_info (Translator *, Grob *);
36   Grob_info ();
37
38   Item *item () const;
39   Spanner *spanner () const;
40 };
41
42 #endif // STAFFELEMINFO_HH