Qt 4.8
|
#include "qevent.h"
#include "qwidget.h"
#include "qdesktopwidget.h"
#include "qapplication.h"
#include "qapplication_p.h"
#include "qabstracteventdispatcher.h"
#include "qnamespace.h"
#include "qpainter.h"
#include "qbitmap.h"
#include "qlayout.h"
#include "qtextcodec.h"
#include "qelapsedtimer.h"
#include "qcursor.h"
#include "qstack.h"
#include "qcolormap.h"
#include "qdebug.h"
#include "qmenu.h"
#include "private/qmenu_p.h"
#include "private/qbackingstore_p.h"
#include "private/qwindowsurface_x11_p.h"
#include <private/qpixmap_x11_p.h>
#include <private/qpaintengine_x11_p.h>
#include "qt_x11_p.h"
#include "qx11info_x11.h"
#include <stdlib.h>
#include "qinputcontext.h"
#include "qinputcontextfactory.h"
#include "qwidget_p.h"
Go to the source code of this file.
Classes | |
struct | QtMWMHints |
struct | QX11WindowAttributes |
Macros | |
#define | WRECT_MAX 8191 |
#define | XCOORD_MAX 16383 |
Enumerations | |
enum | { MWM_HINTS_FUNCTIONS = (1L << 0), MWM_FUNC_ALL = (1L << 0), MWM_FUNC_RESIZE = (1L << 1), MWM_FUNC_MOVE = (1L << 2), MWM_FUNC_MINIMIZE = (1L << 3), MWM_FUNC_MAXIMIZE = (1L << 4), MWM_FUNC_CLOSE = (1L << 5), MWM_HINTS_DECORATIONS = (1L << 1), MWM_DECOR_ALL = (1L << 0), MWM_DECOR_BORDER = (1L << 1), MWM_DECOR_RESIZEH = (1L << 2), MWM_DECOR_TITLE = (1L << 3), MWM_DECOR_MENU = (1L << 4), MWM_DECOR_MINIMIZE = (1L << 5), MWM_DECOR_MAXIMIZE = (1L << 6), MWM_HINTS_INPUT_MODE = (1L << 2), MWM_INPUT_MODELESS = 0L, MWM_INPUT_PRIMARY_APPLICATION_MODAL = 1L, MWM_INPUT_FULL_APPLICATION_MODAL = 3L } |
Functions | |
static void | create_wm_client_leader () |
static void | do_size_hints (QWidget *widget, QWExtra *x) |
static QtMWMHints | GetMWMHints (Display *display, Window window) |
static QVector< Atom > | getNetWmState (QWidget *w) |
static bool | isTransient (const QWidget *w) |
static XTextProperty * | qstring_to_xtp (const QString &s) |
void | qt_change_net_wm_state (const QWidget *w, bool set, Atom one, Atom two=0) |
static void | qt_insert_sip (QWidget *scrolled_widget, int dx, int dy) |
void | qt_net_remove_user_time (QWidget *tlw) |
void | qt_net_update_user_time (QWidget *tlw, unsigned long timestamp) |
bool | qt_nograb () |
static int | qt_sip_count (QWidget *scrolled_widget) |
void | qt_x11_enforce_cursor (QWidget *w, bool force) |
Update the X11 cursor of the widget w. More... | |
Q_GUI_EXPORT void | qt_x11_enforce_cursor (QWidget *w) |
void | qt_x11_getX11InfoForWindow (QX11Info *xinfo, const XWindowAttributes &a) |
void | qt_x11_getX11InfoForWindow (QX11Info *xinfo, const QX11WindowAttributes &att) |
static void | qt_x11_recreateNativeWidgetsRecursive (QWidget *widget) |
static void | qt_x11_recreateWidget (QWidget *widget) |
void | qt_x11_wait_for_window_manager (QWidget *w, bool sendPostedEvents) |
Q_GUI_EXPORT void | qt_x11_wait_for_window_manager (QWidget *w) |
Window | qt_XCreateSimpleWindow (const QWidget *creator, Display *display, Window parent, int x, int y, uint w, uint h, int borderwidth, ulong border, ulong background) |
Window | qt_XCreateWindow (const QWidget *creator, Display *display, Window parent, int x, int y, uint w, uint h, int borderwidth, int depth, uint windowclass, Visual *visual, ulong valuemask, XSetWindowAttributes *attributes) |
void | qt_XDestroyWindow (const QWidget *destroyer, Display *display, Window window) |
static void | SetMWMHints (Display *display, Window window, const QtMWMHints &mwmhints) |
Variables | |
int | qt_x11_create_desktop_on_screen = -1 |
const uint | stdDesktopEventMask |
const uint | stdWidgetEventMask |
#define WRECT_MAX 8191 |
Definition at line 87 of file qwidget_x11.cpp.
Referenced by do_size_hints().
#define XCOORD_MAX 16383 |
Definition at line 86 of file qwidget_x11.cpp.
Referenced by do_size_hints(), and getNetWmState().
anonymous enum |
Definition at line 110 of file qwidget_x11.cpp.
|
static |
Definition at line 266 of file qwidget_x11.cpp.
Referenced by getNetWmState().
Definition at line 2311 of file qwidget_x11.cpp.
Referenced by isTransient(), and qstring_to_xtp().
|
static |
Definition at line 138 of file qwidget_x11.cpp.
Referenced by do_size_hints(), and qstring_to_xtp().
Definition at line 445 of file qwidget_x11.cpp.
Referenced by qstring_to_xtp(), and QXlibWindow::visual().
|
inlinestatic |
Definition at line 178 of file qwidget_x11.cpp.
Referenced by QWidgetPrivate::isBackgroundInherited(), and qstring_to_xtp().
|
static |
Definition at line 1408 of file qwidget_x11.cpp.
void qt_change_net_wm_state | ( | const QWidget * | w, |
bool | set, | ||
Atom | one, | ||
Atom | two = 0 |
||
) |
Definition at line 413 of file qwidget_x11.cpp.
Referenced by qstring_to_xtp(), and QApplication::syncX().
|
static |
Definition at line 235 of file qwidget_x11.cpp.
Referenced by do_size_hints().
void qt_net_remove_user_time | ( | QWidget * | tlw | ) |
Definition at line 1508 of file qapplication_x11.cpp.
Referenced by QWidgetPrivate::isBackgroundInherited(), and qt_net_update_user_time().
void qt_net_update_user_time | ( | QWidget * | tlw, |
unsigned long | timestamp | ||
) |
Definition at line 1520 of file qapplication_x11.cpp.
Referenced by qstring_to_xtp(), and QApplication::x11ProcessEvent().
bool qt_nograb | ( | ) |
Definition at line 482 of file qapplication_mac.mm.
Referenced by qJournalRecordProc(), qstring_to_xtp(), and qt_try_modal().
|
static |
Definition at line 253 of file qwidget_x11.cpp.
Referenced by do_size_hints().
void qt_x11_enforce_cursor | ( | QWidget * | w, |
bool | force | ||
) |
Update the X11 cursor of the widget w.
force is true if this function is called from dispatchEnterLeave, it means that the mouse is actually directly under this widget.
Definition at line 302 of file qwidget_x11.cpp.
Referenced by QApplicationPrivate::applyX11SpecificCommandLineArguments(), QApplicationPrivate::dispatchEnterLeave(), getNetWmState(), QWidgetPrivate::mapFromGlobal(), qt_x11_enforce_cursor(), and QWidgetPrivate::setEnabled_helper().
Q_GUI_EXPORT void qt_x11_enforce_cursor | ( | QWidget * | w | ) |
Definition at line 348 of file qwidget_x11.cpp.
void qt_x11_getX11InfoForWindow | ( | QX11Info * | xinfo, |
const XWindowAttributes & | a | ||
) |
Definition at line 437 of file qwidget_x11.cpp.
Referenced by getNetWmState(), and QX11PixmapData::transformed().
void qt_x11_getX11InfoForWindow | ( | QX11Info * | xinfo, |
const QX11WindowAttributes & | att | ||
) |
Definition at line 3114 of file qwidget_x11.cpp.
|
static |
Definition at line 986 of file qwidget_x11.cpp.
Referenced by QWidgetPrivate::x11UpdateIsOpaque().
|
static |
Definition at line 957 of file qwidget_x11.cpp.
Referenced by qt_x11_recreateNativeWidgetsRecursive().
void qt_x11_wait_for_window_manager | ( | QWidget * | w, |
bool | sendPostedEvents | ||
) |
Definition at line 353 of file qwidget_x11.cpp.
Referenced by QSplashScreen::finish(), qstring_to_xtp(), and qt_x11_wait_for_window_manager().
Q_GUI_EXPORT void qt_x11_wait_for_window_manager | ( | QWidget * | w | ) |
Definition at line 408 of file qwidget_x11.cpp.
Referenced by pixmapsAreEqual(), and QTest::qWaitForWindowShown().
Window qt_XCreateSimpleWindow | ( | const QWidget * | creator, |
Display * | display, | ||
Window | parent, | ||
int | x, | ||
int | y, | ||
uint | w, | ||
uint | h, | ||
int | borderwidth, | ||
ulong | border, | ||
ulong | background | ||
) |
Window qt_XCreateWindow | ( | const QWidget * | creator, |
Display * | display, | ||
Window | parent, | ||
int | x, | ||
int | y, | ||
uint | w, | ||
uint | h, | ||
int | borderwidth, | ||
int | depth, | ||
uint | windowclass, | ||
Visual * | visual, | ||
ulong | valuemask, | ||
XSetWindowAttributes * | attributes | ||
) |
Definition at line 73 of file qwidgetcreate_x11.cpp.
Referenced by getNetWmState(), and QWidgetPrivate::isBackgroundInherited().
|
static |
Definition at line 167 of file qwidget_x11.cpp.
Referenced by do_size_hints(), getNetWmState(), and qstring_to_xtp().
int qt_x11_create_desktop_on_screen = -1 |
Definition at line 99 of file qwidget_x11.cpp.
Referenced by getNetWmState(), and QDesktopWidgetPrivate::init().
const uint stdDesktopEventMask |
Definition at line 209 of file qwidget_x11.cpp.
const uint stdWidgetEventMask |
Definition at line 196 of file qwidget_x11.cpp.