]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/hyphen-spanner.hh
release: 1.3.94
[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 properties:
22
23   thickness -- thickness of line (in stafflinethickness)
24
25   height -- vertical offset  (in staffspace)
26
27   minimum-length -- try to make the hyphens at least this long. Also works
28     as a scaling parameter for the length
29
30   word-space -- elongate left by this much (FIXME: cumbersome semantics)
31   
32   */
33 struct Hyphen_spanner 
34 {
35 public:
36   Spanner* elt_l_;
37   Hyphen_spanner  (Spanner*);
38   void set_textitem (Direction, Score_element*);
39   DECLARE_SCHEME_CALLBACK(brew_molecule, (SCM ));
40 };
41
42 #endif // HYPHEN_SPANNER_HH
43