文件名称:draw
介绍说明--下载内容均来自于网络,请自行研究使用
draw_create(Display *dpy, int screen, Window win, unsigned int w, unsigned int h) {
Draw *draw = (Draw *)calloc(1, sizeof(Draw))
draw->dpy = dpy
draw->screen = screen
draw->win = win
draw->w = w
draw->h = h
draw->drawable = XCreatePixmap(dpy, win, w, h, DefaultDepth(dpy, screen))
draw->gc = XCreateGC(dpy, win, 0, NULL)
Draw *draw = (Draw *)calloc(1, sizeof(Draw))
draw->dpy = dpy
draw->screen = screen
draw->win = win
draw->w = w
draw->h = h
draw->drawable = XCreatePixmap(dpy, win, w, h, DefaultDepth(dpy, screen))
draw->gc = XCreateGC(dpy, win, 0, NULL)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
draw.c