]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/staff-sym.hh
release: 0.0.78
[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 Han-Wen Nienhuys <hanwen@stack.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     /// this many lines.
21     int no_lines_i_;
22 public:
23
24
25     void set_extent(PCol* p1, PCol* p2);
26     DECLARE_MY_RUNTIME_TYPEINFO;
27     Staff_symbol(int lines);
28     Real inter_note_f()const;
29     int steps_i()const;
30 protected:
31     SCORE_ELEM_CLONE(Staff_symbol);
32     virtual Molecule* brew_molecule_p() const;
33     virtual void do_print()const;
34 };
35 #endif // STAFFSYM_HH