PointerOptions.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. * Copyright (c) 2021 Vuplex Inc. All rights reserved.
  3. *
  4. * Licensed under the Vuplex Commercial Software Library License, you may
  5. * not use this file except in compliance with the License. You may obtain
  6. * a copy of the License at
  7. *
  8. * https://vuplex.com/commercial-library-license
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. using System;
  17. namespace Vuplex.WebView {
  18. /// <summary>
  19. /// Options to alter pointer methods, like `PointerUp()` and `PointerDown()`.
  20. /// </summary>
  21. public class PointerOptions {
  22. /// <summary>
  23. /// The button for the event. The default is `MouseButton.Left`.
  24. /// </summary>
  25. public MouseButton Button = MouseButton.Left;
  26. /// <summary>
  27. /// The number of clicks for the event. For example, for a double click,
  28. /// set this value to `2`. The default value is `1`.
  29. /// </summary>
  30. public int ClickCount = 1;
  31. public override string ToString() {
  32. return String.Format("Button = {0}, ClickCount = {1}", Button, ClickCount);
  33. }
  34. }
  35. }