Defines an vector with 2 integer components.
Exemplo n.º 1
0
 /// <summary>
 /// Sets the the specified point on this frame to be at the same position
 /// as the corresponding point on the parent frame.
 /// </summary>
 /// <param name="point">The point.</param>
 /// <param name="offset">The offset.</param>
 /// <param name="anchorFrame">The frame this frame is anchored to.</param>
 /// <param name="anchoredTo">The point on the anchorFrame to anchor to.</param>
 public void SetPoint(Points point, Int2D offset, Frame anchorFrame, Points anchoredTo)
 {
     SetPoint(point, offset.X, offset.Y, anchorFrame, anchoredTo);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Sets the size. SetPoint overrides the size set here.
 /// </summary>
 /// <param name="size">The size.</param>
 public void SetSize(Int2D size)
 {
     SetSize(size.X, size.Y);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Indicates whether this instance and a specified Int2D are equal.
 /// </summary>
 /// <param name="value">The value to compare to.</param>
 /// <returns>true is <paramref name="value"/> and this instance are equal; else false.</returns>
 public bool Equals(Int2D value)
 {
     return this.X == value.X && this.Y == value.Y;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Sets the the specified point on this frame to be at the same position
 /// as the corresponding point on the parent frame.
 /// </summary>
 /// <param name="point">The point.</param>
 /// <param name="offset">The offset.</param>
 public void SetPoint(Points point, Int2D offset)
 {
     SetPoint(point, offset.X, offset.Y);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Indicates whether this instance and a specified Int2D are equal.
 /// </summary>
 /// <param name="value">The value to compare to.</param>
 /// <returns>true is <paramref name="value"/> and this instance are equal; else false.</returns>
 public bool Equals(Int2D value)
 {
     return X == value.X && Y == value.Y;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Indicates whether this instance and a specified Int2D are equal.
 /// </summary>
 /// <param name="value">The value to compare to.</param>
 /// <returns>true is <paramref name="value"/> and this instance are equal; else false.</returns>
 public bool Equals(Int2D value)
 {
     return(this.X == value.X && this.Y == value.Y);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Sets the the specified point on this frame to be at the same position
 /// as the corresponding point on the parent frame.
 /// </summary>
 /// <param name="point">The point.</param>
 /// <param name="offset">The offset.</param>
 /// <param name="anchorFrame">The frame this frame is anchored to.</param>
 /// <param name="anchoredTo">The point on the anchorFrame to anchor to.</param>
 public void SetPoint(Points point, Int2D offset, Frame anchorFrame, Points anchoredTo)
 {
     SetPoint(point, offset.X, offset.Y, anchorFrame, anchoredTo);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Sets the the specified point on this frame to be at the same position
 /// as the corresponding point on the parent frame.
 /// </summary>
 /// <param name="point">The point.</param>
 /// <param name="offset">The offset.</param>
 public void SetPoint(Points point, Int2D offset)
 {
     SetPoint(point, offset.X, offset.Y);
 }
Exemplo n.º 9
0
 /// <summary>
 /// Sets the size. SetPoint overrides the size set here.
 /// </summary>
 /// <param name="size">The size.</param>
 public void SetSize(Int2D size)
 {
     SetSize(size.X, size.Y);
 }