2 bar.cc -- implement Bar
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #include "dimension-cache.hh"
12 #include "molecule.hh"
13 #include "paper-def.hh"
20 set_elt_property ("breakable", SCM_BOOL_T);
25 Bar::get_bar_size () const
33 Bar::do_brew_molecule () const
35 String s = ly_scm2string (get_elt_property ("glyph"));
36 return lookup_l ()->bar (s, get_bar_size (), paper_l ());
42 Bar::do_pre_processing ()
44 SCM g = get_elt_property ("glyph");
45 Direction bsd = break_status_dir ();
50 SCM breakdir = gh_int2scm (bsd);
51 g = scm_eval (gh_list (ly_symbol2scm ("break-barline"),
64 set_elt_property ("transparent", SCM_BOOL_T);
68 set_elt_property ("glyph", g);