UNIXworkcode

1 /******************************************************************************* 2 * * 3 * calltips.h -- Nirvana Editor Calltips Header File * 4 * * 5 * Copyright 2004 The NEdit Developers * 6 * * 7 * This is free software; you can redistribute it and/or modify it under the * 8 * terms of the GNU General Public License as published by the Free Software * 9 * Foundation; either version 2 of the License, or (at your option) any later * 10 * version. In addition, you may distribute versions of this program linked to * 11 * Motif or Open Motif. See README for details. * 12 * * 13 * This software is distributed in the hope that it will be useful, but WITHOUT * 14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 * more details. * 17 * * 18 * You should have received a copy of the GNU General Public License along with * 19 * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 * Place, Suite 330, Boston, MA 02111-1307 USA * 21 * * 22 * Nirvana Text Editor * 23 * July 31, 2001 * 24 * * 25 *******************************************************************************/ 26 27 #ifndef NEDIT_CALLTIPS_H_INCLUDED 28 #define NEDIT_CALLTIPS_H_INCLUDED 29 30 #include "nedit.h" /* For WindowInfo */ 31 #include "textDisp.h" /* for textDisp */ 32 33 #define NEDIT_DEFAULT_CALLTIP_FG "black" 34 #define NEDIT_DEFAULT_CALLTIP_BG "LemonChiffon1" 35 36 37 enum TipHAlignMode {TIP_LEFT, TIP_CENTER, TIP_RIGHT}; 38 enum TipVAlignMode {TIP_ABOVE, TIP_BELOW}; 39 enum TipAlignStrict {TIP_SLOPPY, TIP_STRICT}; 40 41 int ShowCalltip(WindowInfo *window, char *text, Boolean anchored, 42 int pos, int hAlign, int vAlign, int alignMode); 43 void KillCalltip(WindowInfo *window, int calltipID); 44 void TextDKillCalltip(textDisp *textD, int calltipID); 45 int GetCalltipID(WindowInfo *window, int calltipID); 46 void TextDRedrawCalltip(textDisp *textD, int calltipID); 47 48 #endif /* ifndef NEDIT_CALLTIPS_H_INCLUDED */ 49