using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace V3.Widgets
{
///
/// A simple widget that has a size and a position and that can be drawn.
///
public interface IWidget
{
///
/// The current position of this widget on the screen.
///
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().
///
Vector2 Size { get; set; }
///
/// Returns the minimum size this widgets needs.
///
Vector2 GetMinimumSize();
///
/// Drawst this widget on the given sprite batch. It is assumed that
/// spriteBatch.Begin() has already been called.
///
void Draw(SpriteBatch spriteBatch);
}
}