]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/general-script-def.hh
74b2075ae71434b37a544df692f4b38b1eddc645
[lilypond.git] / lily / include / general-script-def.hh
1 /*
2   general-script-def.hh -- declare General_script_def
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef GENERAL_SCRIPT_DEF_HH
11 #define GENERAL_SCRIPT_DEF_HH
12
13
14
15 #include "lily-proto.hh"
16 #include "input.hh"
17 #include "virtual-methods.hh"
18 #include "direction.hh"
19
20 /**
21   Definition of anything that is put aside staff/notes.
22  */
23 class General_script_def : public Input {
24 public:
25   VIRTUAL_COPY_CONS(General_script_def);
26   
27   virtual Direction staff_dir() const;
28   void print() const;
29   virtual Direction rel_stem_dir() const;
30   virtual int priority_i() const;
31   virtual bool inside_b() const;
32   virtual Molecule get_molecule (Paper_def* p, Direction dir_) const;
33   bool equal_b (General_script_def const&) const;
34   virtual ~General_script_def() {}
35 protected:
36   virtual bool do_equal_b (General_script_def const *) const;
37   virtual void do_print() const;
38 };
39
40 #endif // GENERAL_SCRIPT_DEF_HH