blob: ad121e0cb0caf431dd7ee1395e6d2fb984efbba0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System.Collections.Generic;
using V3.Input;
namespace V3.Widgets
{
/// <summary>
/// A menu that displays a list of widgets.
/// </summary>
public interface IMenu : IMouseEventHandler
{
/// <summary>
/// The widgets in this menu. The order of the widgets in this list
/// is the order in which they are displayed.
/// </summary>
List<IWidget> Widgets { get; }
/// <summary>
/// The total size of the widgets in this menu.
/// </summary>
Vector2 Size { get; }
/// <summary>
/// The current position of the widgets.
/// </summary>
Vector2 Position { get; }
void Draw(SpriteBatch spriteBatch);
void Update();
}
}
|