diff options
Diffstat (limited to 'spanner.cc')
-rw-r--r-- | spanner.cc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/spanner.cc b/spanner.cc new file mode 100644 index 0000000000..f9eb65367b --- /dev/null +++ b/spanner.cc @@ -0,0 +1,32 @@ + +#include "spanner.hh" +#include "line.hh" + +#include "symbol.hh" +#include "molecule.hh" +#include "pcol.hh" + +String +Spanner::TeXstring() const +{ + assert(right->line); + Real w = left->hpos - right->hpos; + return strets->eval(w).tex; +} + +Spanner * +Spanner::broken_at(const PCol *c1, const PCol *c2) const +{ + Spanner *sp = new Spanner(*this); + sp->left = c1; + sp->right = c2; + return sp; +} + +Spanner::Spanner() +{ + pstaff_=0; + strets=0; + left = right = 0; +} + |