drrect.c

来自「用于nano-x的xlib」· C语言 代码 · 共 25 行

C
25
字号
#include "nxlib.h"intXDrawRectangle(Display *display, Drawable d, GC gc, int x, int y,	unsigned int width, unsigned int height){	/* X11 width/height is one less than Nano-X width/height*/	GrRect(d, gc->gid, x, y, width+1, height+1);	return 1;}intXDrawRectangles(Display *display, Drawable d, GC gc, XRectangle *rect,	int nrect){	int i;	for (i = 0; i < nrect; i++) {		/* X11 width/height is one less than Nano-X width/height*/		GrRect(d, gc->gid, rect[i].x, rect[i].y, rect[i].width+1,		       rect[i].height+1);	}	return 1;}

⌨️ 快捷键说明

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