]> git.donarmstrong.com Git - lilypond.git/blob - lily/general-script-def.cc
release: 1.1.28
[lilypond.git] / lily / general-script-def.cc
1 /*
2   general-script-def.cc -- implement General_script_def
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #include "molecule.hh"
10 #include "general-script-def.hh"
11 #include "debug.hh"
12
13
14 Direction
15 General_script_def::staff_dir() const
16 {
17   return DOWN;
18 }
19
20 Direction
21 General_script_def::rel_stem_dir() const
22 {
23   return CENTER;
24 }
25 int
26 General_script_def::priority_i() const
27 {
28   return 1000;
29 }
30
31 bool
32 General_script_def::inside_b() const
33 {
34   return false;
35 }
36
37 bool
38 General_script_def::equal_b (General_script_def const&g) const
39 {
40   return do_equal_b (&g);
41 }
42
43 bool
44 General_script_def::do_equal_b (General_script_def const*) const
45 {
46   return true;
47 }
48
49
50 void
51 General_script_def::print() const
52 {
53   DOUT << classname(this) << "{";
54   do_print();
55   DOUT << "}";
56 }
57
58 void
59 General_script_def::do_print() const
60 {
61 }
62
63 Molecule
64 General_script_def::get_molecule (Paper_def*, Direction) const
65 {
66   Molecule s;
67   return Molecule (s);
68 }
69
70
71
72