]> git.donarmstrong.com Git - lilypond.git/blob - lily/directional-spanner.cc
release: 1.3.4
[lilypond.git] / lily / directional-spanner.cc
1 #include "directional-spanner.hh"
2
3 Direction
4 Directional_spanner::get_default_dir() const
5 {
6   return DOWN;
7 }
8
9 void
10 Directional_spanner::do_pre_processing()
11 {
12   if (!get_direction ())
13     set_direction (get_default_dir());
14 }
15
16
17 Offset
18 Directional_spanner::center () const
19 {
20   Real w= extent (X_AXIS).length ();
21   Offset o (w/2, 0);  
22   return o;
23 }