]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/directional-spanner.hh
release: 1.3.3
[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   /// -1 below heads, +1 above heads.
18   Direction dir_;
19
20 public:
21   Directional_spanner();
22
23   void set_direction (Direction d ) { dir_ =  d; }
24   Direction get_direction () const { return dir_; }
25   
26   /// offset of "center" relative to left-column/0-pos of staff
27   virtual Offset center() const;
28   virtual Direction get_default_dir() const;
29 protected:
30   virtual void do_pre_processing();
31 };
32
33 #endif // DIRECTIONALSPANNER_HH
34