| 1 |
/* X11::GUITest ($Id: record_event.h 253 2026-08-19 22:37:51Z ctrondlp $) |
| 2 |
* |
| 3 |
* Copyright (c) 2003-2026 Dennis K. Paulsen, All Rights Reserved. |
| 4 |
* Email: [email protected] |
| 5 |
* |
| 6 |
* This program is free software; you can redistribute it and/or |
| 7 |
* modify it under the terms of the GNU General Public License as |
| 8 |
* published by the Free Software Foundation; either version 2 of |
| 9 |
* the License, or (at your option) any later version. |
| 10 |
* |
| 11 |
* This program is distributed in the hope that it will be useful, |
| 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
* GNU General Public License for more details. |
| 15 |
* |
| 16 |
* You should have received a copy of the GNU General Public License |
| 17 |
* along with this program; if not, see <http://www.gnu.org/licenses>. |
| 18 |
* |
| 19 |
*/ |
| 20 |
#ifndef RECORD_EVENT_H |
| 21 |
#define RECORD_EVENT_H |
| 22 |
|
| 23 |
typedef enum {NOTYPE, MOUSEBUTTON, KEY, MOUSEMOVE} EventType; |
| 24 |
typedef enum {NOSTATE, UP, DOWN } EventState; |
| 25 |
|
| 26 |
struct record_event { |
| 27 |
EventType type; |
| 28 |
EventState state; |
| 29 |
unsigned long delay; |
| 30 |
const char *dataname; |
| 31 |
long data; /* Holds either a small mouse button index, or a KeySym |
| 32 |
* (unsigned long); long matches KeySym's width on every |
| 33 |
* platform without truncating it, unlike int. */ |
| 34 |
int posX; |
| 35 |
int posY; |
| 36 |
}; |
| 37 |
|
| 38 |
#endif /* #ifndef RECORD_EVENT_H */ |