1 /* 2 * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors 3 * Copyright (C) 2004-2013 Kim Woelders 4 * 5 * Permission is hereby granted, free of charge, to any person obtaining a copy 6 * of this software and associated documentation files (the "Software"), to 7 * deal in the Software without restriction, including without limitation the 8 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 9 * sell copies of the Software, and to permit persons to whom the Software is 10 * furnished to do so, subject to the following conditions: 11 * 12 * The above copyright notice and this permission notice shall be included in 13 * all copies of the Software, its documentation and marketing & publicity 14 * materials, and acknowledgment shall be given in the documentation, materials 15 * and software packages that this Software was used. 16 * 17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 20 * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 21 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 */ 24 #ifndef _ACLASS_H 25 #define _ACLASS_H 26 27 #include "etypes.h" 28 #include "xtypes.h" 29 30 /* aclass.c */ 31 int AclassConfigLoad(FILE * fs); 32 ActionClass *ActionclassCreate(const char *name, int global); 33 Action *ActionCreate(char event, char anymod, int mod, int anybut, 34 int but, char anykey, const char *key, 35 const char *tooltipstring); 36 void ActionAddTo(Action * aa, const char *params); 37 void ActionclassAddAction(ActionClass * ac, Action * aa); 38 void ActionclassSetTooltipString(ActionClass * ac, 39 const char *tts); 40 ActionClass *ActionclassFind(const char *name); 41 ActionClass *ActionclassAlloc(const char *name); 42 void ActionclassFree(ActionClass * ac); 43 const char *ActionclassGetName(ActionClass * ac); 44 const char *ActionclassGetTooltipString(ActionClass * ac); 45 int ActionclassGetActionCount(ActionClass * ac); 46 Action *ActionclassGetAction(ActionClass * ac, int ix); 47 int ActionclassEvent(ActionClass * ac, XEvent * ev, 48 EWin * ewin); 49 int ActionclassesGlobalEvent(XEvent * ev); 50 void ActionclassesReload(void); 51 52 const char *ActionGetTooltipString(Action * aa); 53 int ActionGetAnybutton(Action * aa); 54 int ActionGetEvent(Action * aa); 55 int ActionGetButton(Action * aa); 56 int ActionGetModifiers(Action * aa); 57 58 void GrabButtonGrabs(Win win); 59 void UnGrabButtonGrabs(Win win); 60 61 #endif /* _ACLASS_H */ 62