| 1 | /**************************************************************************** |
|---|
| 2 | ** |
|---|
| 3 | ** Qt/Embedded virtual framebuffer |
|---|
| 4 | ** |
|---|
| 5 | ** Created : 20000605 |
|---|
| 6 | ** |
|---|
| 7 | ** Copyright (C) 1992-2005 Trolltech AS. All rights reserved. |
|---|
| 8 | ** |
|---|
| 9 | ** This file is part of the kernel module of the Qt GUI Toolkit. |
|---|
| 10 | ** |
|---|
| 11 | ** This file may be distributed and/or modified under the terms of the |
|---|
| 12 | ** GNU General Public License version 2 as published by the Free Software |
|---|
| 13 | ** Foundation and appearing in the file LICENSE.GPL included in the |
|---|
| 14 | ** packaging of this file. |
|---|
| 15 | ** |
|---|
| 16 | ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition |
|---|
| 17 | ** licenses for Qt/Embedded may use this file in accordance with the |
|---|
| 18 | ** Qt Embedded Commercial License Agreement provided with the Software. |
|---|
| 19 | ** |
|---|
| 20 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
|---|
| 21 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
|---|
| 22 | ** |
|---|
| 23 | ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for |
|---|
| 24 | ** information about Qt Commercial License Agreements. |
|---|
| 25 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
|---|
| 26 | ** |
|---|
| 27 | ** Contact info@trolltech.com if any conditions of this licensing are |
|---|
| 28 | ** not clear to you. |
|---|
| 29 | ** |
|---|
| 30 | **********************************************************************/ |
|---|
| 31 | |
|---|
| 32 | #ifndef QVFBHDR_H |
|---|
| 33 | #define QVFBHDR_H |
|---|
| 34 | |
|---|
| 35 | #ifndef QT_H |
|---|
| 36 | #include "qcolor.h" |
|---|
| 37 | #include "qrect.h" |
|---|
| 38 | #endif // QT_H |
|---|
| 39 | |
|---|
| 40 | #define QT_VFB_MOUSE_PIPE "/tmp/.qtvfb_mouse-%1" |
|---|
| 41 | #define QT_VFB_KEYBOARD_PIPE "/tmp/.qtvfb_keyboard-%1" |
|---|
| 42 | |
|---|
| 43 | struct QVFbHeader |
|---|
| 44 | { |
|---|
| 45 | int width; |
|---|
| 46 | int height; |
|---|
| 47 | int depth; |
|---|
| 48 | int linestep; |
|---|
| 49 | int dataoffset; |
|---|
| 50 | QRect update; |
|---|
| 51 | bool dirty; |
|---|
| 52 | int numcols; |
|---|
| 53 | QRgb clut[256]; |
|---|
| 54 | }; |
|---|
| 55 | |
|---|
| 56 | struct QVFbKeyData |
|---|
| 57 | { |
|---|
| 58 | unsigned int unicode; |
|---|
| 59 | unsigned int modifiers; |
|---|
| 60 | bool press; |
|---|
| 61 | bool repeat; |
|---|
| 62 | }; |
|---|
| 63 | |
|---|
| 64 | #endif |
|---|