コード例 #1
0
ファイル: OperatorWidget.xaml.cs プロジェクト: yarwelp/tooll
 public bool IsInDragGroup(IConnectableWidget el)
 {
     return(_snapHandler.DragGroup.Contains(el));
 }
コード例 #2
0
ファイル: OperatorWidget.xaml.cs プロジェクト: yarwelp/tooll
 public double GetHorizontalOverlapWith(IConnectableWidget op)
 {
     return(Math.Min(Operator.Position.X + Width, op.Position.X + op.Width) - Math.Max(Operator.Position.X, op.Position.X));
 }
コード例 #3
0
ファイル: OperatorWidget.xaml.cs プロジェクト: yarwelp/tooll
 public double GetVerticalOverlapWith(IConnectableWidget op)
 {
     return(Math.Min(Operator.Position.Y + Height, op.Position.Y + op.Height) - Math.Max(Operator.Position.Y, op.Position.Y));
 }
コード例 #4
0
ファイル: ConnectionLine.cs プロジェクト: yarwelp/tooll
 public double GetHorizontalOverlapWith(IConnectableWidget el)
 {
     return(0);
 }
コード例 #5
0
ファイル: ConnectionLine.cs プロジェクト: yarwelp/tooll
 public double GetVerticalOverlapWith(IConnectableWidget el)
 {
     return(0);
 }
コード例 #6
0
ファイル: ConnectionLine.cs プロジェクト: yarwelp/tooll
 public bool IsInDragGroup(IConnectableWidget el)
 {
     return(false);
 }