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