~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/gui/kernel/qwindowdefs.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
**
 
3
** Copyright (C) 1992-2005 Trolltech AS. All rights reserved.
 
4
**
 
5
** This file is part of the gui module of the Qt Toolkit.
 
6
**
 
7
** This file may be distributed under the terms of the Q Public License
 
8
** as defined by Trolltech AS of Norway and appearing in the file
 
9
** LICENSE.QPL included in the packaging of this file.
 
10
**
 
11
** This file may be distributed and/or modified under the terms of the
 
12
** GNU General Public License version 2 as published by the Free Software
 
13
** Foundation and appearing in the file LICENSE.GPL included in the
 
14
** packaging of this file.
 
15
**
 
16
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
 
17
**   information about Qt Commercial License Agreements.
 
18
** See http://www.trolltech.com/qpl/ for QPL licensing information.
 
19
** See http://www.trolltech.com/gpl/ for GPL licensing information.
 
20
**
 
21
** Contact info@trolltech.com if any conditions of this licensing are
 
22
** not clear to you.
 
23
**
 
24
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 
25
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 
26
**
 
27
****************************************************************************/
 
28
 
 
29
#ifndef QWINDOWDEFS_H
 
30
#define QWINDOWDEFS_H
 
31
 
 
32
#include "QtCore/qobjectdefs.h"
 
33
#include "QtCore/qnamespace.h"
 
34
 
 
35
// Class forward definitions
 
36
 
 
37
class QPaintDevice;
 
38
class QWidget;
 
39
class QDialog;
 
40
class QColor;
 
41
class QPalette;
 
42
#ifdef QT3_SUPPORT
 
43
class QColorGroup;
 
44
#endif
 
45
class QCursor;
 
46
class QPoint;
 
47
class QSize;
 
48
class QRect;
 
49
class QPolygon;
 
50
class QPainter;
 
51
class QRegion;
 
52
class QFont;
 
53
class QFontMetrics;
 
54
class QFontInfo;
 
55
class QPen;
 
56
class QBrush;
 
57
class QMatrix;
 
58
class QPixmap;
 
59
class QBitmap;
 
60
class QMovie;
 
61
class QImage;
 
62
class QPicture;
 
63
class QPrinter;
 
64
class QTimer;
 
65
class QTime;
 
66
class QClipboard;
 
67
class QString;
 
68
class QByteArray;
 
69
class QApplication;
 
70
 
 
71
template<typename T> class QList;
 
72
typedef QList<QWidget *> QWidgetList;
 
73
 
 
74
// Window system dependent definitions
 
75
 
 
76
#if defined(Q_WS_MAC)
 
77
#if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_2)
 
78
typedef struct OpaqueEventLoopTimerRef* EventLoopTimerRef;
 
79
typedef struct OpaqueMenuHandle *MenuRef;
 
80
#else
 
81
typedef struct __EventLoopTimer *EventLoopTimerRef;
 
82
typedef struct OpaqueMenuRef *MenuRef;
 
83
#endif
 
84
typedef char **MenuBarHandle;
 
85
typedef struct OpaqueDragRef *DragRef;
 
86
typedef struct OpaqueControlRef* ControlRef;
 
87
typedef ControlRef HIViewRef;
 
88
typedef struct CGImage *CGImageRef;
 
89
typedef struct CGContext *CGContextRef;
 
90
typedef struct OpaqueIconRef *IconRef;
 
91
typedef struct OpaqueWindowGroupRef *WindowGroupRef;
 
92
typedef struct OpaqueGrafPtr *CGrafPtr;
 
93
typedef struct OpaquePMPrintSession *PMPrintSession;
 
94
typedef struct OpaquePMPrintSettings *PMPrintSettings;
 
95
typedef struct OpaquePMPageFormat *PMPageFormat;
 
96
typedef struct OpaqueEventHandlerRef *EventHandlerRef;
 
97
typedef struct OpaqueEventHandlerCallRef *EventHandlerCallRef;
 
98
typedef struct OpaqueEventRef *EventRef;
 
99
typedef long int OSStatus;
 
100
typedef struct OpaqueScrapRef *ScrapRef;
 
101
typedef struct OpaqueRgnHandle *RgnHandle;
 
102
typedef struct OpaqueWindowPtr *WindowPtr;
 
103
typedef WindowPtr WindowRef;
 
104
typedef struct OpaqueGrafPtr *GWorldPtr;
 
105
typedef GWorldPtr GrafPtr;
 
106
typedef struct GDevice **GDHandle;
 
107
typedef void * MSG;
 
108
typedef int WId;
 
109
typedef struct AEDesc AppleEvent;
 
110
#endif // Q_WS_MAC
 
111
 
 
112
#if defined(Q_WS_WIN)
 
113
#include "QtGui/qwindowdefs_win.h"
 
114
#endif // Q_WS_WIN
 
115
 
 
116
 
 
117
#if defined(Q_OS_TEMP)
 
118
#include "qwinfunctions_wce.h"
 
119
#endif // Q_OS_TEMP
 
120
 
 
121
#if defined(Q_WS_X11)
 
122
 
 
123
typedef struct _XDisplay Display;
 
124
typedef union  _XEvent XEvent;
 
125
typedef struct _XGC *GC;
 
126
typedef struct _XRegion *Region;
 
127
typedef unsigned long  WId;
 
128
 
 
129
#endif // Q_WS_X11
 
130
 
 
131
#if defined(Q_WS_QWS)
 
132
 
 
133
typedef unsigned long  WId;
 
134
struct QWSEvent;
 
135
 
 
136
#endif // Q_WS_QWS
 
137
 
 
138
template<class K, class V> class QHash;
 
139
typedef QHash<WId, QWidget *> QWidgetMapper;
 
140
 
 
141
#if defined(QT_NEEDS_QMAIN)
 
142
#define main qMain
 
143
#endif
 
144
 
 
145
// Global platform-independent types and functions
 
146
 
 
147
#endif // QWINDOWDEFS_H