qscrollerproperties.sip 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // qscrollerproperties.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtWidgets Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  8. //
  9. // This file may be used under the terms of the GNU General Public License
  10. // version 3.0 as published by the Free Software Foundation and appearing in
  11. // the file LICENSE included in the packaging of this file. Please review the
  12. // following information to ensure the GNU General Public License version 3.0
  13. // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. //
  15. // If you do not wish to use this file under the terms of the GPL version 3.0
  16. // then you may purchase a commercial license. For more information contact
  17. // info@riverbankcomputing.com.
  18. //
  19. // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. class QScrollerProperties
  22. {
  23. %TypeHeaderCode
  24. #include <qscrollerproperties.h>
  25. %End
  26. public:
  27. QScrollerProperties();
  28. QScrollerProperties(const QScrollerProperties &sp);
  29. virtual ~QScrollerProperties();
  30. bool operator==(const QScrollerProperties &sp) const;
  31. bool operator!=(const QScrollerProperties &sp) const;
  32. static void setDefaultScrollerProperties(const QScrollerProperties &sp);
  33. static void unsetDefaultScrollerProperties();
  34. enum OvershootPolicy
  35. {
  36. OvershootWhenScrollable,
  37. OvershootAlwaysOff,
  38. OvershootAlwaysOn,
  39. };
  40. enum FrameRates
  41. {
  42. Standard,
  43. Fps60,
  44. Fps30,
  45. Fps20,
  46. };
  47. enum ScrollMetric
  48. {
  49. MousePressEventDelay,
  50. DragStartDistance,
  51. DragVelocitySmoothingFactor,
  52. AxisLockThreshold,
  53. ScrollingCurve,
  54. DecelerationFactor,
  55. MinimumVelocity,
  56. MaximumVelocity,
  57. MaximumClickThroughVelocity,
  58. AcceleratingFlickMaximumTime,
  59. AcceleratingFlickSpeedupFactor,
  60. SnapPositionRatio,
  61. SnapTime,
  62. OvershootDragResistanceFactor,
  63. OvershootDragDistanceFactor,
  64. OvershootScrollDistanceFactor,
  65. OvershootScrollTime,
  66. HorizontalOvershootPolicy,
  67. VerticalOvershootPolicy,
  68. FrameRate,
  69. ScrollMetricCount,
  70. };
  71. QVariant scrollMetric(QScrollerProperties::ScrollMetric metric) const;
  72. void setScrollMetric(QScrollerProperties::ScrollMetric metric, const QVariant &value);
  73. };