⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fontsel.h

📁 nedit 是一款linux下的开发源码的功能强大的编辑器
💻 H
字号:
/* $Id: fontsel.h,v 1.9 2003/05/29 21:07:53 tringali Exp $ */#ifndef NEDIT_FONTSEL_H_INCLUDED#define NEDIT_FONTSEL_H_INCLUDED#include <X11/Intrinsic.h>/********************************************************************************                                                                              **     FontSel ()                                                               **                                                                              **                                                                              **            Function to put up a modal font selection dialog box. The purpose **            of this routine is to allow the user to interactively view sample **            fonts and to choose a font for current use.                       **                                                                              **     Arguments:                                                               **                                                                              **            Widget	parent 		- parent widget ID                     **                                                                              **            int        showPropFont    - ONLY_FIXED : shows only fixed fonts  **                                                      doesn't show prop font  **                                                      toggle button also.     **                                         PREF_FIXED : can select either fixed **                                                      or proportional fonts;  **                                                      but starting option is  **                                                      Fixed fonts.            **                                         PREF_PROP  : can select either fixed **                                                      or proportional fonts;  **                                                      but starting option is  **                                                      proportional fonts.     **                                                                              **           char *	currFont        - ASCII string that contains the name  **                                         of the currently selected font.      **                                                                              **     Returns:                                                                 **                                                                              **           pointer to an ASCII character string that contains the name of     **           the selected font (in X format for naming fonts); it is the users  **           responsibility to free the space allocated to this string.         **                                                                              **     Comments:                                                                **                                                                              **           The calling function has to call the appropriate routines to set   **           the current font to the one represented by the returned string.    **                                                                              ********************************************************************************//* constant values for controlling the proportional font toggle */#define ONLY_FIXED	0#define PREF_FIXED	1#define PREF_PROP	2/* function prototype */char    *FontSel(Widget parent, int showPropFont, const char *currFont,        Pixel sampleFG, Pixel sampleBG);#endif /* NEDIT_FONTSEL_H_INCLUDED */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -