Files
CanFly
CanFly.Canvas
DH.Commons
Base
Enums
Exception
Helper
Interface
IShapeElement.cs
Spec.cs
Models
DH.Commons.csproj
GlobalVar.cs
DH.Commons.Devies
DH.Devices.Camera
DH.Devices.Motion
DH.Devices.PLC
DH.Devices.Vision
DH.RBAC
DH.UI.Model.Winform
DHSoftware
.gitignore
DHSoftware.sln
README.md
DHDHSoftware/DH.Commons/Interface/IShapeElement.cs
2025-03-16 13:11:08 +08:00

40 lines
938 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.ComponentModel;
using System.Drawing;
using static DH.Commons.Enums.EnumHelper;
namespace DH.Commons.Enums
{
public interface IShapeElement : INotifyPropertyChanged, ICloneable
{
string ID { get; set; }
int Index { get; set; }
int GroupIndex { get; set; }
string Name { get; set; }
void OnMouseDown(PointF point);
void OnMouseUp(PointF point);
void OnMouseMove(PointF point);
void OnMouseDoubleClick(PointF point);
bool IsIntersect(RectangleF rect);
bool IsEnabled { get; set; }
void Draw(Graphics g);
void Translate(float x, float y);
/// <summary>
/// WPF中标识该对象是否已经加入渲染需要显示
/// </summary>
bool IsShowing { get; set; }
void Initial();
bool IsCreatedDone();
ElementState State { get; set; }
}
}