]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/text-spanner.hh
release: 0.0.68pre
[lilypond.git] / lily / include / text-spanner.hh
1 /*
2   textspanner.hh -- part of GNU LilyPond
3
4   (c) 1996,97 Han-Wen Nienhuys
5 */
6
7 #ifndef TEXTSPANNER_HH
8 #define TEXTSPANNER_HH
9
10 #include "string.hh"
11 #include "directional-spanner.hh"
12 #include "text-def.hh"
13
14 /** a spanner which puts texts on top of other spanners.  Use for
15   triplets, eentweetjes, ottava, etc.  */
16 class Text_spanner : public Spanner {
17 public:
18     Directional_spanner * support;
19     General_script_def * spec_p_;
20     Offset text_off_;
21     NAME_MEMBERS();
22
23     void set_support(Directional_spanner*);
24     Text_spanner();
25 protected:
26     SCORE_ELEM_CLONE(Text_spanner)
27     ~Text_spanner();
28     virtual void do_substitute_dependency(Score_elem*,Score_elem*);
29     virtual void do_pre_processing();
30     virtual void do_post_processing();
31     virtual Interval height() const ;
32     virtual Molecule* brew_molecule_p()const;
33     virtual void do_print() const;
34 };
35 #endif // TEXTSPANNER_HH
36