]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/hyphen-spanner.hh
patch::: 1.3.58.jcn2
[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  static SCM scheme_molecule (SCM);
27   
28
29 protected:
30   Molecule do_brew_molecule () const;
31   Interval do_height () const;
32
33   void after_line_breaking ();
34  
35   VIRTUAL_COPY_CONS (Score_element);
36
37   Drul_array<Real> dx_f_drul_;
38 };
39
40 #endif // HYPHEN_SPANNER_HH
41