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