]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/directional-spanner.hh
release: 0.0.39-1
[lilypond.git] / lily / include / directional-spanner.hh
1 /*
2   directional-spanner.hh -- part of LilyPond
3
4   (c) 1996,97 Han-Wen Nienhuys
5 */
6
7 #ifndef DIRECTIONALSPANNER_HH
8 #define DIRECTIONALSPANNER_HH
9
10 #include "spanner.hh"
11
12 /// a spanner which can be pointing "up" or "down"
13 struct Directional_spanner : Spanner{
14     
15     /// -1 below heads, +1 above heads.
16     int dir_i_;
17
18     /// offset of "center" relative to left-column/0-pos of staff
19     virtual Offset center() const=0;
20     virtual void set_default_dir()=0;
21     Directional_spanner();
22     
23 };
24
25 #endif // DIRECTIONALSPANNER_HH
26