]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/horizontal-bracket.cc
* flower
[lilypond.git] / lily / horizontal-bracket.cc
index 1abe992ae4b72135a5cac94856501fbdb47d9cff..654a1e0015857a41cf59f4213867518ac2f19252 100644 (file)
@@ -1,11 +1,10 @@
-/*   
+/*
   horizontal-bracket.cc -- implement  Horizontal_bracket
 
   source file of the GNU LilyPond music typesetter
 
-(c) 2002--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-
- */
+  (c) 2002--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+*/
 
 #include "side-position-interface.hh"
 #include "lookup.hh"
 struct Horizontal_bracket
 {
   DECLARE_SCHEME_CALLBACK (print, (SCM));
-  static bool has_interface (Grob*);
+  static bool has_interface (Grob *);
 };
 
-
 /*
   TODO:
 
@@ -34,8 +32,8 @@ MAKE_SCHEME_CALLBACK (Horizontal_bracket, print, 1);
 SCM
 Horizontal_bracket::print (SCM smob)
 {
-  Grob * me = unsmob_grob (smob);
-  Spanner *sp = dynamic_cast<Spanner*> (me);
+  Grob *me = unsmob_grob (smob);
+  Spanner *sp = dynamic_cast<Spanner *> (me);
   Link_array<Grob> gs = extract_grob_array (me, ly_symbol2scm ("columns"));
 
   if (!gs.size ())
@@ -43,7 +41,7 @@ Horizontal_bracket::print (SCM smob)
       me->suicide ();
       return SCM_EOL;
     }
-  Grob * cx = common_refpoint_of_array (gs, me, X_AXIS);
+  Grob *cx = common_refpoint_of_array (gs, me, X_AXIS);
   cx = cx->common_refpoint (sp->get_bound (LEFT), X_AXIS);
   cx = cx->common_refpoint (sp->get_bound (RIGHT), X_AXIS);
 
@@ -53,7 +51,6 @@ Horizontal_bracket::print (SCM smob)
   Drul_array<Real> edge_height = robust_scm2interval (me->get_property ("edge-height"),
                                                      Interval (1.0, 1.0));
 
-  
   Drul_array<Real> flare = robust_scm2interval (me->get_property ("bracket-flare"),
                                                Interval (0, 0));
 
@@ -64,13 +61,13 @@ Horizontal_bracket::print (SCM smob)
   Stencil b
     = Tuplet_bracket::make_bracket (me, Y_AXIS, Offset (ext.length (), 0),
                                    edge_height, empty, flare, shorten);
-    
+
   b.translate_axis (ext[LEFT] - sp->get_bound (LEFT)->relative_coordinate (cx, X_AXIS), X_AXIS);
 
-  return b.smobbed_copy ();  
+  return b.smobbed_copy ();
 }
 
 ADD_INTERFACE (Horizontal_bracket, "horizontal-bracket-interface",
-  "A horizontal bracket encompassing notes.",
-  "columns bracket-flare shorten-pair edge-height");
+              "A horizontal bracket encompassing notes.",
+              "columns bracket-flare shorten-pair edge-height");