text.c

来自「Nxlib,一个模拟xlib的程序。使用microwindows的库来运行需要x」· C语言 代码 · 共 25 行

C
25
字号
#include "nxlib.h"intXDrawString(Display *dpy, Drawable d, GC gc, int x, int y,	_Xconst char *string, int length){   	if (length > 0)		GrText(d, gc->gid, x, y, (char *)string, length,		       GR_TFASCII|GR_TFBASELINE);	return 0;}intXDrawImageString(Display *dpy, Drawable d, GC gc, int x, int y,	_Xconst char *string, int length){	if (length > 0) {		GrSetGCUseBackground(gc->gid, GR_TRUE);		GrText(d, gc->gid, x, y, (char *)string, length,		       GR_TFASCII|GR_TFBASELINE);		GrSetGCUseBackground(gc->gid, GR_FALSE);	}	return 0;}

⌨️ 快捷键说明

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