]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/script-def.hh
patch::: 1.1.37.mb2: Re: LilyPond 1.1.37
[lilypond.git] / lily / include / script-def.hh
1 /*
2   script-def.hh -- part of GNU LilyPond
3
4   (c) 1996--1999 Han-Wen Nienhuys
5 */
6
7 #ifndef SCRIPTDEF_HH
8 #define SCRIPTDEF_HH
9 #include "string.hh"
10 #include "general-script-def.hh"
11
12 #error 
13 /** The characteristics of a certain kind of accent. It is not the
14   accent itself.  */
15 class Script_def : public General_script_def {
16   /// invert if below staff?
17   bool invertsym_b_;
18   String symidx_str_;
19     
20
21   /// on the other side of the stem?
22   Direction rel_stem_dir_;
23
24   /// below or above staff?
25   Direction staff_dir_;
26
27   /// how close to the note do we want to be?
28   int priority_i_;
29     
30   /// follow the ball inside staff?
31   bool inside_staff_b_;
32
33 public:
34   virtual Direction staff_dir() const;
35   virtual Direction rel_stem_dir() const;
36   virtual int priority_i() const;
37   virtual bool inside_b() const;
38   virtual Molecule get_molecule (Paper_def* p, Direction dir_) const;
39   
40
41   virtual bool do_equal_b (General_script_def const *) const;
42   virtual void do_print() const;
43   Script_def();
44   void set_from_input (String, bool, int, int ,bool,int);
45 protected:
46   VIRTUAL_COPY_CONS(General_script_def);
47
48 };
49
50
51
52
53
54 #endif // SCRIPTDEF_HH
55