Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/windowed/x11windowed_output.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | 44 | public: | |||
---|---|---|---|---|---|
54 | QPoint internalPosition() const; | 54 | QPoint internalPosition() const; | ||
55 | QPoint hostPosition() const { | 55 | QPoint hostPosition() const { | ||
56 | return m_hostPosition; | 56 | return m_hostPosition; | ||
57 | } | 57 | } | ||
58 | void setHostPosition(const QPoint &pos); | 58 | void setHostPosition(const QPoint &pos); | ||
59 | 59 | | |||
60 | void setWindowTitle(const QString &title); | 60 | void setWindowTitle(const QString &title); | ||
61 | 61 | | |||
62 | QSize pixelSize() const override; | | |||
63 | | ||||
64 | /** | 62 | /** | ||
65 | * @brief defines the geometry of the output | 63 | * @brief defines the geometry of the output | ||
66 | * @param logicalPosition top left position of the output in compositor space | 64 | * @param logicalPosition top left position of the output in compositor space | ||
67 | * @param pixelSize output size as seen from the outside | 65 | * @param pixelSize output size as seen from the outside | ||
68 | */ | 66 | */ | ||
69 | void setGeometry(const QPoint &logicalPosition, const QSize &pixelSize); | 67 | void setGeometry(const QPoint &logicalPosition, const QSize &pixelSize); | ||
70 | 68 | | |||
71 | private: | 69 | private: | ||
72 | void initXInputForWindow(); | 70 | void initXInputForWindow(); | ||
73 | 71 | | |||
74 | xcb_window_t m_window = XCB_WINDOW_NONE; | 72 | xcb_window_t m_window = XCB_WINDOW_NONE; | ||
75 | NETWinInfo *m_winInfo = nullptr; | 73 | NETWinInfo *m_winInfo = nullptr; | ||
76 | 74 | | |||
77 | QPoint m_hostPosition; | 75 | QPoint m_hostPosition; | ||
78 | QSize m_pixelSize; | | |||
79 | 76 | | |||
80 | X11WindowedBackend *m_backend; | 77 | X11WindowedBackend *m_backend; | ||
81 | }; | 78 | }; | ||
82 | 79 | | |||
83 | } | 80 | } | ||
84 | 81 | | |||
85 | #endif | 82 | #endif |