From ced3d03bdb3ce866d832e03fb212865140905a9a Mon Sep 17 00:00:00 2001 From: Thomas Leyh Date: Sun, 24 Jul 2016 08:14:18 +0200 Subject: Add project files. --- V3/Widgets/IMenu.cs | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 V3/Widgets/IMenu.cs (limited to 'V3/Widgets/IMenu.cs') diff --git a/V3/Widgets/IMenu.cs b/V3/Widgets/IMenu.cs new file mode 100644 index 0000000..ad121e0 --- /dev/null +++ b/V3/Widgets/IMenu.cs @@ -0,0 +1,33 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using System.Collections.Generic; +using V3.Input; + +namespace V3.Widgets +{ + /// + /// A menu that displays a list of widgets. + /// + public interface IMenu : IMouseEventHandler + { + /// + /// The widgets in this menu. The order of the widgets in this list + /// is the order in which they are displayed. + /// + List Widgets { get; } + + /// + /// The total size of the widgets in this menu. + /// + Vector2 Size { get; } + + /// + /// The current position of the widgets. + /// + Vector2 Position { get; } + + void Draw(SpriteBatch spriteBatch); + + void Update(); + } +} -- cgit v1.2.1