lilypond-1.3.28
[lilypond.git] / lily / direction.cc
blobaeddc311a27d733bcbf7321fcd4dce837018d932
1 /*
2 direction.cc -- implement Direction
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
8 */
10 #include "direction.hh"
12 String
13 direction_str (Direction d, Axis a)
15 String s("center");
16 if (a == Y_AXIS)
18 s =( d == UP ? "up" : "down");
20 else if (a == X_AXIS)
22 s = (d == LEFT ? "left" : "right" );
24 return s;