text16.c

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

C
27
字号
#include "nxlib.h"intXDrawString16(Display *dpy, Drawable d, GC gc, int x, int y,	_Xconst XChar2b *string, int length){   printf("XDrawString16 %d %x %x\n", length, string->byte1, string->byte2);	if (length > 0)		GrText(d, gc->gid, x, y, (void *)string, length, 		       GR_TFXCHAR2B|GR_TFBASELINE);	return 0;}intXDrawImageString16(Display *dpy, Drawable d, GC gc, int x, int y,	_Xconst XChar2b *string, int length){	if (length > 0) {		GrSetGCUseBackground(gc->gid, GR_TRUE);		GrText(d, gc->gid, x, y, (void *)string, length, 		       GR_TFXCHAR2B|GR_TFBASELINE);		GrSetGCUseBackground(gc->gid, GR_FALSE);	}	return 0;}

⌨️ 快捷键说明

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