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