source: trunk/src/gui/kernel/qwindowdefs_pm.h@ 659

Last change on this file since 659 was 659, checked in by Dmitry A. Kuminov, 15 years ago

global: Updated year to 2010 in OS/2-specific headers.

File size: 3.7 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4** All rights reserved.
5** Contact: Nokia Corporation ([email protected])
6**
7** Copyright (C) 2010 netlabs.org. OS/2 parts.
8**
9** This file is part of the QtGui module of the Qt Toolkit.
10**
11** $QT_BEGIN_LICENSE:LGPL$
12** Commercial Usage
13** Licensees holding valid Qt Commercial licenses may use this file in
14** accordance with the Qt Commercial License Agreement provided with the
15** Software or, alternatively, in accordance with the terms contained in
16** a written agreement between you and Nokia.
17**
18** GNU Lesser General Public License Usage
19** Alternatively, this file may be used under the terms of the GNU Lesser
20** General Public License version 2.1 as published by the Free Software
21** Foundation and appearing in the file LICENSE.LGPL included in the
22** packaging of this file. Please review the following information to
23** ensure the GNU Lesser General Public License version 2.1 requirements
24** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
25**
26** In addition, as a special exception, Nokia gives you certain additional
27** rights. These rights are described in the Nokia Qt LGPL Exception
28** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
29**
30** GNU General Public License Usage
31** Alternatively, this file may be used under the terms of the GNU
32** General Public License version 3.0 as published by the Free Software
33** Foundation and appearing in the file LICENSE.GPL included in the
34** packaging of this file. Please review the following information to
35** ensure the GNU General Public License version 3.0 requirements will be
36** met: http://www.gnu.org/copyleft/gpl.html.
37**
38** If you have questions regarding the use of this file, please contact
39** Nokia at [email protected].
40** $QT_END_LICENSE$
41**
42****************************************************************************/
43
44#ifndef QWINDOWDEFS_PM_H
45#define QWINDOWDEFS_PM_H
46
47#include <QtCore/qglobal.h>
48#include <QtCore/qstring.h>
49
50QT_BEGIN_HEADER
51
52QT_BEGIN_NAMESPACE
53
54QT_MODULE(Gui)
55
56QT_END_NAMESPACE
57
58// common typedefs from os2.h to avoid inclusion of qt_os2.h in public headers
59typedef unsigned long ULONG;
60typedef unsigned short USHORT;
61typedef unsigned long LHANDLE;
62typedef LHANDLE HWND;
63typedef LHANDLE HPS;
64typedef LHANDLE HBITMAP;
65typedef LHANDLE HPOINTER;
66typedef LHANDLE HRGN;
67typedef struct _QMSG QMSG;
68typedef void *MRESULT;
69
70typedef HWND WId;
71
72#define NULLHANDLE ((LHANDLE)0)
73
74// constants to address extra window data
75#define QWL_QTCLIPRGN (QWL_USER)
76#define QWL_QTMODAL (QWL_USER + sizeof(ULONG))
77#define QT_EXTRAWINDATASIZE (sizeof(LONG) * 2)
78
79QT_BEGIN_NAMESPACE
80
81class QWidget;
82
83Q_GUI_EXPORT HPS qt_display_ps();
84
85Q_GUI_EXPORT int qt_display_width();
86Q_GUI_EXPORT int qt_display_height();
87
88Q_GUI_EXPORT QWidget *qt_widget_from_hwnd(HWND hwnd);
89
90// QDebug helpers for debugging various API types
91
92// don't drag qdebug.h but require it to be included first
93#if defined(QDEBUG_H) && !defined(QT_NO_DEBUG_STREAM)
94
95struct QDebugHWND { HWND hwnd; };
96inline QDebugHWND qDebugHWND(HWND hwnd) { QDebugHWND d = { hwnd }; return d; }
97QDebug operator<<(QDebug debug, const QDebugHWND &d);
98
99// the following declarations require OS/2 types not defined here,
100// don't drag them in as well but require qt_os2.h to be included first
101#if defined(QT_OS2_H)
102
103QDebug operator<<(QDebug debug, const RECTL &rcl);
104QDebug operator<<(QDebug debug, const SWP &swp);
105QDebug operator<<(QDebug debug, const QMSG &qmsg);
106
107#endif // defined(QT_OS2_H)
108
109#endif // defined(QDEBUG_H) && !defined(QT_NO_DEBUG_STREAM)
110
111QT_END_NAMESPACE
112
113QT_END_HEADER
114
115#endif // QWINDOWDEFS_WIN_H
Note: See TracBrowser for help on using the repository browser.