]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.57
authorfred <fred>
Fri, 17 Apr 1998 18:27:49 +0000 (18:27 +0000)
committerfred <fred>
Fri, 17 Apr 1998 18:27:49 +0000 (18:27 +0000)
lily/direction.cc [new file with mode: 0644]

diff --git a/lily/direction.cc b/lily/direction.cc
new file mode 100644 (file)
index 0000000..a0e0e14
--- /dev/null
@@ -0,0 +1,25 @@
+
+/*   
+  direction.cc --  implement 
+  
+  source file of the GNU LilyPond music typesetter
+  
+  (c) 1998 Han-Wen Nienhuys <hanwen@cs.ruu.nl>
+  
+ */
+
+#include "direction.hh"
+
+String direction_str (Direction d, Axis a)
+{
+  if (!d)
+    return "center";
+  if (a == Y_AXIS)
+    {
+       return d == UP ? "up" : "down";
+    }
+  else if (a == X_AXIS)
+    {
+      return d == LEFT ? "left" : "right" ;
+    }
+}