source file of the GNU LilyPond music typesetter
- (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+ (c) 1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#ifndef BOW_HH
#define BOW_HH
+
#include "directional-spanner.hh"
+#include "curve.hh"
/**
Base class for anything that looks like a slur.
Anybody with a better name?
*/
-class Bow : public Directional_spanner {
-protected:
- int left_pos_i_;
- int right_pos_i_;
- Real left_dx_f_;
- Real right_dx_f_;
-
- Molecule*brew_molecule_p()const;
+class Bow : public Directional_spanner
+{
public:
- Bow();
- DECLARE_MY_RUNTIME_TYPEINFO;
- Offset center() const;
+ Bow ();
+ Offset center () const;
+
+ DECLARE_MY_RUNTIME_TYPEINFO;
+
+ int dash_i_;
+
+protected:
+ virtual Molecule* brew_molecule_p () const;
+ virtual Interval do_width () const;
+ Array<Offset> get_controls () const;
+ virtual Array<Offset> get_encompass_offset_arr () const;
+ virtual Interval do_height () const;
+
+ Drul_array<Real> dy_f_drul_;
+ Drul_array<Real> dx_f_drul_;
};
+
#endif // BOW_HH