Defines an vector with 2 integer components.
示例#1
0
文件: Frame.cs 项目: TomGillen/Myre
 /// <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
文件: Frame.cs 项目: TomGillen/Myre
 /// <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
文件: Int2D.cs 项目: TomGillen/Myre
 /// <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
文件: Frame.cs 项目: TomGillen/Myre
 /// <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
文件: Int2D.cs 项目: ylyking/Myre
 /// <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
文件: Int2D.cs 项目: sachgits/Myre
 /// <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
文件: Frame.cs 项目: sachgits/Myre
 /// <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
文件: Frame.cs 项目: sachgits/Myre
 /// <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
文件: Frame.cs 项目: sachgits/Myre
 /// <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);
 }