using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace V3.Widgets { /// /// A placeholder widget. /// // ReSharper disable once ClassNeverInstantiated.Global public sealed class EmptyWidget : IWidget { /// /// The current position of this widget on the screen. /// public Vector2 Position { get; set; } /// /// The size of this widget on the screen. The widget should try to /// fill this size. Should not be smaller than the value returned by /// GetMinimumSize(). /// public Vector2 Size { get; set; } /// /// Returns the minimum size this widgets needs. /// public Vector2 GetMinimumSize() { return new Vector2(0, 0); } /// /// Draws this widget on the given sprite batch. It is assumed that /// spriteBatch.Begin() has already been called. /// public void Draw(SpriteBatch spriteBatch) { } } }