1 /**************************************************************************** 2 ** 3 ** DQt - D bindings for the Qt Toolkit 4 ** 5 ** GNU Lesser General Public License Usage 6 ** This file may be used under the terms of the GNU Lesser 7 ** General Public License version 3 as published by the Free Software 8 ** Foundation and appearing in the file LICENSE.LGPL3 included in the 9 ** packaging of this file. Please review the following information to 10 ** ensure the GNU Lesser General Public License version 3 requirements 11 ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. 12 ** 13 ****************************************************************************/ 14 module qt.gui.stylehints; 15 extern(C++): 16 17 import qt.config; 18 import qt.core.global; 19 import qt.core.namespace; 20 import qt.core.object; 21 import qt.core.qchar; 22 import qt.helpers; 23 24 /+ class QPlatformIntegration; +/ 25 extern(C++, class) struct QStyleHintsPrivate; 26 27 class /+ Q_GUI_EXPORT +/ QStyleHints : QObject 28 { 29 mixin(Q_OBJECT); 30 /+ Q_DECLARE_PRIVATE(QStyleHints) +/ 31 /+ Q_PROPERTY(int cursorFlashTime READ cursorFlashTime NOTIFY cursorFlashTimeChanged FINAL) 32 Q_PROPERTY(qreal fontSmoothingGamma READ fontSmoothingGamma STORED false CONSTANT FINAL) 33 Q_PROPERTY(int keyboardAutoRepeatRate READ keyboardAutoRepeatRate STORED false CONSTANT FINAL) 34 Q_PROPERTY(int keyboardInputInterval READ keyboardInputInterval NOTIFY keyboardInputIntervalChanged FINAL) 35 Q_PROPERTY(int mouseDoubleClickInterval READ mouseDoubleClickInterval NOTIFY mouseDoubleClickIntervalChanged FINAL) 36 Q_PROPERTY(int mousePressAndHoldInterval READ mousePressAndHoldInterval NOTIFY mousePressAndHoldIntervalChanged FINAL) 37 Q_PROPERTY(QChar passwordMaskCharacter READ passwordMaskCharacter STORED false CONSTANT FINAL) 38 Q_PROPERTY(int passwordMaskDelay READ passwordMaskDelay STORED false CONSTANT FINAL) 39 Q_PROPERTY(bool setFocusOnTouchRelease READ setFocusOnTouchRelease STORED false CONSTANT FINAL) 40 Q_PROPERTY(bool showIsFullScreen READ showIsFullScreen STORED false CONSTANT FINAL) 41 Q_PROPERTY(bool showIsMaximized READ showIsMaximized STORED false CONSTANT FINAL) 42 Q_PROPERTY(bool showShortcutsInContextMenus READ showShortcutsInContextMenus WRITE setShowShortcutsInContextMenus NOTIFY showShortcutsInContextMenusChanged FINAL) 43 Q_PROPERTY(int startDragDistance READ startDragDistance NOTIFY startDragDistanceChanged FINAL) 44 Q_PROPERTY(int startDragTime READ startDragTime NOTIFY startDragTimeChanged FINAL) 45 Q_PROPERTY(int startDragVelocity READ startDragVelocity STORED false CONSTANT FINAL) 46 Q_PROPERTY(bool useRtlExtensions READ useRtlExtensions STORED false CONSTANT FINAL) 47 Q_PROPERTY(Qt::TabFocusBehavior tabFocusBehavior READ tabFocusBehavior NOTIFY tabFocusBehaviorChanged FINAL) 48 Q_PROPERTY(bool singleClickActivation READ singleClickActivation STORED false CONSTANT FINAL) 49 Q_PROPERTY(bool useHoverEffects READ useHoverEffects WRITE setUseHoverEffects NOTIFY useHoverEffectsChanged FINAL) 50 Q_PROPERTY(int wheelScrollLines READ wheelScrollLines NOTIFY wheelScrollLinesChanged FINAL) 51 Q_PROPERTY(int mouseQuickSelectionThreshold READ mouseQuickSelectionThreshold WRITE setMouseQuickSelectionThreshold NOTIFY mouseQuickSelectionThresholdChanged FINAL) 52 Q_PROPERTY(int mouseDoubleClickDistance READ mouseDoubleClickDistance STORED false CONSTANT FINAL) 53 Q_PROPERTY(int touchDoubleTapDistance READ touchDoubleTapDistance STORED false CONSTANT FINAL) +/ 54 55 public: 56 final void setMouseDoubleClickInterval(int mouseDoubleClickInterval); 57 final int mouseDoubleClickInterval() const; 58 final int mouseDoubleClickDistance() const; 59 final int touchDoubleTapDistance() const; 60 final void setMousePressAndHoldInterval(int mousePressAndHoldInterval); 61 final int mousePressAndHoldInterval() const; 62 final void setStartDragDistance(int startDragDistance); 63 final int startDragDistance() const; 64 final void setStartDragTime(int startDragTime); 65 final int startDragTime() const; 66 final int startDragVelocity() const; 67 final void setKeyboardInputInterval(int keyboardInputInterval); 68 final int keyboardInputInterval() const; 69 final int keyboardAutoRepeatRate() const; 70 final void setCursorFlashTime(int cursorFlashTime); 71 final int cursorFlashTime() const; 72 final bool showIsFullScreen() const; 73 final bool showIsMaximized() const; 74 final bool showShortcutsInContextMenus() const; 75 final void setShowShortcutsInContextMenus(bool showShortcutsInContextMenus); 76 final int passwordMaskDelay() const; 77 final QChar passwordMaskCharacter() const; 78 final qreal fontSmoothingGamma() const; 79 final bool useRtlExtensions() const; 80 final bool setFocusOnTouchRelease() const; 81 final /+ Qt:: +/qt.core.namespace.TabFocusBehavior tabFocusBehavior() const; 82 final void setTabFocusBehavior(/+ Qt:: +/qt.core.namespace.TabFocusBehavior tabFocusBehavior); 83 final bool singleClickActivation() const; 84 final bool useHoverEffects() const; 85 final void setUseHoverEffects(bool useHoverEffects); 86 final int wheelScrollLines() const; 87 final void setWheelScrollLines(int scrollLines); 88 final void setMouseQuickSelectionThreshold(int threshold); 89 final int mouseQuickSelectionThreshold() const; 90 91 /+ Q_SIGNALS +/public: 92 @QSignal final void cursorFlashTimeChanged(int cursorFlashTime); 93 @QSignal final void keyboardInputIntervalChanged(int keyboardInputInterval); 94 @QSignal final void mouseDoubleClickIntervalChanged(int mouseDoubleClickInterval); 95 @QSignal final void mousePressAndHoldIntervalChanged(int mousePressAndHoldInterval); 96 @QSignal final void startDragDistanceChanged(int startDragDistance); 97 @QSignal final void startDragTimeChanged(int startDragTime); 98 @QSignal final void tabFocusBehaviorChanged(/+ Qt:: +/qt.core.namespace.TabFocusBehavior tabFocusBehavior); 99 @QSignal final void useHoverEffectsChanged(bool useHoverEffects); 100 @QSignal final void showShortcutsInContextMenusChanged(bool); 101 @QSignal final void wheelScrollLinesChanged(int scrollLines); 102 @QSignal final void mouseQuickSelectionThresholdChanged(int threshold); 103 104 private: 105 /+ friend class QGuiApplication; +/ 106 this(); 107 } 108