コード例 #1
0
 public override void DoLayout()
 {
     _helpers = Stave.StaveGroup.Helpers.Helpers[Bar.Track.Index][Bar.Index];
     base.DoLayout();
     Height  = Stave.GetSetting("rhythm-height", 24) * Scale;
     IsEmpty = false;
 }
コード例 #2
0
        private void PaintBeamHelper(float cx, float cy, ICanvas canvas, BeamingHelper h)
        {
            if (h.Beats[0].GraceType != GraceType.None)
            {
                return;
            }
            var useBeams = Stave.GetSetting("use-beams", false);

            // check if we need to paint simple footer
            if (useBeams && h.Beats.Count == 1)
            {
                PaintFooter(cx, cy, canvas, h);
            }
            else
            {
                PaintBar(cx, cy, canvas, h);
            }
        }