action.h revision f46a6179
1/* $Xorg: action.h,v 1.3 2000/08/17 19:54:30 cpqbld Exp $ */ 2/************************************************************ 3 Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc. 4 5 Permission to use, copy, modify, and distribute this 6 software and its documentation for any purpose and without 7 fee is hereby granted, provided that the above copyright 8 notice appear in all copies and that both that copyright 9 notice and this permission notice appear in supporting 10 documentation, and that the name of Silicon Graphics not be 11 used in advertising or publicity pertaining to distribution 12 of the software without specific prior written permission. 13 Silicon Graphics makes no representation about the suitability 14 of this software for any purpose. It is provided "as is" 15 without any express or implied warranty. 16 17 SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS 18 SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 19 AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON 20 GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 21 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 22 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 23 OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH 24 THE USE OR PERFORMANCE OF THIS SOFTWARE. 25 26 ********************************************************/ 27/* $XFree86$ */ 28 29#ifndef ACTION_H 30#define ACTION_H 1 31 32#define F_ClearLocks 0 33#define F_LatchToLock 1 34#define F_GenKeyEvent 2 35#define F_Report 3 36#define F_Default 4 37#define F_Affect 5 38#define F_Increment 6 39#define F_Modifiers 7 40#define F_Group 8 41#define F_X 9 42#define F_Y 10 43#define F_Accel 11 44#define F_Button 12 45#define F_Value 13 46#define F_Controls 14 47#define F_Type 15 48#define F_Count 16 49#define F_Screen 17 50#define F_Same 18 51#define F_Data 19 52#define F_Device 20 53#define F_Keycode 21 54#define F_ModsToClear 22 55#define F_LastField F_ModsToClear 56#define F_NumFields (F_LastField+1) 57 58#define PrivateAction (XkbSA_LastAction+1) 59 60typedef struct _ActionInfo { 61 unsigned action; 62 unsigned field; 63 ExprDef * array_ndx; 64 ExprDef * value; 65 struct _ActionInfo * next; 66} ActionInfo; 67 68extern int HandleActionDef( 69 ExprDef * /* def */, 70 XkbDescPtr /* xkb */, 71 XkbAnyAction * /* action */, 72 unsigned /* mergeMode */, 73 ActionInfo * /* info */ 74); 75 76extern int SetActionField( 77 XkbDescPtr /* xkb */, 78 char * /* elem */, 79 char * /* field */, 80 ExprDef * /* index */, 81 ExprDef * /* value */, 82 ActionInfo ** /* info_rtrn */ 83); 84 85extern void ActionsInit( 86 void 87); 88 89extern LookupEntry ctrlNames[]; 90 91#endif /* ACTION_H */ 92