2 directional-spanner.hh -- part of GNU LilyPond
4 (c) 1996--1999 Han-Wen Nienhuys
7 #ifndef DIRECTIONALSPANNER_HH
8 #define DIRECTIONALSPANNER_HH
12 /** a spanner which can be pointing "up" or "down".
16 class Directional_spanner : public Spanner{
17 /// -1 below heads, +1 above heads.
21 Directional_spanner();
23 void set_direction (Direction d ) { dir_ = d; }
24 Direction get_direction () const { return dir_; }
26 /// offset of "center" relative to left-column/0-pos of staff
27 virtual Offset center() const;
28 virtual Direction get_default_dir() const;
30 virtual void do_pre_processing();
33 #endif // DIRECTIONALSPANNER_HH