AlphaTab.Rendering.Glyphs.BeatContainerGlyph.ApplyLayoutingInfo C# (CSharp) Method

ApplyLayoutingInfo() public method

public ApplyLayoutingInfo ( BarLayoutingInfo info ) : void
info AlphaTab.Rendering.Staves.BarLayoutingInfo
return void
        public void ApplyLayoutingInfo(BarLayoutingInfo info)
        {
            if (UseLayoutingInfo)
            {
                PreNotes.Width = info.GetPreBeatSize(Beat);
                OnNotes.Width = info.GetOnBeatSize(Beat);
                OnNotes.X = PreNotes.X + PreNotes.Width;
                OnTimeX = OnNotes.X + OnNotes.Width / 2;
            }
        }