source: trunk/doc/html/qwindowdefs-h.html

Last change on this file was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 7.0 KB
RevLine 
[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"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { 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&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;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&nbsp;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
86class QPaintDevice;
87class QPaintDeviceMetrics;
88class QWidget;
89class QWidgetMapper;
90class QDialog;
91class QColor;
92class QColorGroup;
93class QPalette;
94class QCursor;
95class QPoint;
96class QSize;
97class QRect;
98class QPointArray;
99class QPainter;
100class QRegion;
101class QFont;
102class QFontMetrics;
103class QFontInfo;
104class QPen;
105class QBrush;
106class QWMatrix;
107class QPixmap;
108class QBitmap;
109class QMovie;
110class QImage;
111class QImageIO;
112class QPicture;
113class QPrinter;
114class QAccel;
115class QTimer;
116class QTime;
117class QClipboard;
118
119
120// Widget list (defined in qwidgetlist.h)
121
122class QWidgetList;
123class QWidgetListIt;
124
125
126// Window system dependent definitions
127
128#if defined(Q_WS_MAC)
129#if QT_MACOSX_VERSION &lt; 0x1020
130typedef struct OpaqueEventLoopTimerRef* EventLoopTimerRef;
131typedef struct OpaqueMenuHandle *MenuRef;
132#else
133typedef struct __EventLoopTimer* EventLoopTimerRef;
134typedef struct OpaqueMenuRef* MenuRef;
135#endif
136
137#ifndef Q_WS_MACX
138typedef struct CGContext *CGContextRef;
139#endif
140typedef struct OpaqueWindowGroupRef *WindowGroupRef;
141typedef struct OpaqueGrafPtr *CGrafPtr;
142typedef struct OpaquePMPrintSession *PMPrintSession;
143typedef struct OpaquePMPrintSettings *PMPrintSettings;
144typedef struct OpaquePMPageFormat *PMPageFormat;
145typedef struct Point Point;
146typedef struct OpaqueEventHandlerRef* EventHandlerRef;
147typedef struct OpaqueEventHandlerCallRef* EventHandlerCallRef;
148typedef struct OpaqueEventRef* EventRef;
149typedef long int OSStatus;
150typedef struct OpaqueScrapRef *ScrapRef;
151typedef struct OpaqueRgnHandle *RgnHandle;
152typedef struct OpaqueWindowPtr *WindowPtr;
153typedef WindowPtr WindowRef;
154typedef struct OpaqueGrafPtr *GWorldPtr;
155typedef GWorldPtr GrafPtr;
156typedef struct GDevice **GDHandle;
157typedef struct ColorTable ColorTable;
158typedef struct BitMap BitMap;
159typedef struct EventRecord EventRecord;
160typedef void * MSG;
161typedef int WId;
162typedef 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
177typedef struct _XDisplay Display;
178typedef union _XEvent XEvent;
179typedef struct _XGC *GC;
180typedef struct _XRegion *Region;
181typedef unsigned long WId;
182
183Q_EXPORT Display *qt_xdisplay();
184Q_EXPORT int qt_xscreen();
185Q_EXPORT WId qt_xrootwin(); // ### REMOVE 4.0
186Q_EXPORT WId qt_xrootwin( int scrn ); // ### 4.0 add default arg of -1
187Q_EXPORT GC qt_xget_readonly_gc( int scrn, bool monochrome );
188Q_EXPORT GC qt_xget_temp_gc( int scrn, bool monochrome );
189
190Q_EXPORT const char *qAppClass(); // get application class
191
192#endif // Q_WS_X11
193
194#if defined(Q_WS_QWS)
195
196typedef unsigned long WId;
197struct QWSEvent;
198class QGfx;
199
200#endif // Q_WS_QWS
201
202class QApplication;
203
204#if defined(NEEDS_QMAIN)
205#define main qMain
206#endif
207
208// Global platform-independent types and functions
209
210typedef Q_INT32 QCOORD; // coordinate type
211const QCOORD QCOORD_MAX = 2147483647;
212const QCOORD QCOORD_MIN = -QCOORD_MAX - 1;
213
214typedef unsigned int QRgb; // RGB triplet
215
216Q_EXPORT const char *qAppName(); // get application name
217
218// Misc functions
219
220typedef void (*QtCleanUpFunction)();
221Q_EXPORT void qAddPostRoutine( QtCleanUpFunction );
222Q_EXPORT void qRemovePostRoutine( QtCleanUpFunction );
223
224#if !defined(QT_CLEAN_NAMESPACE)
225// source compatibility with Qt 2.x
226typedef 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 &copy; 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>
Note: See TracBrowser for help on using the repository browser.