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); } }