- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Directories
- Examples

- File List
- File Members

# qguifunctions_wince.h

Go to the documentation of this file.

    00001 /****************************************************************************
    00002 **
    00003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
    00004 ** All rights reserved.
    00005 ** Contact: Nokia Corporation (qt-info@nokia.com)
    00006 **
    00007 ** This file is part of the QtGui module of the Qt Toolkit.
    00008 **
    00009 ** $QT_BEGIN_LICENSE:LGPL$
    00010 ** Commercial Usage
    00011 ** Licensees holding valid Qt Commercial licenses may use this file in
    00012 ** accordance with the Qt Commercial License Agreement provided with the
    00013 ** Software or, alternatively, in accordance with the terms contained in
    00014 ** a written agreement between you and Nokia.
    00015 **
    00016 ** GNU Lesser General Public License Usage
    00017 ** Alternatively, this file may be used under the terms of the GNU Lesser
    00018 ** General Public License version 2.1 as published by the Free Software
    00019 ** Foundation and appearing in the file LICENSE.LGPL included in the
    00020 ** packaging of this file.  Please review the following information to
    00021 ** ensure the GNU Lesser General Public License version 2.1 requirements
    00022 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    00023 **
    00024 ** In addition, as a special exception, Nokia gives you certain additional
    00025 ** rights.  These rights are described in the Nokia Qt LGPL Exception
    00026 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this module.
    00027 **
    00028 ** GNU General Public License Usage
    00029 ** Alternatively, this file may be used under the terms of the GNU
    00030 ** General Public License version 3.0 as published by the Free Software
    00031 ** Foundation and appearing in the file LICENSE.GPL included in the
    00032 ** packaging of this file.  Please review the following information to
    00033 ** ensure the GNU General Public License version 3.0 requirements will be
    00034 ** met: http://www.gnu.org/copyleft/gpl.html.
    00035 **
    00036 ** If you have questions regarding the use of this file, please contact
    00037 ** Nokia at qt-info@nokia.com.
    00038 ** $QT_END_LICENSE$
    00039 **
    00040 ****************************************************************************/
    00041 #ifndef QGUIFUNCTIONS_WCE_H
    00042 #define QGUIFUNCTIONS_WCE_H
    00043 #ifdef Q_OS_WINCE
    00044 #include <QtCore/qfunctions_wince.h>
    00045 #define UNDER_NT
    00046 #include <wingdi.h>
    00047
    00048 #ifdef QT_BUILD_GUI_LIB
    00049 QT_BEGIN_HEADER
    00050 QT_BEGIN_NAMESPACE
    00051 QT_MODULE(Gui)
    00052 QT_END_NAMESPACE
    00053 QT_END_HEADER
    00054 #endif
    00055
    00056 // application defines
    00057 #define SPI_SETNONCLIENTMETRICS 72
    00058 #define SPI_SETICONTITLELOGFONT 0x0022
    00059 #define WM_ACTIVATEAPP 0x001c
    00060 #define SW_PARENTCLOSING    1
    00061 #define SW_OTHERMAXIMIZED   2
    00062 #define SW_PARENTOPENING    3
    00063 #define SW_OTHERRESTORED    4
    00064 #define GET_XBUTTON_WPARAM(wParam)      (HIWORD(wParam))
    00065
    00066 // drag n drop
    00067 #ifndef CFSTR_PERFORMEDDROPEFFECT
    00068 #define CFSTR_PERFORMEDDROPEFFECT TEXT("Performed DropEffect")
    00069 #endif
    00070 int qt_wince_GetDIBits(HDC, HBITMAP, uint, uint, void*, LPBITMAPINFO, uint);
    00071 #define GetDIBits(a,b,c,d,e,f,g) qt_wince_GetDIBits(a,b,c,d,e,f,g)
    00072
    00073 // QWidget
    00074 #define SW_SHOWMINIMIZED SW_MINIMIZE
    00075
    00076 // QRegion
    00077 #define ALTERNATE 0
    00078 #define WINDING 1
    00079
    00080 // QFontEngine
    00081 typedef struct _FIXED {
    00082   WORD  fract;
    00083   short value;
    00084 } FIXED;
    00085
    00086 typedef struct tagPOINTFX {
    00087   FIXED x;
    00088   FIXED y;
    00089 } POINTFX;
    00090
    00091 typedef struct _MAT2 {
    00092   FIXED eM11;
    00093   FIXED eM12;
    00094   FIXED eM21;
    00095   FIXED eM22;
    00096 } MAT2;
    00097
    00098 typedef struct _GLYPHMETRICS {
    00099     UINT    gmBlackBoxX;
    00100     UINT    gmBlackBoxY;
    00101     POINT   gmptGlyphOrigin;
    00102     short   gmCellIncX;
    00103     short   gmCellIncY;
    00104 } GLYPHMETRICS;
    00105
    00106 typedef struct tagTTPOLYGONHEADER
    00107 {
    00108     DWORD   cb;
    00109     DWORD   dwType;
    00110     POINTFX pfxStart;
    00111 } TTPOLYGONHEADER;
    00112
    00113 typedef struct tagTTPOLYCURVE
    00114 {
    00115     WORD    wType;
    00116     WORD    cpfx;
    00117     POINTFX apfx[1];
    00118 } TTPOLYCURVE;
    00119
    00120 #define GGO_NATIVE 2
    00121 #define GGO_GLYPH_INDEX 0x0080
    00122 #define TT_PRIM_LINE 1
    00123 #define TT_PRIM_QSPLINE 2
    00124 #define TT_PRIM_CSPLINE 3
    00125 #define ANSI_VAR_FONT 12
    00126
    00127 HINSTANCE qt_wince_ShellExecute(HWND hwnd, LPCWSTR operation, LPCWSTR file, LPCWSTR params, LPCWSTR dir, int showCmd);
    00128 #define ShellExecute(a,b,c,d,e,f) qt_wince_ShellExecute(a,b,c,d,e,f)
    00129
    00130
    00131 // Clipboard --------------------------------------------------------
    00132 #define WM_CHANGECBCHAIN    1
    00133 #define WM_DRAWCLIPBOARD    2
    00134
    00135 BOOL qt_wince_ChangeClipboardChain(
    00136     HWND hWndRemove,  // handle to window to remove
    00137     HWND hWndNewNext  // handle to next window
    00138 );
    00139 #define ChangeClipboardChain(a,b) qt_wince_ChangeClipboardChain(a,b);
    00140
    00141 HWND qt_wince_SetClipboardViewer(
    00142     HWND hWndNewViewer   // handle to clipboard viewer window
    00143 );
    00144 #define SetClipboardViewer(a) qt_wince_SetClipboardViewer(a)
    00145
    00146 // Graphics ---------------------------------------------------------
    00147 COLORREF qt_wince_PALETTEINDEX( WORD wPaletteIndex );
    00148 #define PALETTEINDEX(a) qt_wince_PALETTEINDEX(a)
    00149
    00150 #endif // Q_OS_WINCE
    00151 #endif // QGUIFUNCTIONS_WCE_H