1 /* $Id: fontsel.h,v 1.8 2003/03/05 23:51:01 n8gray Exp $ */
3 #ifndef NEDIT_FONTSEL_H_INCLUDED
4 #define NEDIT_FONTSEL_H_INCLUDED
6 #include <X11/Intrinsic.h>
8 /*******************************************************************************
13 * Function to put up a modal font selection dialog box. The purpose *
14 * of this routine is to allow the user to interactively view sample *
15 * fonts and to choose a font for current use. *
19 * Widget parent - parent widget ID *
21 * int showPropFont - ONLY_FIXED : shows only fixed fonts *
22 * doesn't show prop font *
23 * toggle button also. *
24 * PREF_FIXED : can select either fixed *
25 * or proportional fonts; *
26 * but starting option is *
28 * PREF_PROP : can select either fixed *
29 * or proportional fonts; *
30 * but starting option is *
31 * proportional fonts. *
33 * char * currFont - ASCII string that contains the name *
34 * of the currently selected font. *
38 * pointer to an ASCII character string that contains the name of *
39 * the selected font (in X format for naming fonts); it is the users *
40 * responsibility to free the space allocated to this string. *
44 * The calling function has to call the appropriate routines to set *
45 * the current font to the one represented by the returned string. *
47 *******************************************************************************/
49 /* constant values for controlling the proportional font toggle */
56 /* function prototype */
58 char *FontSel(Widget parent
, int showPropFont
, const char *currFont
,
59 const Pixel sampleFG
, const Pixel sampleBG
);
61 #endif /* NEDIT_FONTSEL_H_INCLUDED */