2 grace-align-item.cc -- implement Grace_align_item
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "grace-align-item.hh"
12 #include "paper-column.hh"
13 #include "paper-def.hh"
15 Grace_align_item::Grace_align_item ()
17 set_elt_property ("stacking-dir", gh_int2scm (RIGHT));
22 Grace_align_item::before_line_breaking ()
24 Real nhw = // lookup_l ()->notehead (2, "").dim_[X_AXIS].length();
25 paper_l ()->get_var ("quartwidth");
27 set_elt_property ("threshold",
28 gh_cons (gh_double2scm (nhw* 1.5),
29 gh_double2scm (infinity_f)));
30 column_l ()->set_elt_property ("contains-grace", SCM_BOOL_T);
33 Axis_align_item::before_line_breaking ();
34 // translate_axis (-0.5* nhw, X_AXIS); // ugh.
39 Grace_align_item::do_add_processing ()