7#include <qpa/qplatformwindow.h>
8#include <qpa/qplatformwindow_p.h>
9#include <QtGui/QSurfaceFormat>
10#include <QtGui/QImage>
24 ,
public QNativeInterface::Private::QXcbWindow
28 NetWmStateAbove = 0x1,
29 NetWmStateBelow = 0x2,
30 NetWmStateFullScreen = 0x4,
31 NetWmStateMaximizedHorz = 0x8,
32 NetWmStateMaximizedVert = 0x10,
33 NetWmStateModal = 0x20,
34 NetWmStateStaysOnTop = 0x40,
35 NetWmStateDemandsAttention = 0x80,
36 NetWmStateHidden = 0x100
42 RecreationNotNeeded = 0,
43 WindowStaysOnTopHintChanged = 0x1,
44 WindowStaysOnBottomHintChanged = 0x2
58 WId
winId()
const override;
69 void raise()
override;
70 void lower()
override;
120 void updateNetWmUserTime(xcb_timestamp_t timestamp);
122 WindowTypes wmWindowTypes()
const;
123 void setWmWindowType(WindowTypes
types, Qt::WindowFlags
flags);
125 void setWindowRole(
const QString &role)
override;
127 void setParentRelativeBackPixmap();
128 bool requestSystemTrayWindowDock();
129 uint visualId()
const override;
131 bool needsSync()
const;
133 void postSyncWindowRequest();
141 bool startSystemMoveResize(
const QPoint &
pos,
int edges);
142 void doStartSystemMoveResize(
const QPoint &globalPos,
int edges);
150 virtual void destroy();
159 void updateSyncRequestCounter();
163 virtual const xcb_visualtype_t *createVisual();
164 void setImageFormatForVisual(
const xcb_visualtype_t *visual);
169 void setNetWmState(
bool set, xcb_atom_t one, xcb_atom_t two = 0);
170 void setNetWmState(Qt::WindowFlags
flags);
171 void setNetWmState(Qt::WindowStates
state);
172 void setNetWmStateOnUnmappedWindow();
173 NetWmStates netWmStates();
175 void setMotifWmHints(Qt::WindowFlags
flags);
177 void setTransparentForMouseEvents(
bool transparent);
178 void updateDoesNotAcceptFocus(
bool doesNotAcceptFocus);
182 void handleXEmbedMessage(
const xcb_client_message_event_t *
event);
187 bool relayFocusToModalWindow()
const;
192 int detail, Qt::KeyboardModifiers
modifiers, xcb_timestamp_t timestamp,
196 int detail, Qt::KeyboardModifiers
modifiers, xcb_timestamp_t timestamp,
200 Qt::KeyboardModifiers
modifiers, xcb_timestamp_t timestamp,
209 xcb_window_t m_window = 0;
213 bool m_imageRgbSwap =
false;
216 xcb_sync_counter_t m_syncCounter = 0;
220 bool m_mapped =
false;
221 bool m_transparent =
false;
222 bool m_deferredActivation =
false;
223 bool m_embedded =
false;
224 bool m_alertState =
false;
225 bool m_minimized =
false;
226 bool m_trayIconWindow =
false;
227 xcb_window_t m_netWmUserTimeWindow = XCB_NONE;
231 mutable bool m_dirtyFrameMargins =
false;
239 xcb_visualid_t m_visualId = 0;
246 SyncAndConfigureReceived
251 int m_swapInterval = -1;
255 RecreationReasons m_recreationReasons = RecreationNotNeeded;
Type
This enum type defines the valid event types in Qt.
The QIcon class provides scalable icons in different modes and states.
Format
The following image formats are available in Qt.
@ Format_ARGB32_Premultiplied
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QRegion class specifies a clip region for a painter.
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool isForeignWindow() const override
QXcbForeignWindow(QWindow *window, WId nativeHandle)
virtual void handleConfigureNotifyEvent(const xcb_configure_notify_event_t *)
virtual void handleUnmapNotifyEvent(const xcb_unmap_notify_event_t *)
virtual void handleXIMouseEvent(xcb_ge_event_t *, Qt::MouseEventSource=Qt::MouseEventNotSynthesized)
virtual void handleButtonPressEvent(const xcb_button_press_event_t *)
virtual void handleEnterNotifyEvent(const xcb_enter_notify_event_t *)
virtual void handleMapNotifyEvent(const xcb_map_notify_event_t *)
virtual void handleClientMessageEvent(const xcb_client_message_event_t *)
virtual void handleXIEnterLeave(xcb_ge_event_t *)
virtual void handleMotionNotifyEvent(const xcb_motion_notify_event_t *)
virtual void handleLeaveNotifyEvent(const xcb_leave_notify_event_t *)
virtual void handleButtonReleaseEvent(const xcb_button_release_event_t *)
virtual void handleExposeEvent(const xcb_expose_event_t *)
virtual void handleFocusOutEvent(const xcb_focus_out_event_t *)
virtual void handleFocusInEvent(const xcb_focus_in_event_t *)
virtual void handlePropertyNotifyEvent(const xcb_property_notify_event_t *)
virtual bool handleNativeEvent(xcb_generic_event_t *)
virtual QXcbWindow * toWindow()
xcb_window_t xcb_window() const
QPoint lastPointerPosition() const
void clearSyncWindowRequest()
void setWindowType(WindowTypes windowTypes) override
QImage::Format imageFormat() const
void setSwapInterval(int swapInterval)
xcb_sync_int64_t m_syncValue
bool imageNeedsRgbSwap() const
QPoint m_lastPointerPosition
QPoint m_lastPointerGlobalPosition
static bool isTrayIconWindow(QWindow *window)
bool isAlertState() const override
Reimplement this method return whether the window is in an alert state.
QPoint lastPointerGlobalPosition() const
virtual void resolveFormat(const QSurfaceFormat &format)
EGLImageKHR int int EGLuint64KHR * modifiers
Combined button and popup list for selecting options.
@ MouseEventNotSynthesized
#define Q_DECLARE_FLAGS(Flags, Enum)
GLenum GLuint GLint level
GLsizei GLenum GLenum * types
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLuint GLsizei const GLchar * message
GLint GLsizei GLsizei GLenum format
GLsizei GLsizei GLchar * source
static QT_BEGIN_NAMESPACE QString windowTitle(HWND hwnd)
QList< xcb_rectangle_t > qRegionToXcbRectangleList(const QRegion ®ion)
QFuture< QSet< QChar > > set
[10]
file setParent(multiPart)