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

📄 windowproperty.c

📁 Nxlib,一个模拟xlib的程序。使用microwindows的库来运行需要xlib支持的程序。
💻 C
字号:
#include <string.h>#include "nxlib.h"intXGetWindowProperty(Display * dpy, Window win, Atom prop, long offset,	long len, Bool bDel, Atom req, Atom * type, int *format,	unsigned long *nitems, unsigned long *bytes, unsigned char **data){	*type = None;	*format = 0;	*data = 0;	*nitems = 0;	*bytes = 0;	return 1;		/* failure */}StatusXGetWindowAttributes(Display * display, Window w, XWindowAttributes * ret){	GR_WINDOW_INFO info;	memset(ret, 0, sizeof(*ret));	GrGetWindowInfo(w, &info);	ret->x = info.x;	ret->y = info.y;	ret->width = info.width;	ret->height = info.height;	ret->border_width = info.bordersize;	ret->depth = XDefaultDepth(display, 0);	ret->visual = XDefaultVisual(display, 0);	ret->class = ret->visual->class;	ret->root = GR_ROOT_WINDOW_ID;	ret->colormap = XDefaultColormap(display, 0);	if (info.mapped)		ret->map_state = info.realized? IsViewable: IsUnviewable;	else ret->map_state = IsUnmapped;	//FIXME ret->override_redirect = (info.props & GR_WM_PROPS_NODECORATE) != 0;	ret->screen = &display->screens[0];	return 1;}

⌨️ 快捷键说明

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