📄 drpoint.c
字号:
#include "nxlib.h"intXDrawPoint(Display * display, Drawable d, GC gc, int x, int y){ GrPoint(d, gc->gid, x, y); return 1;}intXDrawPoints(Display * display, Drawable d, GC gc, XPoint * points, int npoints, int mode){ int i; if (mode == CoordModeOrigin) { for (i = 0; i < npoints; i++) GrPoint(d, gc->gid, points->x, points->y); } else { int prevx = 0, prevy = 0; for (i = 0; i < npoints; i++) { GrPoint(d, gc->gid, prevx + points->x, prevy + points->y); prevx += points->x; prevy += points->y; } } return 1;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -