lilypond-1.1.67
[lilypond.git] / lily / direction.cc
blobf4b46b1f5eae3b83b3f45b65664526a0fd32e299
1 /*
2 direction.cc -- implement Direction
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--1999 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;