lilypond-1.3.28
[lilypond.git] / lily / grace-align-item.cc
blob0256679458f11b067002c7d8435ccccf66134253
1 /*
2 grace-align-item.cc -- implement Grace_align_item
4 source file of the GNU LilyPond music typesetter
6 (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
8 */
10 #include "grace-align-item.hh"
11 #include "lookup.hh"
12 #include "paper-column.hh"
13 #include "paper-def.hh"
15 Grace_align_item::Grace_align_item ()
17 stacking_dir_ = RIGHT;
18 set_axis (X_AXIS);
21 void
22 Grace_align_item::do_pre_processing ()
24 Real nhw = // lookup_l ()->notehead (2, "").dim_[X_AXIS].length();
25 paper_l ()->get_var ("quartwidth");
27 threshold_interval_[MIN] = nhw* 1.5;
28 column_l ()->set_elt_property ("contains-grace", SCM_BOOL_T);
31 Axis_align_item::do_pre_processing ();
32 translate_axis (-0.5* nhw, X_AXIS); // ugh.
36 void
37 Grace_align_item::do_add_processing ()