lilypond-0.1.27
[lilypond.git] / hdr / directionalspanner.hh
blob1578edf5740e121dacf974604b9083758217b509
1 /*
2 directionalspanner.hh -- part of LilyPond
4 (c) 1996,97 Han-Wen Nienhuys
5 */
7 #ifndef DIRECTIONALSPANNER_HH
8 #define DIRECTIONALSPANNER_HH
10 #include "spanner.hh"
12 /// a spanner which can be pointing "up" or "down"
13 struct Directional_spanner : Spanner{
15 /// -1 below heads, +1 above heads.
16 int dir_i_;
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();
25 #endif // DIRECTIONALSPANNER_HH