using System;
|
using System.ComponentModel;
|
using System.Drawing;
|
using static Bro.Common.Helper.EnumHelper;
|
|
namespace Bro.Common.Interface
|
{
|
public interface IShapeElement : INotifyPropertyChanged, ICloneable
|
{
|
string ID { get; set; }
|
|
int Index { get; set; }
|
|
string Name { get; set; }
|
|
void OnMouseDown(Point point);
|
void OnMouseUp(Point point);
|
void OnMouseMove(Point point);
|
void OnMouseDoubleClick(Point point);
|
bool IsIntersect(Rectangle rect);
|
|
bool IsEnabled { get; set; }
|
void Draw(Graphics g);
|
|
/// <summary>
|
/// WPF中标识该对象是否已经加入渲染,需要显示
|
/// </summary>
|
bool IsShowing { get; set; }
|
|
ElementState State { get; set; }
|
}
|
}
|