[190] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
| 2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/include/qwindowdefs.h:1 -->
|
---|
| 3 | <html>
|
---|
| 4 | <head>
|
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
| 6 | <title>qwindowdefs.h Include File</title>
|
---|
| 7 | <style type="text/css"><!--
|
---|
| 8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
| 9 | a:link { color: #004faf; text-decoration: none }
|
---|
| 10 | a:visited { color: #672967; text-decoration: none }
|
---|
| 11 | body { background: #ffffff; color: black; }
|
---|
| 12 | --></style>
|
---|
| 13 | </head>
|
---|
| 14 | <body>
|
---|
| 15 |
|
---|
| 16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
| 17 | <tr bgcolor="#E5E5E5">
|
---|
| 18 | <td valign=center>
|
---|
| 19 | <a href="index.html">
|
---|
| 20 | <font color="#004faf">Home</font></a>
|
---|
| 21 | | <a href="classes.html">
|
---|
| 22 | <font color="#004faf">All Classes</font></a>
|
---|
| 23 | | <a href="mainclasses.html">
|
---|
| 24 | <font color="#004faf">Main Classes</font></a>
|
---|
| 25 | | <a href="annotated.html">
|
---|
| 26 | <font color="#004faf">Annotated</font></a>
|
---|
| 27 | | <a href="groups.html">
|
---|
| 28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
| 29 | | <a href="functions.html">
|
---|
| 30 | <font color="#004faf">Functions</font></a>
|
---|
| 31 | </td>
|
---|
| 32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>qwindowdefs.h</h1>
|
---|
| 33 |
|
---|
| 34 | <p>This is the verbatim text of the qwindowdefs.h include file. It is provided only for illustration; the copyright remains with Trolltech.
|
---|
| 35 | <hr>
|
---|
| 36 | <pre>
|
---|
| 37 | /****************************************************************************
|
---|
| 38 | ** $Id: qwindowdefs-h.html 2051 2007-02-21 10:04:20Z chehrlic $
|
---|
| 39 | **
|
---|
| 40 | ** Definition of general window system dependent functions, types and
|
---|
| 41 | ** constants
|
---|
| 42 | **
|
---|
| 43 | ** Created : 931029
|
---|
| 44 | **
|
---|
| 45 | ** Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.
|
---|
| 46 | **
|
---|
| 47 | ** This file is part of the kernel module of the Qt GUI Toolkit.
|
---|
| 48 | **
|
---|
| 49 | ** This file may be distributed under the terms of the Q Public License
|
---|
| 50 | ** as defined by Trolltech ASA of Norway and appearing in the file
|
---|
| 51 | ** LICENSE.QPL included in the packaging of this file.
|
---|
| 52 | **
|
---|
| 53 | ** This file may be distributed and/or modified under the terms of the
|
---|
| 54 | ** GNU General Public License version 2 as published by the Free Software
|
---|
| 55 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
---|
| 56 | ** packaging of this file.
|
---|
| 57 | **
|
---|
| 58 | ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
|
---|
| 59 | ** licenses may use this file in accordance with the Qt Commercial License
|
---|
| 60 | ** Agreement provided with the Software.
|
---|
| 61 | **
|
---|
| 62 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
---|
| 63 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
---|
| 64 | **
|
---|
| 65 | ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
|
---|
| 66 | ** information about Qt Commercial License Agreements.
|
---|
| 67 | ** See http://www.trolltech.com/qpl/ for QPL licensing information.
|
---|
| 68 | ** See http://www.trolltech.com/gpl/ for GPL licensing information.
|
---|
| 69 | **
|
---|
| 70 | ** Contact info@trolltech.com if any conditions of this licensing are
|
---|
| 71 | ** not clear to you.
|
---|
| 72 | **
|
---|
| 73 | **********************************************************************/
|
---|
| 74 |
|
---|
| 75 | #ifndef QWINDOWDEFS_H
|
---|
| 76 | #define QWINDOWDEFS_H
|
---|
| 77 |
|
---|
| 78 | #ifndef QT_H
|
---|
| 79 | #include "qobjectdefs.h"
|
---|
| 80 | #include "qstring.h"
|
---|
| 81 | #include "qnamespace.h"
|
---|
| 82 | #endif // QT_H
|
---|
| 83 |
|
---|
| 84 | // Class forward definitions
|
---|
| 85 |
|
---|
| 86 | class QPaintDevice;
|
---|
| 87 | class QPaintDeviceMetrics;
|
---|
| 88 | class QWidget;
|
---|
| 89 | class QWidgetMapper;
|
---|
| 90 | class QDialog;
|
---|
| 91 | class QColor;
|
---|
| 92 | class QColorGroup;
|
---|
| 93 | class QPalette;
|
---|
| 94 | class QCursor;
|
---|
| 95 | class QPoint;
|
---|
| 96 | class QSize;
|
---|
| 97 | class QRect;
|
---|
| 98 | class QPointArray;
|
---|
| 99 | class QPainter;
|
---|
| 100 | class QRegion;
|
---|
| 101 | class QFont;
|
---|
| 102 | class QFontMetrics;
|
---|
| 103 | class QFontInfo;
|
---|
| 104 | class QPen;
|
---|
| 105 | class QBrush;
|
---|
| 106 | class QWMatrix;
|
---|
| 107 | class QPixmap;
|
---|
| 108 | class QBitmap;
|
---|
| 109 | class QMovie;
|
---|
| 110 | class QImage;
|
---|
| 111 | class QImageIO;
|
---|
| 112 | class QPicture;
|
---|
| 113 | class QPrinter;
|
---|
| 114 | class QAccel;
|
---|
| 115 | class QTimer;
|
---|
| 116 | class QTime;
|
---|
| 117 | class QClipboard;
|
---|
| 118 |
|
---|
| 119 |
|
---|
| 120 | // Widget list (defined in qwidgetlist.h)
|
---|
| 121 |
|
---|
| 122 | class QWidgetList;
|
---|
| 123 | class QWidgetListIt;
|
---|
| 124 |
|
---|
| 125 |
|
---|
| 126 | // Window system dependent definitions
|
---|
| 127 |
|
---|
| 128 | #if defined(Q_WS_MAC)
|
---|
| 129 | #if QT_MACOSX_VERSION < 0x1020
|
---|
| 130 | typedef struct OpaqueEventLoopTimerRef* EventLoopTimerRef;
|
---|
| 131 | typedef struct OpaqueMenuHandle *MenuRef;
|
---|
| 132 | #else
|
---|
| 133 | typedef struct __EventLoopTimer* EventLoopTimerRef;
|
---|
| 134 | typedef struct OpaqueMenuRef* MenuRef;
|
---|
| 135 | #endif
|
---|
| 136 |
|
---|
| 137 | #ifndef Q_WS_MACX
|
---|
| 138 | typedef struct CGContext *CGContextRef;
|
---|
| 139 | #endif
|
---|
| 140 | typedef struct OpaqueWindowGroupRef *WindowGroupRef;
|
---|
| 141 | typedef struct OpaqueGrafPtr *CGrafPtr;
|
---|
| 142 | typedef struct OpaquePMPrintSession *PMPrintSession;
|
---|
| 143 | typedef struct OpaquePMPrintSettings *PMPrintSettings;
|
---|
| 144 | typedef struct OpaquePMPageFormat *PMPageFormat;
|
---|
| 145 | typedef struct Point Point;
|
---|
| 146 | typedef struct OpaqueEventHandlerRef* EventHandlerRef;
|
---|
| 147 | typedef struct OpaqueEventHandlerCallRef* EventHandlerCallRef;
|
---|
| 148 | typedef struct OpaqueEventRef* EventRef;
|
---|
| 149 | typedef long int OSStatus;
|
---|
| 150 | typedef struct OpaqueScrapRef *ScrapRef;
|
---|
| 151 | typedef struct OpaqueRgnHandle *RgnHandle;
|
---|
| 152 | typedef struct OpaqueWindowPtr *WindowPtr;
|
---|
| 153 | typedef WindowPtr WindowRef;
|
---|
| 154 | typedef struct OpaqueGrafPtr *GWorldPtr;
|
---|
| 155 | typedef GWorldPtr GrafPtr;
|
---|
| 156 | typedef struct GDevice **GDHandle;
|
---|
| 157 | typedef struct ColorTable ColorTable;
|
---|
| 158 | typedef struct BitMap BitMap;
|
---|
| 159 | typedef struct EventRecord EventRecord;
|
---|
| 160 | typedef void * MSG;
|
---|
| 161 | typedef int WId;
|
---|
| 162 | typedef struct AEDesc AppleEvent;
|
---|
| 163 |
|
---|
| 164 | #endif // Q_WS_MAC
|
---|
| 165 |
|
---|
| 166 | #if defined(Q_WS_WIN)
|
---|
| 167 | #include "qwindowdefs_win.h"
|
---|
| 168 | #endif // Q_WS_WIN
|
---|
| 169 |
|
---|
| 170 |
|
---|
| 171 | #if defined(Q_OS_TEMP)
|
---|
| 172 | #include "qwinfunctions_wce.h"
|
---|
| 173 | #endif // Q_OS_TEMP
|
---|
| 174 |
|
---|
| 175 | #if defined(Q_WS_X11)
|
---|
| 176 |
|
---|
| 177 | typedef struct _XDisplay Display;
|
---|
| 178 | typedef union _XEvent XEvent;
|
---|
| 179 | typedef struct _XGC *GC;
|
---|
| 180 | typedef struct _XRegion *Region;
|
---|
| 181 | typedef unsigned long WId;
|
---|
| 182 |
|
---|
| 183 | Q_EXPORT Display *qt_xdisplay();
|
---|
| 184 | Q_EXPORT int qt_xscreen();
|
---|
| 185 | Q_EXPORT WId qt_xrootwin(); // ### REMOVE 4.0
|
---|
| 186 | Q_EXPORT WId qt_xrootwin( int scrn ); // ### 4.0 add default arg of -1
|
---|
| 187 | Q_EXPORT GC qt_xget_readonly_gc( int scrn, bool monochrome );
|
---|
| 188 | Q_EXPORT GC qt_xget_temp_gc( int scrn, bool monochrome );
|
---|
| 189 |
|
---|
| 190 | Q_EXPORT const char *qAppClass(); // get application class
|
---|
| 191 |
|
---|
| 192 | #endif // Q_WS_X11
|
---|
| 193 |
|
---|
| 194 | #if defined(Q_WS_QWS)
|
---|
| 195 |
|
---|
| 196 | typedef unsigned long WId;
|
---|
| 197 | struct QWSEvent;
|
---|
| 198 | class QGfx;
|
---|
| 199 |
|
---|
| 200 | #endif // Q_WS_QWS
|
---|
| 201 |
|
---|
| 202 | class QApplication;
|
---|
| 203 |
|
---|
| 204 | #if defined(NEEDS_QMAIN)
|
---|
| 205 | #define main qMain
|
---|
| 206 | #endif
|
---|
| 207 |
|
---|
| 208 | // Global platform-independent types and functions
|
---|
| 209 |
|
---|
| 210 | typedef Q_INT32 QCOORD; // coordinate type
|
---|
| 211 | const QCOORD QCOORD_MAX = 2147483647;
|
---|
| 212 | const QCOORD QCOORD_MIN = -QCOORD_MAX - 1;
|
---|
| 213 |
|
---|
| 214 | typedef unsigned int QRgb; // RGB triplet
|
---|
| 215 |
|
---|
| 216 | Q_EXPORT const char *qAppName(); // get application name
|
---|
| 217 |
|
---|
| 218 | // Misc functions
|
---|
| 219 |
|
---|
| 220 | typedef void (*QtCleanUpFunction)();
|
---|
| 221 | Q_EXPORT void qAddPostRoutine( QtCleanUpFunction );
|
---|
| 222 | Q_EXPORT void qRemovePostRoutine( QtCleanUpFunction );
|
---|
| 223 |
|
---|
| 224 | #if !defined(QT_CLEAN_NAMESPACE)
|
---|
| 225 | // source compatibility with Qt 2.x
|
---|
| 226 | typedef QtCleanUpFunction Q_CleanUpFunction;
|
---|
| 227 | #endif
|
---|
| 228 |
|
---|
| 229 |
|
---|
| 230 | #endif // QWINDOWDEFS_H
|
---|
| 231 | </pre>
|
---|
| 232 | <!-- eof -->
|
---|
| 233 | <p><address><hr><div align=center>
|
---|
| 234 | <table width=100% cellspacing=0 border=0><tr>
|
---|
| 235 | <td>Copyright © 2007
|
---|
| 236 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
| 237 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
| 238 | </table></div></address></body>
|
---|
| 239 | </html>
|
---|