using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SCJMapper_V2.Layout
{
///
/// The shape drawing/interaction interface
///
interface IShape
{
bool IsValid { get; }
///
/// Draws the shape
///
void DrawShape( Graphics g );
///
/// Sets X,Y from Mouse location - shape is centered
///
///
void SetMouseLocation( Point loc );
///
/// Returns true if the item contains the location
///
/// A location point
/// True if the location is with the item area
bool HitTest( Point location );
///
/// Offset of click location vs. middle of the rectangle
/// to move it seamlessly
///
/// Click location
/// Movement offset
Point ClickOffset( Point location );
}
}