2 spanner.hh -- part of LilyPond
4 (c) 1996,97 Han-Wen Nienhuys
11 #include "staff-elem.hh"
14 /** a symbol which is attached between two columns. A spanner is a symbol which spans across several columns, so its
15 final appearance can only be calculated after the breaking problem
26 Spanner should know about the items which it should consider:
27 e.g. slurs should be steep enough to "enclose" all those items. This
28 is absolutely necessary for beams, since they have to adjust the
29 length of stems of notes they encompass.
32 struct Spanner
:Staff_elem
{
39 virtual Interval
width()const;
42 Spanner
*broken_at(PCol
*c1
, PCol
*c2
) const;
43 virtual Spanner
* spanner() { return this; }
47 clone a piece of this spanner.
49 c1 >= start, c2 <= stop
51 virtual Spanner
*do_break_at( PCol
*c1
, PCol
*c2
) const=0;
52 NAME_MEMBERS(Spanner
);