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

📄 xlib.h

📁 在Linux下做的QuadTree的程序
💻 H
📖 第 1 页 / 共 5 页
字号:
	int ext_number;		/* extension number on this display */	struct _XExten *ext_procs; /* extensions initialized on this display */	/*	 * the following can be fixed size, as the protocol defines how	 * much address space is available. 	 * While this could be done using the extension vector, there	 * may be MANY events processed, so a search through the extension	 * list to find the right procedure for each event might be	 * expensive if many extensions are being used.	 */	Bool (*event_vec[128])();  /* vector for wire to event */	Status (*wire_vec[128])(); /* vector for event to wire */	KeySym lock_meaning;	   /* for XLookupString */	struct _XLockInfo *lock;   /* multi-thread state, display lock */	struct _XInternalAsync *async_handlers; /* for internal async */	unsigned long bigreq_size; /* max size of big requests */	struct _XLockPtrs *lock_fns; /* pointers to threads functions */	/* things above this line should not move, for binary compatibility */	struct _XKeytrans *key_bindings; /* for XLookupString */	Font cursor_font;	   /* for XCreateFontCursor */	struct _XDisplayAtoms *atoms; /* for XInternAtom */	unsigned int mode_switch;  /* keyboard group modifiers */	struct _XContextDB *context_db; /* context database */	Bool (**error_vec)();      /* vector for wire to error */	/*	 * Xcms information	 */	struct {	   XPointer defaultCCCs;  /* pointer to an array of default XcmsCCC */	   XPointer clientCmaps;  /* pointer to linked list of XcmsCmapRec */	   XPointer perVisualIntensityMaps;				  /* linked list of XcmsIntensityMap */	} cms;	struct _XIMFilter *im_filters;	struct _XSQEvent *qfree; /* unallocated event queue elements */	unsigned long next_event_serial_num; /* inserted into next queue elt */	int (*savedsynchandler)(); /* user synchandler when Xlib usurps */} Display;#if NeedFunctionPrototypes	/* prototypes require event type definitions */#undef _XEVENT_#endif#ifndef _XEVENT_#define XMaxTransChars 4/* * Definitions of specific events. */typedef struct {	int type;		/* of event */	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window window;	        /* "event" window it is reported relative to */	Window root;	        /* root window that the event occured on */	Window subwindow;	/* child window */	Time time;		/* milliseconds */	int x, y;		/* pointer x, y coordinates in event window */	int x_root, y_root;	/* coordinates relative to root */	unsigned int state;	/* key or button mask */	unsigned int keycode;	/* detail */	Bool same_screen;	/* same screen flag */        char trans_chars[XMaxTransChars];				/* translated characters */	int nchars;} XKeyEvent;typedef XKeyEvent XKeyPressedEvent;typedef XKeyEvent XKeyReleasedEvent;typedef struct {	int type;		/* of event */	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window window;	        /* "event" window it is reported relative to */	Window root;	        /* root window that the event occured on */	Window subwindow;	/* child window */	Time time;		/* milliseconds */	int x, y;		/* pointer x, y coordinates in event window */	int x_root, y_root;	/* coordinates relative to root */	unsigned int state;	/* key or button mask */	unsigned int button;	/* detail */	Bool same_screen;	/* same screen flag */} XButtonEvent;typedef XButtonEvent XButtonPressedEvent;typedef XButtonEvent XButtonReleasedEvent;typedef struct {	int type;		/* of event */	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window window;	        /* "event" window reported relative to */	Window root;	        /* root window that the event occured on */	Window subwindow;	/* child window */	Time time;		/* milliseconds */	int x, y;		/* pointer x, y coordinates in event window */	int x_root, y_root;	/* coordinates relative to root */	unsigned int state;	/* key or button mask */	char is_hint;		/* detail */	Bool same_screen;	/* same screen flag */} XMotionEvent;typedef XMotionEvent XPointerMovedEvent;typedef struct {	int type;		/* of event */	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window window;	        /* "event" window reported relative to */	Window root;	        /* root window that the event occured on */	Window subwindow;	/* child window */	Time time;		/* milliseconds */	int x, y;		/* pointer x, y coordinates in event window */	int x_root, y_root;	/* coordinates relative to root */	int mode;		/* NotifyNormal, NotifyGrab, NotifyUngrab */	int detail;	/*	 * NotifyAncestor, NotifyVirtual, NotifyInferior, 	 * NotifyNonlinear,NotifyNonlinearVirtual	 */	Bool same_screen;	/* same screen flag */	Bool focus;		/* boolean focus */	unsigned int state;	/* key or button mask */} XCrossingEvent;typedef XCrossingEvent XEnterWindowEvent;typedef XCrossingEvent XLeaveWindowEvent;typedef struct {	int type;		/* FocusIn or FocusOut */	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window window;		/* window of event */	int mode;		/* NotifyNormal, NotifyGrab, NotifyUngrab */	int detail;	/*	 * NotifyAncestor, NotifyVirtual, NotifyInferior, 	 * NotifyNonlinear,NotifyNonlinearVirtual, NotifyPointer,	 * NotifyPointerRoot, NotifyDetailNone 	 */} XFocusChangeEvent;typedef XFocusChangeEvent XFocusInEvent;typedef XFocusChangeEvent XFocusOutEvent;/* generated on EnterWindow and FocusIn  when KeyMapState selected */typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window window;	char key_vector[32];} XKeymapEvent;	typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window window;	int x, y;	int width, height;	int count;		/* if non-zero, at least this many more */} XExposeEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Drawable drawable;	int x, y;	int width, height;	int count;		/* if non-zero, at least this many more */	int major_code;		/* core is CopyArea or CopyPlane */	int minor_code;		/* not defined in the core */} XGraphicsExposeEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Drawable drawable;	int major_code;		/* core is CopyArea or CopyPlane */	int minor_code;		/* not defined in the core */} XNoExposeEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window window;	int state;		/* Visibility state */} XVisibilityEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window parent;		/* parent of the window */	Window window;		/* window id of window created */	int x, y;		/* window location */	int width, height;	/* size of window */	int border_width;	/* border width */	Bool override_redirect;	/* creation should be overridden */} XCreateWindowEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window event;	Window window;} XDestroyWindowEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window event;	Window window;	Bool from_configure;} XUnmapEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window event;	Window window;	Bool override_redirect;	/* boolean, is override set... */} XMapEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window parent;	Window window;} XMapRequestEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window event;	Window window;	Window parent;	int x, y;	Bool override_redirect;} XReparentEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window event;	Window window;	int x, y;	int width, height;	int border_width;	Window above;	Bool override_redirect;} XConfigureEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window event;	Window window;	int x, y;} XGravityEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window window;	int width, height;} XResizeRequestEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window parent;	Window window;	int x, y;	int width, height;	int border_width;	Window above;	int detail;		/* Above, Below, TopIf, BottomIf, Opposite */	unsigned long value_mask;} XConfigureRequestEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window event;	Window window;	int place;		/* PlaceOnTop, PlaceOnBottom */} XCirculateEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window parent;	Window window;	int place;		/* PlaceOnTop, PlaceOnBottom */} XCirculateRequestEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window window;	Atom atom;	Time time;	int state;		/* NewValue, Deleted */} XPropertyEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window window;	Atom selection;	Time time;} XSelectionClearEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window owner;	Window requestor;	Atom selection;	Atom target;	Atom property;	Time time;} XSelectionRequestEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window requestor;	Atom selection;	Atom target;	Atom property;		/* ATOM or None */	Time time;} XSelectionEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window window;	Colormap colormap;	/* COLORMAP or None */#if defined(__cplusplus) || defined(c_plusplus)	Bool c_new;		/* C++ */#else	Bool new;#endif	int state;		/* ColormapInstalled, ColormapUninstalled */} XColormapEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window window;	Atom message_type;	int format;	union {		char b[20];		short s[10];		long l[5];		} data;} XClientMessageEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;	/* Display the event was read from */	Window window;		/* unused */	int request;		/* one of MappingModifier, MappingKeyboard,				   MappingPointer */	int first_keycode;	/* first keycode */	int count;		/* defines range of change w. first_keycode*/} XMappingEvent;typedef struct {	int type;	Display *display;	/* Display the event was read from */	XID resourceid;		/* resource id */	unsigned long serial;	/* serial number of failed request */	unsigned char error_code;	/* error code of failed request */	unsigned char request_code;	/* Major op-code of failed request */	unsigned char minor_code;	/* Minor op-code of failed request */} XErrorEvent;typedef struct {	int type;	unsigned long serial;	/* # of last request processed by server */	Bool send_event;	/* true if this came from a SendEvent request */	Display *display;/* Display the event was read from */	Window window;	/* window on which event was requested in event mask */} XAnyEvent;/* * this union is defined so Xlib can always use the same sized * event structure internally, to avoid memory fragmentation. */typedef union _XEvent {        int type;		/* must not be changed; first element */	XAnyEvent xany;	XKeyEvent xkey;	XButtonEvent xbutton;	XMotionEvent xmotion;	XCrossingEvent xcrossing;	XFocusChangeEvent xfocus;	XExposeEvent xexpose;	XGraphicsExposeEvent xgraphicsexpose;	XNoExposeEvent xnoexpose;	XVisibilityEvent xvisibility;	XCreateWindowEvent xcreatewindow;	XDestroyWindowEvent xdestroywindow;	XUnmapEvent xunmap;	XMapEvent xmap;	XMapRequestEvent xmaprequest;	XReparentEvent xreparent;	XConfigureEvent xconfigure;	XGravityEvent xgravity;	XResizeRequestEvent xresizerequest;	XConfigureRequestEvent xconfigurerequest;	XCirculateEvent xcirculate;	XCirculateRequestEvent xcirculaterequest;	XPropertyEvent xproperty;	XSelectionClearEvent xselectionclear;	XSelectionRequestEvent xselectionrequest;	XSelectionEvent xselection;	XColormapEvent xcolormap;	XClientMessageEvent xclient;	XMappingEvent xmapping;	XErrorEvent xerror;	XKeymapEvent xkeymap;	long pad[24];} XEvent;#endif#define XAllocID(dpy) ((*(dpy)->resource_alloc)((dpy)))/* * per character font metric information. */typedef struct {

⌨️ 快捷键说明

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