领胜LDS 键盘AOI检测项目
wells.liu
2020-07-07 5918194fccdb2a2303e713b8d2f3335243b9e2ef
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
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; }
    }
}