| | |
| | | FixedBorder, |
| | | TitleBar, |
| | | }; |
| | | Q_ENUM(WindowPart) |
| | | |
| | | QString key() const override; |
| | | void virtual_hook(int id, void *data) override; |
| | |
| | | QVariant windowAttribute(const QString &key) const override; |
| | | |
| | | protected: |
| | | void winIdChanged() override; |
| | | void winIdChanged(WId winId, WId oldWinId) override; |
| | | bool windowAttributeChanged(const QString &key, const QVariant &attribute, |
| | | const QVariant &oldAttribute) override; |
| | | |
| | |
| | | LRESULT *result); |
| | | |
| | | protected: |
| | | WId windowId = 0; |
| | | |
| | | // The last hit test result, helpful to handle WM_MOUSEMOVE and WM_NCMOUSELEAVE. |
| | | WindowPart lastHitTestResult = WindowPart::Outside; |
| | | int lastHitTestResultRaw = HTNOWHERE; |
| | | |
| | | // Whether the last mouse leave message is blocked, mainly for handling the unexpected |
| | | // WM_MOUSELEAVE. |
| | | bool mouseLeaveBlocked = false; |
| | | |
| | | // For emulating traditional icon button behavior |
| | | uint64_t iconButtonClickTime = 0; |
| | | int iconButtonClickLevel = 0; |
| | | }; |
| | | |
| | | } |