Eneboo - Documentación para desarrolladores
src/qt/src/kernel/qwindowdefs.h
Ir a la documentación de este archivo.
00001 /****************************************************************************
00002 ** $Id: qt/qwindowdefs.h   3.3.8   edited Jan 11 14:38 $
00003 **
00004 ** Definition of general window system dependent functions, types and
00005 ** constants
00006 **
00007 ** Created : 931029
00008 **
00009 ** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
00010 **
00011 ** This file is part of the kernel module of the Qt GUI Toolkit.
00012 **
00013 ** This file may be distributed under the terms of the Q Public License
00014 ** as defined by Trolltech ASA of Norway and appearing in the file
00015 ** LICENSE.QPL included in the packaging of this file.
00016 **
00017 ** This file may be distributed and/or modified under the terms of the
00018 ** GNU General Public License version 2 as published by the Free Software
00019 ** Foundation and appearing in the file LICENSE.GPL included in the
00020 ** packaging of this file.
00021 **
00022 ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
00023 ** licenses may use this file in accordance with the Qt Commercial License
00024 ** Agreement provided with the Software.
00025 **
00026 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00027 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00028 **
00029 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
00030 **   information about Qt Commercial License Agreements.
00031 ** See http://www.trolltech.com/qpl/ for QPL licensing information.
00032 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00033 **
00034 ** Contact info@trolltech.com if any conditions of this licensing are
00035 ** not clear to you.
00036 **
00037 **********************************************************************/
00038 
00039 #ifndef QWINDOWDEFS_H
00040 #define QWINDOWDEFS_H
00041 
00042 #ifndef QT_H
00043 #include "qobjectdefs.h"
00044 #include "qstring.h"
00045 #include "qnamespace.h"
00046 #endif // QT_H
00047 
00048 // Class forward definitions
00049 
00050 class QPaintDevice;
00051 class QPaintDeviceMetrics;
00052 class QWidget;
00053 class QWidgetMapper;
00054 class QDialog;
00055 class QColor;
00056 class QColorGroup;
00057 class QPalette;
00058 class QCursor;
00059 class QPoint;
00060 class QSize;
00061 class QRect;
00062 class QPointArray;
00063 class QPainter;
00064 class QRegion;
00065 class QFont;
00066 class QFontMetrics;
00067 class QFontInfo;
00068 class QPen;
00069 class QBrush;
00070 class QWMatrix;
00071 class QPixmap;
00072 class QBitmap;
00073 class QMovie;
00074 class QImage;
00075 class QImageIO;
00076 class QPicture;
00077 class QPrinter;
00078 class QAccel;
00079 class QTimer;
00080 class QTime;
00081 class QClipboard;
00082 
00083 
00084 // Widget list (defined in qwidgetlist.h)
00085 
00086 class QWidgetList;
00087 class QWidgetListIt;
00088 
00089 
00090 // Window system dependent definitions
00091 
00092 #if defined(Q_WS_MAC)
00093 #if QT_MACOSX_VERSION < 0x1020
00094 typedef struct OpaqueEventLoopTimerRef* EventLoopTimerRef;
00095 typedef struct OpaqueMenuHandle *MenuRef;
00096 #else
00097 typedef struct __EventLoopTimer*        EventLoopTimerRef;
00098 typedef struct OpaqueMenuRef*        MenuRef;
00099 #endif
00100 
00101 #ifndef Q_WS_MACX
00102 typedef struct CGContext *CGContextRef;
00103 #endif
00104 typedef struct OpaqueWindowGroupRef *WindowGroupRef;
00105 typedef struct OpaqueGrafPtr *CGrafPtr;
00106 typedef struct OpaquePMPrintSession *PMPrintSession;
00107 typedef struct OpaquePMPrintSettings *PMPrintSettings;
00108 typedef struct OpaquePMPageFormat *PMPageFormat;
00109 typedef struct Point Point;
00110 typedef struct OpaqueEventHandlerRef*   EventHandlerRef;
00111 typedef struct OpaqueEventHandlerCallRef*  EventHandlerCallRef;
00112 typedef struct OpaqueEventRef*          EventRef;
00113 typedef long int OSStatus;
00114 typedef struct OpaqueScrapRef *ScrapRef;
00115 typedef struct OpaqueRgnHandle *RgnHandle;
00116 typedef struct OpaqueWindowPtr *WindowPtr;
00117 typedef WindowPtr WindowRef;
00118 typedef struct OpaqueGrafPtr *GWorldPtr;
00119 typedef GWorldPtr GrafPtr;
00120 typedef struct GDevice **GDHandle;
00121 typedef struct ColorTable ColorTable;
00122 typedef struct BitMap BitMap;
00123 typedef struct EventRecord EventRecord;
00124 typedef void * MSG;
00125 typedef int WId;
00126 typedef struct AEDesc AppleEvent;
00127 
00128 #endif // Q_WS_MAC
00129 
00130 #if defined(Q_WS_WIN)
00131 #include "qwindowdefs_win.h"
00132 #endif // Q_WS_WIN
00133 
00134 
00135 #if defined(Q_OS_TEMP)
00136 #include "qwinfunctions_wce.h"
00137 #endif // Q_OS_TEMP
00138 
00139 #if defined(Q_WS_X11)
00140 
00141 typedef struct _XDisplay Display;
00142 typedef union  _XEvent XEvent;
00143 typedef struct _XGC *GC;
00144 typedef struct _XRegion *Region;
00145 typedef unsigned long  WId;
00146 
00147 Q_EXPORT Display *qt_xdisplay();
00148 Q_EXPORT int     qt_xscreen();
00149 Q_EXPORT WId     qt_xrootwin(); // ### REMOVE 4.0
00150 Q_EXPORT WId     qt_xrootwin( int scrn ); // ### 4.0 add default arg of -1
00151 Q_EXPORT GC      qt_xget_readonly_gc( int scrn, bool monochrome );
00152 Q_EXPORT GC      qt_xget_temp_gc( int scrn, bool monochrome );
00153 
00154 Q_EXPORT const char *qAppClass();               // get application class
00155 
00156 #endif // Q_WS_X11
00157 
00158 #if defined(Q_WS_QWS)
00159 
00160 typedef unsigned long  WId;
00161 struct QWSEvent;
00162 class QGfx;
00163 
00164 #endif // Q_WS_QWS
00165 
00166 class QApplication;
00167 
00168 #if defined(NEEDS_QMAIN)
00169 #define main qMain
00170 #endif
00171 
00172 // Global platform-independent types and functions
00173 
00174 typedef Q_INT32 QCOORD;                         // coordinate type
00175 const QCOORD QCOORD_MAX =  2147483647;
00176 const QCOORD QCOORD_MIN = -QCOORD_MAX - 1;
00177 
00178 typedef unsigned int QRgb;                      // RGB triplet
00179 
00180 Q_EXPORT const char *qAppName();                // get application name
00181 
00182 // Misc functions
00183 
00184 typedef void (*QtCleanUpFunction)();
00185 Q_EXPORT void qAddPostRoutine( QtCleanUpFunction );
00186 Q_EXPORT void qRemovePostRoutine( QtCleanUpFunction );
00187 
00188 #if !defined(QT_CLEAN_NAMESPACE)
00189 // source compatibility with Qt 2.x
00190 typedef QtCleanUpFunction Q_CleanUpFunction;
00191 #endif
00192 
00193 
00194 #endif // QWINDOWDEFS_H
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'