]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/staff-sym.hh
release: 1.0.1
[lilypond.git] / lily / include / staff-sym.hh
1 /*
2   staffsym.hh -- declare Staff_symbol
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
10 #ifndef STAFFSYM_HH
11 #define STAFFSYM_HH
12 #include "spanner.hh"
13
14 /**
15   This spanner draws the lines of a pstaff.
16   The bottom line is position 0.
17   */
18 class Staff_symbol : public Spanner
19 {
20 public:
21   /// this many lines.
22   int no_lines_i_;
23   Real interline_f_;
24
25   DECLARE_MY_RUNTIME_TYPEINFO;
26   Staff_symbol ();
27   Real inter_note_f() const;
28   int steps_i() const;
29 protected:
30   SCORE_ELEMENT_CLONE(Staff_symbol);
31   virtual Interval do_height () const;
32   virtual Molecule* brew_molecule_p() const;
33   virtual void do_print() const;
34 };
35 #endif // STAFFSYM_HH