Exemplo n.º 1
0
 public TouchRect(int x, int y, int width, int height, SwipeTrigger eventToTrigger, bool pointIsCenter = false, object state = null)
 {
     if (pointIsCenter)
     {
         X = x - width / 2;
         Y = y - height / 2;
     }
     else
     {
         X = x;
         Y = y;
     }
     Width  = width;
     Height = height;
     SwipeEventToTrigger = eventToTrigger;
     State = state;
 }
Exemplo n.º 2
0
 public TouchRect(Point p, int width, int height, SwipeTrigger eventToTrigger, bool pointIsCenter = false, object state = null)
     : this(p.X, p.Y, width, height, eventToTrigger, pointIsCenter, state)
 {
 }
Exemplo n.º 3
0
 public TouchRect(Point p, Point size, SwipeTrigger eventToTrigger, bool pointIsCenter = false, object state = null)
     : this(p.X, p.Y, size.X, size.Y, eventToTrigger, pointIsCenter, state)
 {
 }
Exemplo n.º 4
0
 public TouchRect(Rectangle rect, SwipeTrigger eventToTrigger, bool pointIsCenter = false, object state = null)
     : this(rect.X, rect.Y, rect.Width, rect.Height, eventToTrigger, pointIsCenter, state)
 {
 }