2 paper-system.cc -- implement Prob functions for paper-system
4 source file of the GNU LilyPond music typesetter
6 (c) 2004--2009 Jan Nieuwenhuizen <janneke@gnu.org>
9 #include "paper-system.hh"
13 make_paper_system (SCM immutable_init
)
15 Prob
*prob
= new Prob (ly_symbol2scm ("paper-system"), immutable_init
);
20 paper_system_set_stencil (Prob
*prob
, Stencil s
)
22 SCM yext
= prob
->get_property ("Y-extent");
24 if (is_number_pair (yext
))
26 Box b
= s
.extent_box ();
27 b
[Y_AXIS
] = ly_scm2interval (yext
);
29 s
= Stencil (b
, s
.expr ());
32 prob
->set_property ("stencil", s
.smobbed_copy ());