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

« back to all changes in this revision

Viewing changes to tools/qvfb/qvfbhdr.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2006-10-12 23:14:14 UTC
  • mto: (15.1.1 lenny) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20061012231414-y2oqbom5dy389os0
Tags: upstream-4.2.0
ImportĀ upstreamĀ versionĀ 4.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
**
 
3
** Copyright (C) 1992-2006 Trolltech ASA. All rights reserved.
 
4
**
 
5
** This file is part of the tools applications of the Qt Toolkit.
 
6
**
 
7
** This file may be used under the terms of the GNU General Public
 
8
** License version 2.0 as published by the Free Software Foundation
 
9
** and appearing in the file LICENSE.GPL included in the packaging of
 
10
** this file.  Please review the following information to ensure GNU
 
11
** General Public Licensing requirements will be met:
 
12
** http://www.trolltech.com/products/qt/opensource.html
 
13
**
 
14
** If you are unsure which license is appropriate for your use, please
 
15
** review the following information:
 
16
** http://www.trolltech.com/products/qt/licensing.html or contact the
 
17
** sales department at sales@trolltech.com.
 
18
**
 
19
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 
20
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 
21
**
 
22
****************************************************************************/
 
23
 
 
24
#ifndef QVFBHDR_H
 
25
#define QVFBHDR_H
 
26
 
 
27
#include <QtGui/qcolor.h>
 
28
#include <QtCore/qrect.h>
 
29
 
 
30
QT_BEGIN_HEADER
 
31
 
 
32
QT_MODULE(Gui)
 
33
 
 
34
#define QT_VFB_MOUSE_PIPE           "/tmp/.qtvfb_mouse-%1"
 
35
#define QT_VFB_KEYBOARD_PIPE        "/tmp/.qtvfb_keyboard-%1"
 
36
#define QT_VFB_MAP                  "/tmp/.qtvfb_map-%1"
 
37
 
 
38
struct QVFbHeader
 
39
{
 
40
    int width;
 
41
    int height;
 
42
    int depth;
 
43
    int linestep;
 
44
    int dataoffset;
 
45
    QRect update;
 
46
    bool dirty;
 
47
    int  numcols;
 
48
    QRgb clut[256];
 
49
    int viewerVersion;
 
50
    int serverVersion;
 
51
};
 
52
 
 
53
struct QVFbKeyData
 
54
{
 
55
    unsigned int keycode;
 
56
    Qt::KeyboardModifiers modifiers;
 
57
    unsigned short int unicode;
 
58
    bool press;
 
59
    bool repeat;
 
60
};
 
61
 
 
62
QT_END_HEADER
 
63
 
 
64
#endif // QVFBHDR_H