lilypond-1.1.67
[lilypond.git] / lily / directional-spanner.cc
blobe6e4f55947f5f0b94392f6177c2c5107a46a87ef
1 #include "directional-spanner.hh"
3 Direction
4 Directional_spanner::get_default_dir() const
6 return DOWN;
9 void
10 Directional_spanner::do_pre_processing()
12 if (!dir_)
13 dir_ = get_default_dir();
16 Directional_spanner::Directional_spanner()
18 dir_ = CENTER;
21 Offset
22 Directional_spanner::center () const
24 Real w= extent (X_AXIS).length ();
25 Offset o (w/2, 0);
26 return o;