]> git.donarmstrong.com Git - lilypond.git/blob - lily/directional-spanner.cc
release: 1.3.3
[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 Directional_spanner::Directional_spanner()
17 {
18   set_direction (CENTER);
19 }
20
21 Offset
22 Directional_spanner::center () const
23 {
24   Real w= extent (X_AXIS).length ();
25   Offset o (w/2, 0);  
26   return o;
27 }