]> git.donarmstrong.com Git - lilypond.git/blob - lily/general-script-def.cc
partial: 1.0.1.jcn
[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@stack.nl>
7 */
8
9
10 #include "general-script-def.hh"
11 #include "debug.hh"
12 #include "atom.hh"
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   if (name() != g.name ())
41     return false;
42
43   return do_equal_b (&g);
44 }
45
46 bool
47 General_script_def::do_equal_b (General_script_def const*) const
48 {
49   return true;
50 }
51
52
53 void
54 General_script_def::print() const
55 {
56   DOUT << name() << "{";
57   do_print();
58   DOUT << "}";
59 }
60
61 void
62 General_script_def::do_print() const
63 {
64 }
65
66 Atom
67 General_script_def::get_atom (Paper_def*, Direction) const
68 {
69   Atom s;
70   return Atom (s);
71 }
72
73 IMPLEMENT_IS_TYPE_B(General_script_def);
74
75
76 Interval
77 General_script_def::width (Paper_def*) const
78 {
79   Interval t;
80   return t;
81 }