Qt 4.8
|
#include <qxlibwindow.h>
Public Functions | |
uint | depth () const |
QImage::Format | format () const |
QPlatformGLContext * | glContext () const |
Reimplement to return the glContext associated with the window. More... | |
GC | graphicsContext () const |
void | handleCloseEvent () |
void | handleEnterEvent () |
void | handleFocusInEvent () |
void | handleFocusOutEvent () |
void | handleLeaveEvent () |
void | handleMouseEvent (QEvent::Type, XButtonEvent *ev) |
void | lower () |
Reimplement to be able to let Qt lower windows to the bottom of the desktop. More... | |
void | mousePressEvent (XButtonEvent *) |
void | paintEvent () |
QXlibWindow (QWidget *window) | |
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 | resizeEvent (XConfigureEvent *configure_event) |
void | setCursor (const Cursor &cursor) |
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 type) |
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... | |
Visual * | visual () const |
Qt::WindowFlags | windowFlags () const |
Returns the effective window flags for this surface. More... | |
WId | winId () const |
Reimplement in subclasses to return a handle to the native window. More... | |
Window | xWindow () const |
~QXlibWindow () | |
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 | ~QPlatformWindow () |
Virtual destructor does not delete its top level widget. More... | |
Protected Functions | |
void | doSizeHints () |
QXlibMWMHints | getMWMHints () const |
QVector< Atom > | getNetWmState () const |
void | setMWMHints (const QXlibMWMHints &mwmhints) |
Private Functions | |
QPlatformWindowFormat | correctColorBuffers (const QPlatformWindowFormat &windowFormat) const |
GC | createGC () |
Properties | |
GC | gc |
uint | mDepth |
QImage::Format | mFormat |
QPlatformGLContext * | mGLContext |
QXlibScreen * | mScreen |
Visual * | mVisual |
Qt::WindowFlags | mWindowFlags |
Window | x_window |
Additional Inherited Members | |
Protected Variables inherited from QPlatformWindow | |
QScopedPointer< QPlatformWindowPrivate > | d_ptr |
Definition at line 86 of file qxlibwindow.h.
QXlibWindow::QXlibWindow | ( | QWidget * | window | ) |
defined(QT_OPENGL_ES_2)
defined(QT_NO_OPENGL)
Definition at line 74 of file qxlibwindow.cpp.
QXlibWindow::~QXlibWindow | ( | ) |
Definition at line 163 of file qxlibwindow.cpp.
|
private |
Definition at line 726 of file qxlibwindow.cpp.
Referenced by glContext(), and QXlibWindow().
|
private |
Definition at line 305 of file qxlibwindow.cpp.
Referenced by QXlibWindow().
|
inline |
Definition at line 125 of file qxlibwindow.h.
Referenced by QXlibWindowSurface::flush(), and QXlibWindowSurface::resizeShmImage().
|
protected |
Definition at line 707 of file qxlibwindow.cpp.
Referenced by setVisible().
|
inline |
Definition at line 126 of file qxlibwindow.h.
Referenced by getMWMHints(), and QXlibWindowSurface::resizeShmImage().
|
protected |
Definition at line 373 of file qxlibwindow.cpp.
|
protected |
Definition at line 428 of file qxlibwindow.cpp.
Referenced by setWindowFlags().
|
virtual |
Reimplement to return the glContext associated with the window.
Reimplemented from QPlatformWindow.
Definition at line 669 of file qxlibwindow.cpp.
GC QXlibWindow::graphicsContext | ( | ) | const |
Definition at line 702 of file qxlibwindow.cpp.
Referenced by QXlibWindowSurface::flush().
void QXlibWindow::handleCloseEvent | ( | ) |
Definition at line 232 of file qxlibwindow.cpp.
Referenced by QXlibScreen::handleEvent().
void QXlibWindow::handleEnterEvent | ( | ) |
Definition at line 238 of file qxlibwindow.cpp.
Referenced by QXlibScreen::handleEvent().
void QXlibWindow::handleFocusInEvent | ( | ) |
Definition at line 248 of file qxlibwindow.cpp.
Referenced by QXlibScreen::handleEvent().
void QXlibWindow::handleFocusOutEvent | ( | ) |
Definition at line 253 of file qxlibwindow.cpp.
Referenced by QXlibScreen::handleEvent().
void QXlibWindow::handleLeaveEvent | ( | ) |
Definition at line 243 of file qxlibwindow.cpp.
Referenced by QXlibScreen::handleEvent().
void QXlibWindow::handleMouseEvent | ( | QEvent::Type | type, |
XButtonEvent * | ev | ||
) |
Definition at line 189 of file qxlibwindow.cpp.
Referenced by QXlibScreen::handleEvent(), and mousePressEvent().
|
virtual |
Reimplement to be able to let Qt lower windows to the bottom of the desktop.
Reimplemented from QPlatformWindow.
Definition at line 288 of file qxlibwindow.cpp.
void QXlibWindow::mousePressEvent | ( | XButtonEvent * | e | ) |
Definition at line 350 of file qxlibwindow.cpp.
Referenced by QXlibScreen::handleEvent().
void QXlibWindow::paintEvent | ( | ) |
Definition at line 316 of file qxlibwindow.cpp.
Referenced by QXlibScreen::handleEvent().
|
virtual |
Reimplement to be able to let Qt rais windows to the top of the desktop.
Reimplemented from QPlatformWindow.
Definition at line 283 of file qxlibwindow.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 326 of file qxlibwindow.cpp.
void QXlibWindow::resizeEvent | ( | XConfigureEvent * | configure_event | ) |
Definition at line 331 of file qxlibwindow.cpp.
Referenced by QXlibScreen::handleEvent().
void QXlibWindow::setCursor | ( | const Cursor & | cursor | ) |
|
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 260 of file qxlibwindow.cpp.
|
protected |
Definition at line 403 of file qxlibwindow.cpp.
Referenced by 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 277 of file qxlibwindow.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 637 of file qxlibwindow.cpp.
|
virtual |
Requests setting the window flags of this surface to type.
Returns the actual flags set.
Reimplemented from QPlatformWindow.
Definition at line 464 of file qxlibwindow.cpp.
|
virtual |
Reimplement to set the window title to title.
Reimplemented from QPlatformWindow.
Definition at line 293 of file qxlibwindow.cpp.
|
inline |
Definition at line 127 of file qxlibwindow.h.
Referenced by QXlibWindowSurface::flush(), and QXlibWindowSurface::resizeShmImage().
|
virtual |
Returns the effective window flags for this surface.
Reimplemented from QPlatformWindow.
Definition at line 267 of file qxlibwindow.cpp.
|
virtual |
Reimplement in subclasses to return a handle to the native window.
Reimplemented from QPlatformWindow.
Definition at line 272 of file qxlibwindow.cpp.
Window QXlibWindow::xWindow | ( | ) | const |
Definition at line 697 of file qxlibwindow.cpp.
Referenced by QXlibWindowSurface::flush().
|
private |
Definition at line 140 of file qxlibwindow.h.
Referenced by createGC(), graphicsContext(), QXlibWindow(), and ~QXlibWindow().
|
private |
Definition at line 142 of file qxlibwindow.h.
Referenced by QXlibWindow().
|
private |
Definition at line 143 of file qxlibwindow.h.
Referenced by QXlibWindow().
|
private |
Definition at line 148 of file qxlibwindow.h.
Referenced by glContext(), and ~QXlibWindow().
|
private |
Definition at line 149 of file qxlibwindow.h.
Referenced by correctColorBuffers(), createGC(), doSizeHints(), getMWMHints(), getNetWmState(), glContext(), handleMouseEvent(), lower(), QXlibWindow(), raise(), requestActivateWindow(), setCursor(), setGeometry(), setMWMHints(), setParent(), setVisible(), setWindowFlags(), setWindowTitle(), and ~QXlibWindow().
|
private |
Definition at line 144 of file qxlibwindow.h.
Referenced by QXlibWindow().
|
private |
Definition at line 150 of file qxlibwindow.h.
Referenced by setWindowFlags(), and windowFlags().
|
private |
Definition at line 139 of file qxlibwindow.h.
Referenced by createGC(), doSizeHints(), getMWMHints(), getNetWmState(), glContext(), lower(), QXlibWindow(), raise(), requestActivateWindow(), resizeEvent(), setCursor(), setGeometry(), setMWMHints(), setParent(), setVisible(), setWindowFlags(), setWindowTitle(), winId(), xWindow(), and ~QXlibWindow().