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/ISelectable.cs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 V3/Widgets/ISelectable.cs (limited to 'V3/Widgets/ISelectable.cs') diff --git a/V3/Widgets/ISelectable.cs b/V3/Widgets/ISelectable.cs new file mode 100644 index 0000000..6eb78dc --- /dev/null +++ b/V3/Widgets/ISelectable.cs @@ -0,0 +1,27 @@ +using Microsoft.Xna.Framework; + +namespace V3.Widgets +{ + /// + /// An element that can be selected. + /// + public interface ISelectable + { + bool IsSelected { get; set; } + + /// + /// The tooltip to show if this widget is selected. Can be null or + /// empty if no tooltip should be shown. + /// + string Tooltip { get; set; } + + /// + /// Checks whether this element is selected by a mouse click at the + /// given position. + /// + /// the position of the mouse click + /// true if the element is selected by the mouse click at + /// that position, otherwise false + bool CheckSelected(Point position); + } +} -- cgit v1.2.1