Example #1
0
 /// <summary>
 /// 边框移动
 /// </summary>
 /// <param name="xOff"></param>
 /// <param name="yOff"></param>
 /// <param name="wOff"></param>
 /// <param name="hOff"></param>
 protected virtual void FrameMove(float xOff, float yOff, float wOff, float hOff)
 {
     SetRect(Calculation.OffsetRect(DataBk.Rect, xOff, yOff, wOff, hOff));
 }
Example #2
0
 /// <summary>
 /// 设置Rect时,需要先写入NewRect,然后计算,再将NewRect赋值给Rect
 /// </summary>
 /// <param name="rf"></param>
 protected virtual void SetNewRect(RectangleF rf)
 {
     Calculation.LimitRect(ref rf);
     _newRect = rf;
 }
Example #3
0
 public virtual void MouseMove(PointF point)
 {
     SetRect(Calculation.OffsetRect(DataBk.Rect, point.X - DataBk.MousePos.X, point.Y - DataBk.MousePos.Y, 0, 0));
 }