]> git.donarmstrong.com Git - lilypond.git/blob - flower/direction.cc
aeddc311a27d733bcbf7321fcd4dce837018d932
[lilypond.git] / flower / direction.cc
1 /*   
2   direction.cc --  implement Direction
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1998--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #include "direction.hh"
11
12 String
13 direction_str (Direction d, Axis a)
14 {
15   String s("center");
16   if (a == Y_AXIS)
17     {
18        s =( d == UP ? "up" : "down");
19     }
20   else if (a == X_AXIS)
21     {
22       s = (d == LEFT ? "left" : "right" );
23     }
24   return s;
25 }