X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fbar-line.hh;h=ea9833bc342fa1262a2ddb6436c4522c89d6cfa8;hb=2806bb600eeecf6b44d3e4eb11a8d918bfd67992;hp=57b0a4c525252dcc999e3fc2f194b4d894dbf7e6;hpb=e24df7c27635dc996c466295eacf2981bddccaf7;p=lilypond.git diff --git a/lily/include/bar-line.hh b/lily/include/bar-line.hh index 57b0a4c525..ea9833bc34 100644 --- a/lily/include/bar-line.hh +++ b/lily/include/bar-line.hh @@ -1,28 +1,28 @@ /* bar.hh -- part of GNU LilyPond - (c) 1996--2005 Han-Wen Nienhuys + (c) 1996--2007 Han-Wen Nienhuys */ #ifndef BAR_HH #define BAR_HH -#include "lily-guile.hh" #include "lily-proto.hh" +#include "grob-interface.hh" -/** - A vertical bar. - */ class Bar_line { public: - static bool has_interface (Grob*); - - static Stencil compound_barline (Grob*, String, Real height) ; - static Stencil simple_barline (Grob*, Real wid, Real height) ; - DECLARE_SCHEME_CALLBACK (get_staff_bar_size, (SCM )); - DECLARE_SCHEME_CALLBACK (print, (SCM )); - DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM )); + DECLARE_GROB_INTERFACE(); + + static Stencil dashed_bar_line (Grob *me, Real h, Real thick); + static Stencil compound_barline (Grob *, string, Real height, bool rounded); + static Stencil simple_barline (Grob *, Real wid, Real height, bool rounded); + static Interval bar_y_extent (Grob *, Grob *); + DECLARE_SCHEME_CALLBACK (calc_bar_extent, (SCM)); + DECLARE_SCHEME_CALLBACK (calc_bar_size, (SCM)); + DECLARE_SCHEME_CALLBACK (print, (SCM)); + DECLARE_SCHEME_CALLBACK (calc_anchor, (SCM)); }; #endif // BAR_HH