]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/hyphen-spanner.hh
release: 1.3.55
[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 "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 Spanner
22 {
23 public:
24   Hyphen_spanner (SCM);
25   void set_textitem (Direction, Item*);
26
27 protected:
28   virtual Molecule do_brew_molecule () const;
29   Interval do_height () const;
30
31   void after_line_breaking ();
32  
33   VIRTUAL_COPY_CONS (Score_element);
34
35   Drul_array<Real> dx_f_drul_;
36 };
37
38 #endif // HYPHEN_SPANNER_HH
39