Example #1
0
 protected override bool TestWithin(Point location)
 {
     if (orientation == GoblinEnums.Orientation.Horizontal)
     {
         return(UI2DHelper.IsWithin(location, new Rectangle(paintBounds.X, paintBounds.Y - 8,
                                                            paintBounds.Width, paintBounds.Height + 13)));
     }
     else
     {
         return(UI2DHelper.IsWithin(location, new Rectangle(paintBounds.X - 8, paintBounds.Y,
                                                            paintBounds.Width + 13, paintBounds.Height)));
     }
 }
Example #2
0
 protected virtual void CheckArrowPress(Point location)
 {
     if (UI2DHelper.IsWithin(location, upArrowBound))
     {
         DoNextClick();
         upPressed = true;
         heldDown  = true;
     }
     else if (UI2DHelper.IsWithin(location, downArrowBound))
     {
         DoPreviousClick();
         downPressed = true;
         heldDown    = true;
     }
 }
Example #3
0
 protected virtual bool TestKnobWithin(Point location)
 {
     return(UI2DHelper.IsWithin(location, knobBound));
 }
Example #4
0
 /// <summary>
 /// Tests whether the mouse is within the bounds.
 /// </summary>
 /// <returns></returns>
 protected virtual bool TestWithin(Point location)
 {
     return(UI2DHelper.IsWithin(location, paintBounds));
 }