TerroGUI.Library.Portable/Container.cs
/// <summary>
/// Draws this container and all controls attached to it.
/// </summary>
Draws this container and all controls attached to it.
Draws this container and all controls attached to it .
public void Draw(SpriteBatch spriteBatch)
        {
            if (Visible)
            {
                spriteBatch.Draw(Background, new Rectangle(X, Y, Width, Height), Color.White);
                foreach (Control c in Controls)
                {
                    if (c.Active)
                    {
                        c.Draw(spriteBatch);
                    }
                }
            }
        }
public void Draw ( SpriteBatch spriteBatch ) { if ( Visible ) { spriteBatch . Draw ( Background , new Rectangle ( X , Y , Width , Height ) , Color . White ) ; foreach ( Control c in Controls ) { if ( c . Active ) { c . Draw ( spriteBatch ) ; } } } }
Draws this container and all controls attached to it.
Draws this container and all controls attached to it .
spriteBatch
SpriteBatch