| | |
| | | #ifndef ABSTRACTWINDOWCONTEXT_P_H |
| | | #define ABSTRACTWINDOWCONTEXT_P_H |
| | | |
| | | // |
| | | // W A R N I N G !!! |
| | | // ----------------- |
| | | // |
| | | // This file is not part of the QWindowKit API. It is used purely as an |
| | | // implementation detail. This header file may change from version to |
| | | // version without notice, or may even be removed. |
| | | // |
| | | |
| | | #include <array> |
| | | #include <memory> |
| | | |
| | |
| | | void showSystemMenu(const QPoint &pos); |
| | | void notifyWinIdChange(); |
| | | |
| | | inline bool isEnabled() const; |
| | | void setEnabled(bool enabled); |
| | | |
| | | protected: |
| | | virtual void winIdChanged(QWindow *oldWindow) = 0; |
| | | virtual void winIdChanged(QWindow *oldWindow, bool isDestroyed) = 0; |
| | | |
| | | protected: |
| | | QObject *m_host{}; |
| | |
| | | std::array<QObject *, WindowAgentBase::NumSystemButton> m_systemButtons{}; |
| | | |
| | | QVariantHash m_windowAttributes; |
| | | |
| | | private: |
| | | bool m_internalEnabled = false; |
| | | QPointer<QWindow> m_windowHandleCache; |
| | | }; |
| | | |
| | | inline QObject *AbstractWindowContext::host() const { |
| | |
| | | } |
| | | #endif |
| | | |
| | | inline bool AbstractWindowContext::isEnabled() const { |
| | | return m_internalEnabled; |
| | | } |
| | | |
| | | } |
| | | |
| | | #endif // ABSTRACTWINDOWCONTEXT_P_H |