Пример #1
0
 public static void Stretch(UIObject uiObject)
 {
     Stretch(uiObject: uiObject, distance: DefaultPinchStretchDistance);
 }
Пример #2
0
 public static void Stretch(UIObject uiObject, uint distance)
 {
     Stretch(uiObject: uiObject, distance: distance, direction: DefaultPinchStretchDirection);
 }
Пример #3
0
 public static void TwoPointPan(UIObject targetObject, UIObject destinationObject)
 {
     TwoPointPan(targetObject: targetObject, destinationObject: destinationObject, acceleration: DefaultTwoPointPanAcceleration);
 }
Пример #4
0
 public static void Pinch(UIObject uiObject, uint distance, float direction)
 {
     Current.Move(point: OffsetPinchPoints(uiObject: uiObject, distance: distance, direction: direction));
     Pinch(direction: direction, duration: DefaultPinchStretchDuration, startDistance: distance, endDistance: 0U);
 }
Пример #5
0
 public static void PressAndDrag(UIObject targetObject, UIObject destinationObject)
 {
     PressAndDrag(targetObject: targetObject, destinationObject: destinationObject, dragDuration: DefaultDragDuration);
 }
Пример #6
0
 public static void TwoPointPressAndHold(UIObject uiObject, uint count)
 {
     Current.Move(point: uiObject.GetClickablePoint());
     TwoPointPressAndHold(tapCount: count, holdDuration: InputManager.DefaultPressDuration, tapDelta: InputManager.DefaultTapDelta, distance: DefaultTapDistance);
 }
Пример #7
0
 public static bool Matches(UIObject uiObject, UICondition condition)
 {
     Validate.ArgumentNotNull(parameter: uiObject, parameterName: nameof(uiObject));
     Validate.ArgumentNotNull(parameter: condition, parameterName: nameof(condition));
     return(condition.Matches(element: uiObject.AutomationElement));
 }
Пример #8
0
 public static void Rotate(UIObject uiObject, float angle, bool centerOnPoint)
 {
     Rotate(uiObject: uiObject, distance: DefaultRotateDistance, angle: angle, centerOnPoint: centerOnPoint);
 }
Пример #9
0
 public UIObject(UIObject uiObject)
 {
     Validate.ArgumentNotNull(parameter: uiObject, parameterName: nameof(uiObject));
     Validate.ArgumentNotNull(parameter: uiObject.AutomationElement, parameterName: "uiObject.AutomationElement");
     AutomationElement = uiObject.AutomationElement;
 }
Пример #10
0
 public void ClickDrag(UIObject uiObject)
 {
     ClickDrag(button: PointerButtons.Primary, uiObject: uiObject);
 }
Пример #11
0
 public static void Flick(UIObject targetObject, UIObject destinationObject)
 {
     Flick(targetObject: targetObject, destinationObject: destinationObject, acceleration: DefaultFlickAcceleration);
 }
Пример #12
0
 public static void PressAndHold(UIObject uiObject, uint holdDuration)
 {
     Current.Move(point: uiObject.GetClickablePoint());
     PressAndHold(holdDuration: holdDuration);
 }
Пример #13
0
 public static void PressAndHold(UIObject uiObject)
 {
     PressAndHold(uiObject: uiObject, holdDuration: DefaultHoldDuration);
 }
Пример #14
0
 public static void Stretch(UIObject uiObject, uint distance, float direction, bool pivot)
 {
     Current.Move(point: uiObject.GetClickablePoint());
     Stretch(direction: direction, duration: DefaultPinchStretchDuration, startDistance: 0U, endDistance: distance, pivot: pivot);
 }
Пример #15
0
 public static void PressAndTap(UIObject uiObject)
 {
     Current.Move(point: uiObject.GetClickablePoint());
     PressAndTap(tapCount: 1U, tapDuration: DefaultHoldDuration, tapDelta: DefaultTapDelta, distance: DefaultTapDistance);
 }
Пример #16
0
 public static void Rotate(UIObject uiObject, uint distance, float angle)
 {
     Rotate(uiObject: uiObject, distance: distance, angle: angle, centerOnPoint: false);
 }
Пример #17
0
 public static void TwoPointPressAndHold(UIObject uiObject)
 {
     TwoPointPressAndHold(uiObject: uiObject, count: 1U);
 }
Пример #18
0
 public static ActionResult Invoke(UIObject sender, ActionEventArgs actionInfo)
 {
     return(Invoke(sender: sender, actionInfo: actionInfo, overridden: out var _));
 }
Пример #19
0
 internal SupportedProperties(UIObject uiObject)
 {
     this._uiObject = uiObject;
 }