Eneboo - Documentación para desarrolladores
src/qt/include/qwindowdefs_win.h
Ir a la documentación de este archivo.
00001 /****************************************************************************
00002 ** $Id: qwindowdefs_win.h,v 1.1.4.9 2006/01/26 17:02:07 chehrlic Exp $
00003 **
00004 ** Definition of general window system dependent functions, types and
00005 ** constants
00006 **
00007 ** Created : 20030126
00008 **
00009 ** Copyright (C) 2003 Holger Schroeder
00010 ** Copyright (C) 2003 Christopher January
00011 ** Copyright (C) 2003 Richard Lärkäng
00012 ** Copyright (C) 2004 Ralf Habacker
00013 ** Copyright (C) 2004 Christian Ehrlicher
00014 ** Copyright (C) 2004 Andreas Hausladen
00015 **
00016 ** This file is part of the kernel module of the Qt GUI Toolkit.
00017 **
00018 ** This file may be distributed and/or modified under the terms of the
00019 ** GNU General Public License version 2 as published by the Free Software
00020 ** Foundation and appearing in the file LICENSE.GPL included in the
00021 ** packaging of this file.
00022 **
00023 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00024 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00025 **
00026 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
00027 **   information about Qt Commercial License Agreements.
00028 ** See http://www.trolltech.com/qpl/ for QPL licensing information.
00029 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00030 **
00031 ** Contact kde-cygwin@kde.org if any conditions of this licensing are
00032 ** not clear to you.
00033 **
00034 **********************************************************************/
00035 
00036 #ifndef QWINDOWDEFS_WIN_H
00037 #define QWINDOWDEFS_WIN_H
00038 
00039 
00040 #if (defined(Q_CC_BOR) || defined(Q_CC_WAT)) && !defined(__CONSOLE__)
00041 #define NEEDS_QMAIN
00042 #endif
00043 
00044 #define Q_DECLARE_HANDLE(name) struct name##__; typedef struct name##__ *name
00045 
00046 Q_DECLARE_HANDLE( HINSTANCE );
00047 Q_DECLARE_HANDLE( HDC );
00048 Q_DECLARE_HANDLE( HWND );
00049 Q_DECLARE_HANDLE( HFONT );
00050 Q_DECLARE_HANDLE( HPEN );
00051 Q_DECLARE_HANDLE( HBRUSH );
00052 Q_DECLARE_HANDLE( HBITMAP );
00053 Q_DECLARE_HANDLE( HICON );
00054 typedef HICON HCURSOR;
00055 Q_DECLARE_HANDLE( HPALETTE );
00056 Q_DECLARE_HANDLE( HRGN );
00057 
00058 typedef struct tagMSG MSG;
00059 typedef HWND WId;
00060 
00061 /* implemented in qapplication_win.cpp */
00062 Q_EXPORT HINSTANCE qWinAppInst();       /* appInst */
00063 Q_EXPORT HINSTANCE qWinAppPrevInst();   /* appPrevInst */
00064 Q_EXPORT int qWinAppCmdShow();          /* nCmdShow */
00065 Q_EXPORT HDC qt_display_dc();           /* use this instead of GetDC(0) to
00066                                            avoid GetDC/ReleaseDC functions */
00067 
00068 #define QT_WIN_PAINTER_MEMBERS \
00069     HDC  hdc;               \
00070     HPEN hpen;              \
00071     HFONT hfont;            \
00072     HBRUSH hbrush;          \
00073     uint pixmapBrush :1;    \
00074     void nativeXForm(bool); \
00075     QPoint  curPt;
00076 
00077 
00078 #if defined(__MINGW32__) // Postgresql-8.0.0 bug in postgresql-8.0.0/src/inlclude/c.h?
00079 #define WIN32_CLIENT_ONLY
00080 #endif
00081 
00082 #endif
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'