AlphaTab.Rendering.BarRendererBase.ScaleToWidth C# (CSharp) 메소드

ScaleToWidth() 공개 메소드

public ScaleToWidth ( float width ) : void
width float
리턴 void
        public virtual void ScaleToWidth(float width)
        {
            // preBeat and postBeat glyphs do not get resized
            var containerWidth = width - _preBeatGlyphs.Width - _postBeatGlyphs.Width;

            foreach (var voice in _voiceContainers)
            {
                var c = _voiceContainers[voice];
                c.ScaleToWidth(containerWidth);
            }

            _postBeatGlyphs.X = _preBeatGlyphs.X + _preBeatGlyphs.Width + containerWidth;

            Width = width;
        }