qstylehints.sip 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. // qstylehints.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtGui 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 QStyleHints : public QObject
  22. {
  23. %TypeHeaderCode
  24. #include <qstylehints.h>
  25. %End
  26. public:
  27. int mouseDoubleClickInterval() const;
  28. int startDragDistance() const;
  29. int startDragTime() const;
  30. int startDragVelocity() const;
  31. int keyboardInputInterval() const;
  32. int keyboardAutoRepeatRate() const;
  33. int cursorFlashTime() const;
  34. bool showIsFullScreen() const;
  35. int passwordMaskDelay() const;
  36. qreal fontSmoothingGamma() const;
  37. bool useRtlExtensions() const;
  38. QChar passwordMaskCharacter() const;
  39. bool setFocusOnTouchRelease() const;
  40. int mousePressAndHoldInterval() const;
  41. Qt::TabFocusBehavior tabFocusBehavior() const;
  42. bool singleClickActivation() const;
  43. signals:
  44. void cursorFlashTimeChanged(int cursorFlashTime);
  45. void keyboardInputIntervalChanged(int keyboardInputInterval);
  46. void mouseDoubleClickIntervalChanged(int mouseDoubleClickInterval);
  47. void startDragDistanceChanged(int startDragDistance);
  48. void startDragTimeChanged(int startDragTime);
  49. void mousePressAndHoldIntervalChanged(int mousePressAndHoldInterval);
  50. void tabFocusBehaviorChanged(Qt::TabFocusBehavior tabFocusBehavior);
  51. public:
  52. bool showIsMaximized() const;
  53. bool useHoverEffects() const;
  54. void setUseHoverEffects(bool useHoverEffects);
  55. signals:
  56. void useHoverEffectsChanged(bool useHoverEffects);
  57. public:
  58. int wheelScrollLines() const;
  59. signals:
  60. void wheelScrollLinesChanged(int scrollLines);
  61. public:
  62. bool showShortcutsInContextMenus() const;
  63. int mouseQuickSelectionThreshold() const;
  64. signals:
  65. void mouseQuickSelectionThresholdChanged(int threshold);
  66. public:
  67. void setShowShortcutsInContextMenus(bool showShortcutsInContextMenus);
  68. signals:
  69. void showShortcutsInContextMenusChanged(bool);
  70. public:
  71. int mouseDoubleClickDistance() const;
  72. int touchDoubleTapDistance() const;
  73. %If (Qt_6_5_0 -)
  74. qreal keyboardAutoRepeatRateF() const;
  75. %End
  76. %If (Qt_6_5_0 -)
  77. Qt::ColorScheme colorScheme() const;
  78. %End
  79. signals:
  80. %If (Qt_6_5_0 -)
  81. void colorSchemeChanged(Qt::ColorScheme colorScheme);
  82. %End
  83. public:
  84. %If (Qt_6_8_0 -)
  85. Qt::ContextMenuTrigger contextMenuTrigger() const;
  86. %End
  87. %If (Qt_6_8_0 -)
  88. void setContextMenuTrigger(Qt::ContextMenuTrigger contextMenuTrigger);
  89. %End
  90. %If (Qt_6_8_0 -)
  91. void setColorScheme(Qt::ColorScheme scheme);
  92. %End
  93. %If (Qt_6_8_0 -)
  94. void unsetColorScheme();
  95. %End
  96. signals:
  97. %If (Qt_6_8_0 -)
  98. void contextMenuTriggerChanged(Qt::ContextMenuTrigger contextMenuTrigger);
  99. %End
  100. public:
  101. %If (Qt_6_10_0 -)
  102. bool menuSelectionWraps() const;
  103. %End
  104. %If (Qt_6_10_0 -)
  105. const QAccessibilityHints *accessibility() const;
  106. %End
  107. private:
  108. QStyleHints();
  109. };