/*
crescendo.hh -- declare Crescendo
- source file of the LilyPond music typesetter
+ source file of the GNU LilyPond music typesetter
(c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
*/
#ifndef CRESCENDO_HH
#define CRESCENDO_HH
+#include "staff-side.hh"
#include "spanner.hh"
-
-class Crescendo : public Spanner {
- int staff_size_i_;
+/**
+ The hairpin symbol. (cresc)
+ */
+class Crescendo : public Spanner , public Staff_side {
public:
- int grow_dir_i_;
- int dir_i_;
- Crescendo(int staff_size_i);
+ int grow_dir_;
+
+ /// if there is a dynamic at the end, make the sign smaller.
+ Drul_array<bool> dyn_b_drul_;
+
+ Crescendo();
+protected:
+ SCORE_ELEM_CLONE(Crescendo);
+ virtual Molecule*brew_molecule_p() const;
+ virtual Interval symbol_height() const;
+ DECLARE_MY_RUNTIME_TYPEINFO;
+
private:
- Spanner* do_break_at( PCol*, PCol*) const;
- Molecule*brew_molecule_p()const;
- NAME_MEMBERS(Crescendo);
+ Atom get_symbol() const;
};
#endif // CRESCENDO_HH