Qt 4.8
|
#include <qxcbwindow.h>
Public Functions | |
uint | depth () const |
QImage::Format | format () const |
QPlatformGLContext * | glContext () const |
Reimplement to return the glContext associated with the window. More... | |
void | handleButtonPressEvent (const xcb_button_press_event_t *event) |
void | handleButtonReleaseEvent (const xcb_button_release_event_t *event) |
void | handleClientMessageEvent (const xcb_client_message_event_t *event) |
void | handleConfigureNotifyEvent (const xcb_configure_notify_event_t *event) |
void | handleEnterNotifyEvent (const xcb_enter_notify_event_t *event) |
void | handleExposeEvent (const xcb_expose_event_t *event) |
void | handleFocusInEvent (const xcb_focus_in_event_t *event) |
void | handleFocusOutEvent (const xcb_focus_out_event_t *event) |
void | handleLeaveNotifyEvent (const xcb_leave_notify_event_t *event) |
void | handleMotionNotifyEvent (const xcb_motion_notify_event_t *event) |
void | handleMouseEvent (xcb_button_t detail, uint16_t state, xcb_timestamp_t time, const QPoint &local, const QPoint &global) |
void | lower () |
Reimplement to be able to let Qt lower windows to the bottom of the desktop. More... | |
QXcbWindow (QWidget *tlw) | |
void | raise () |
Reimplement to be able to let Qt rais windows to the top of the desktop. More... | |
void | requestActivateWindow () |
Reimplement to let Qt be able to request activation/focus for a window. More... | |
void | setGeometry (const QRect &rect) |
This function is called by Qt whenever a window is moved or the window is resized. More... | |
void | setParent (const QPlatformWindow *window) |
This function is called to enable native child widgets in QPA. More... | |
void | setVisible (bool visible) |
Reimplemented in subclasses to show the surface if visible is true , and hide it if visible is false . More... | |
Qt::WindowFlags | setWindowFlags (Qt::WindowFlags flags) |
Requests setting the window flags of this surface to type. More... | |
void | setWindowTitle (const QString &title) |
Reimplement to set the window title to title. More... | |
void | updateSyncRequestCounter () |
xcb_window_t | window () const |
WId | winId () const |
Reimplement in subclasses to return a handle to the native window. More... | |
~QXcbWindow () | |
Public Functions inherited from QXcbObject | |
xcb_atom_t | atom (QXcbAtom::Atom atom) const |
QXcbConnection * | connection () const |
QXcbObject (QXcbConnection *connection=0) | |
void | setConnection (QXcbConnection *connection) |
xcb_connection_t * | xcb_connection () const |
Public Functions inherited from QPlatformWindow | |
virtual QRect | geometry () const |
Returnes the current geometry of a window. More... | |
QPlatformWindow (QWidget *tlw) | |
Constructs a platform window with the given top level widget. More... | |
virtual void | setOpacity (qreal level) |
Reimplement to be able to let Qt set the opacity level of a window. More... | |
QWidget * | widget () const |
Returnes the widget which belongs to the QPlatformWindow. More... | |
virtual Qt::WindowFlags | windowFlags () const |
Returns the effective window flags for this surface. More... | |
virtual | ~QPlatformWindow () |
Virtual destructor does not delete its top level widget. More... | |
Private Functions | |
void | setNetWmWindowTypes (Qt::WindowFlags flags) |
Properties | |
QPlatformGLContext * | m_context |
uint | m_depth |
QImage::Format | m_format |
bool | m_hasReceivedSyncRequest |
QXcbScreen * | m_screen |
xcb_sync_counter_t | m_syncCounter |
xcb_sync_int64_t | m_syncValue |
xcb_window_t | m_window |
Additional Inherited Members | |
Protected Variables inherited from QPlatformWindow | |
QScopedPointer< QPlatformWindowPrivate > | d_ptr |
Definition at line 56 of file qxcbwindow.h.
QXcbWindow::QXcbWindow | ( | QWidget * | tlw | ) |
Definition at line 113 of file qxcbwindow.cpp.
QXcbWindow::~QXcbWindow | ( | ) |
Definition at line 256 of file qxcbwindow.cpp.
|
inline |
|
inline |
|
virtual |
Reimplement to return the glContext associated with the window.
Reimplemented from QPlatformWindow.
Definition at line 524 of file qxcbwindow.cpp.
void QXcbWindow::handleButtonPressEvent | ( | const xcb_button_press_event_t * | event | ) |
Definition at line 637 of file qxcbwindow.cpp.
Referenced by format().
void QXcbWindow::handleButtonReleaseEvent | ( | const xcb_button_release_event_t * | event | ) |
Definition at line 659 of file qxcbwindow.cpp.
Referenced by format().
void QXcbWindow::handleClientMessageEvent | ( | const xcb_client_message_event_t * | event | ) |
Definition at line 563 of file qxcbwindow.cpp.
Referenced by format().
void QXcbWindow::handleConfigureNotifyEvent | ( | const xcb_configure_notify_event_t * | event | ) |
Definition at line 587 of file qxcbwindow.cpp.
Referenced by format().
void QXcbWindow::handleEnterNotifyEvent | ( | const xcb_enter_notify_event_t * | event | ) |
Definition at line 685 of file qxcbwindow.cpp.
Referenced by format().
void QXcbWindow::handleExposeEvent | ( | const xcb_expose_event_t * | event | ) |
Definition at line 553 of file qxcbwindow.cpp.
Referenced by format().
void QXcbWindow::handleFocusInEvent | ( | const xcb_focus_in_event_t * | event | ) |
Definition at line 695 of file qxcbwindow.cpp.
Referenced by format().
void QXcbWindow::handleFocusOutEvent | ( | const xcb_focus_out_event_t * | event | ) |
Definition at line 700 of file qxcbwindow.cpp.
Referenced by format().
void QXcbWindow::handleLeaveNotifyEvent | ( | const xcb_leave_notify_event_t * | event | ) |
Definition at line 690 of file qxcbwindow.cpp.
Referenced by format().
void QXcbWindow::handleMotionNotifyEvent | ( | const xcb_motion_notify_event_t * | event | ) |
Definition at line 667 of file qxcbwindow.cpp.
Referenced by format().
void QXcbWindow::handleMouseEvent | ( | xcb_button_t | detail, |
uint16_t | state, | ||
xcb_timestamp_t | time, | ||
const QPoint & | local, | ||
const QPoint & | global | ||
) |
Definition at line 675 of file qxcbwindow.cpp.
Referenced by format(), handleButtonPressEvent(), handleButtonReleaseEvent(), and handleMotionNotifyEvent().
|
virtual |
Reimplement to be able to let Qt lower windows to the bottom of the desktop.
Reimplemented from QPlatformWindow.
Definition at line 511 of file qxcbwindow.cpp.
|
virtual |
Reimplement to be able to let Qt rais windows to the top of the desktop.
Reimplemented from QPlatformWindow.
Definition at line 504 of file qxcbwindow.cpp.
|
virtual |
Reimplement to let Qt be able to request activation/focus for a window.
Some window systems will probably not have callbacks for this functionality, and then calling QWindowSystemInterface::handleWindowActivated(QWidget *w) would be sufficient.
If the window system has some event handling/callbacks then call QWindowSystemInterface::handleWindowActivated(QWidget *w) when the window system gives the notification.
Default implementation calls QWindowSystem::handleWindowActivated(QWidget *w)
Reimplemented from QPlatformWindow.
Definition at line 518 of file qxcbwindow.cpp.
|
virtual |
This function is called by Qt whenever a window is moved or the window is resized.
The resize can happen programatically(from ie. user application) or by the window manager. This means that there is no need to call this function specifically from the window manager callback, instead call QWindowSystemInterface::handleGeometryChange(QWidget *w, const QRect &newRect);
Reimplemented from QPlatformWindow.
Definition at line 264 of file qxcbwindow.cpp.
|
private |
Definition at line 444 of file qxcbwindow.cpp.
Referenced by format(), and setWindowFlags().
|
virtual |
This function is called to enable native child widgets in QPA.
It is common not to support this feature in Window systems, but can be faked. When this function is called all geometry of this platform window will be relative to the parent.
Reimplemented from QPlatformWindow.
Definition at line 485 of file qxcbwindow.cpp.
|
virtual |
Reimplemented in subclasses to show the surface if visible is true
, and hide it if visible is false
.
Reimplemented from QPlatformWindow.
Definition at line 274 of file qxcbwindow.cpp.
|
virtual |
Requests setting the window flags of this surface to type.
Returns the actual flags set.
Reimplemented from QPlatformWindow.
Definition at line 335 of file qxcbwindow.cpp.
|
virtual |
Reimplement to set the window title to title.
Reimplemented from QPlatformWindow.
Definition at line 491 of file qxcbwindow.cpp.
void QXcbWindow::updateSyncRequestCounter | ( | ) |
Definition at line 705 of file qxcbwindow.cpp.
Referenced by QXcbWindowSurface::flush(), and format().
|
inline |
Definition at line 77 of file qxcbwindow.h.
Referenced by QXcbWindowSurface::flush(), setParent(), and QDri2ContextPrivate::xcbWindow().
|
virtual |
Reimplement in subclasses to return a handle to the native window.
Reimplemented from QPlatformWindow.
Definition at line 480 of file qxcbwindow.cpp.
|
private |
Definition at line 103 of file qxcbwindow.h.
Referenced by glContext(), handleConfigureNotifyEvent(), and ~QXcbWindow().
|
private |
Definition at line 105 of file qxcbwindow.h.
Referenced by depth(), and QXcbWindow().
|
private |
Definition at line 106 of file qxcbwindow.h.
Referenced by format(), and QXcbWindow().
|
private |
Definition at line 111 of file qxcbwindow.h.
Referenced by handleClientMessageEvent().
|
private |
Definition at line 100 of file qxcbwindow.h.
Referenced by glContext(), handleClientMessageEvent(), QXcbWindow(), setVisible(), updateSyncRequestCounter(), and ~QXcbWindow().
|
private |
Definition at line 109 of file qxcbwindow.h.
Referenced by QXcbWindow(), updateSyncRequestCounter(), and ~QXcbWindow().
|
private |
Definition at line 108 of file qxcbwindow.h.
Referenced by handleClientMessageEvent(), QXcbWindow(), and updateSyncRequestCounter().
|
private |
Definition at line 102 of file qxcbwindow.h.
Referenced by glContext(), lower(), QXcbWindow(), raise(), requestActivateWindow(), setGeometry(), setNetWmWindowTypes(), setVisible(), setWindowFlags(), setWindowTitle(), window(), winId(), and ~QXcbWindow().