Defines an vector with 2 integer components.
Пример #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);
 }
Пример #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);
 }
Пример #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;
 }
Пример #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);
 }
Пример #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;
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }