lilypond-1.5.14
[lilypond.git] / flower / direction.cc
blob797174755bc9e8e86d04617faa99b1b3e7d5c2cf
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"
11 #include "string.hh"
13 String
14 direction_str (Direction d, Axis a)
16 String s ("center");
17 if (a == Y_AXIS)
19 s = ( d == UP ? "up" : "down");
21 else if (a == X_AXIS)
23 s = (d == LEFT ? "left" : "right" );
25 return s;