]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/directional-spanner.hh
release: 0.1.11
[lilypond.git] / lily / include / directional-spanner.hh
1 /*
2   directional-spanner.hh -- part of GNU 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 class Directional_spanner : public Spanner{
14 public:
15     
16     /// -1 below heads, +1 above heads.
17     Direction dir_;
18     Directional_spanner();
19     
20     /// offset of "center" relative to left-column/0-pos of staff
21     virtual Offset center() const=0;
22     virtual void set_default_dir();
23 protected:
24     virtual void do_pre_processing();
25 };
26
27 #endif // DIRECTIONALSPANNER_HH
28