Example #1
0
 private bool MouseOnTop()
 {
     top = new BoundingBox(Position.X, Position.Y+Size.Y-bounds, Position.X + Size.X, Position.Y+Size.Y);
     return top.Contains(m_keyboard.MousePos);
 }
Example #2
0
 private bool MouseOnRight()
 {
     right = new BoundingBox(Position.X + Size.X - bounds, Position.Y, Position.X + Size.X, Position.Y + Size.Y);
     return right.Contains(m_keyboard.MousePos);
 }
Example #3
0
 private bool MouseOnBottom()
 {
     bottom = new BoundingBox(Position.X, Position.Y, Position.X + Size.X, Position.Y+bounds);
     return bottom.Contains(m_keyboard.MousePos);
 }
Example #4
0
 private bool MouseOnLeft()
 {
     left = new BoundingBox(Position.X, Position.Y, Position.X + bounds, Position.Y + Size.Y);
     return left.Contains(m_keyboard.MousePos);
 }
Example #5
0
 private bool MouseInMiddle()
 {
     middle = new BoundingBox(Position.X + bounds, Position.Y+bounds, Position.X+Size.X-bounds, Position.Y+Size.Y-bounds);
     return middle.Contains(m_keyboard.MousePos);
 }