lilypond-1.3.69
[lilypond.git] / lily / general-script-def.cc
blobc69988242fd87f9bb4091b54fb205d7bf407802e
1 /*
2 general-script-def.cc -- implement General_script_def
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
9 #include "molecule.hh"
10 #include "general-script-def.hh"
11 #include "debug.hh"
14 Direction
15 General_script_def::staff_dir() const
17 return DOWN;
20 Direction
21 General_script_def::rel_stem_dir() const
23 return CENTER;
25 int
26 General_script_def::priority_i() const
28 return 1000;
31 bool
32 General_script_def::inside_b() const
34 return false;
37 bool
38 General_script_def::equal_b (General_script_def const&g) const
40 return do_equal_b (&g);
43 bool
44 General_script_def::do_equal_b (General_script_def const*) const
46 return true;
50 void
51 General_script_def::print() const
53 DOUT << classname(this) << "{";
54 do_print();
55 DOUT << "}";
58 void
59 General_script_def::do_print() const
63 Molecule
64 General_script_def::get_molecule (Paper_def*, Direction) const
66 Molecule s;
67 return Molecule (s);