- (c) 2002--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-*/
-
-#include "side-position-interface.hh"
-#include "lookup.hh"
-#include "pointer-group-interface.hh"
-#include "directional-element-interface.hh"
-#include "output-def.hh"
-#include "staff-symbol-referencer.hh"
-#include "tuplet-bracket.hh"
-#include "horizontal-bracket.hh"
-#include "axis-group-interface.hh"
-
-Stencil
-Horizontal_bracket::make_bracket (Grob *me, Grob *refpoint,
- Link_array<Grob> grobs,
- Axis a, Direction dir)
-{
- Axis other = other_axis (a);
- Grob *common = common_refpoint_of_array (grobs, refpoint, a);
- Interval ext = Axis_group_interface::relative_group_extent (grobs, common, a);
-
- 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));
- Drul_array<Real> shorten = robust_scm2interval (me->get_property ("shorten-pair"),
- Interval (0, 0));
-
- // Make sure that it points in the correct direction:
- scale_drul (&edge_height, Real (-dir));
-
- Interval empty;
- Offset start;
- start[a] = ext.length ();
-
- /*
- ugh, Tuplet_bracket should use Horizontal_bracket, not the other way around.
- */
- Stencil b
- = Tuplet_bracket::make_bracket (me, other, start,
- edge_height, empty, flare, shorten);
-
- b.translate_axis (ext[LEFT] - refpoint->relative_coordinate (common, a)
- , a);
+ LilyPond is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.