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

📄 text16.c

📁 Nxlib,一个模拟xlib的程序。使用microwindows的库来运行需要xlib支持的程序。
💻 C
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -