]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/hyphen-spanner.hh
patch::: 1.1.52.gp2
[lilypond.git] / lily / include / hyphen-spanner.hh
1 /*
2   hyphen-spanner.hh -- part of GNU LilyPond
3
4   (c) 1999 Glen Prideaux <glenprideaux@iname.com>
5 */
6
7 #ifndef HYPHEN_SPANNER_HH
8 #define HYPHEN_SPANNER_HH
9
10 #include "directional-spanner.hh"
11
12 /** 
13   centred hyphen 
14
15   A centred hyphen is a simple line between lyrics used to
16   divide syllables.
17
18   The length of the hyphen line should stretch based on the
19   size of the gap between syllables.
20   */
21 class Hyphen_spanner : public Directional_spanner
22 {
23 public:
24 Hyphen_spanner ();
25   Offset center () const;  
26   void set_textitem (Direction, Item*);
27
28 protected:
29   virtual Molecule* do_brew_molecule_p () const;
30   Interval do_height () const;
31
32   void do_post_processing ();
33  
34   VIRTUAL_COPY_CONS (Score_element);
35
36   Drul_array<Real> dx_f_drul_;
37 };
38
39 #endif // HYPHEN_SPANNER_HH
40