📄 dix.h
字号:
#endif);extern void ProcessWorkQueue(#if NeedFunctionPrototypes void#endif);extern Bool QueueWorkProc(#if NeedFunctionPrototypes Bool (* /*function*/)(#if NeedNestedPrototypes ClientPtr /*clientUnused*/, pointer /*closure*/#endif ), ClientPtr /*client*/, pointer /*closure*/#endif);typedef Bool (* ClientSleepProcPtr)(#if NeedFunctionPrototypes ClientPtr /*client*/, pointer /*closure*/#endif);extern Bool ClientSleep(#if NeedFunctionPrototypes ClientPtr /*client*/, ClientSleepProcPtr /* function */, pointer /*closure*/#endif);extern Bool ClientSignal(#if NeedFunctionPrototypes ClientPtr /*client*/#endif);extern void ClientWakeup(#if NeedFunctionPrototypes ClientPtr /*client*/#endif);extern Bool ClientIsAsleep(#if NeedFunctionPrototypes ClientPtr /*client*/#endif);/* atom.c */extern Atom MakeAtom(#if NeedFunctionPrototypes char * /*string*/, unsigned /*len*/, Bool /*makeit*/#endif);extern Bool ValidAtom(#if NeedFunctionPrototypes Atom /*atom*/#endif);extern char *NameForAtom(#if NeedFunctionPrototypes Atom /*atom*/#endif);extern void AtomError(#if NeedFunctionPrototypes void#endif);extern void FreeAllAtoms(#if NeedFunctionPrototypes void#endif);extern void InitAtoms(#if NeedFunctionPrototypes void#endif);/* events.c */extern void SetMaskForEvent(#if NeedFunctionPrototypes Mask /* mask */, int /* event */#endif);extern Bool PointerConfinedToScreen(#if NeedFunctionPrototypes void#endif);extern Bool IsParent(#if NeedFunctionPrototypes WindowPtr /* maybeparent */, WindowPtr /* child */#endif);extern WindowPtr GetCurrentRootWindow(#if NeedFunctionPrototypes void#endif);extern WindowPtr GetSpriteWindow(#if NeedFunctionPrototypes void#endif);extern void GetSpritePosition(#if NeedFunctionPrototypes int * /* px */, int * /* py */#endif);extern void NoticeEventTime(#if NeedFunctionPrototypes xEventPtr /* xE */#endif);extern void EnqueueEvent(#if NeedFunctionPrototypes xEventPtr /* xE */, DeviceIntPtr /* device */, int /* count */#endif);extern void ComputeFreezes(#if NeedFunctionPrototypes void#endif);extern void CheckGrabForSyncs(#if NeedFunctionPrototypes DeviceIntPtr /* dev */, Bool /* thisMode */, Bool /* otherMode */#endif);extern void ActivatePointerGrab(#if NeedFunctionPrototypes DeviceIntPtr /* mouse */, GrabPtr /* grab */, TimeStamp /* time */, Bool /* autoGrab */#endif);extern void DeactivatePointerGrab(#if NeedFunctionPrototypes DeviceIntPtr /* mouse */#endif);extern void ActivateKeyboardGrab(#if NeedFunctionPrototypes DeviceIntPtr /* keybd */, GrabPtr /* grab */, TimeStamp /* time */, Bool /* passive */#endif);extern void DeactivateKeyboardGrab(#if NeedFunctionPrototypes DeviceIntPtr /* keybd */#endif);extern void AllowSome(#if NeedFunctionPrototypes ClientPtr /* client */, TimeStamp /* time */, DeviceIntPtr /* thisDev */, int /* newState */#endif);extern void ReleaseActiveGrabs(#if NeedFunctionPrototypesClientPtr client#endif);extern int DeliverEventsToWindow(#if NeedFunctionPrototypes WindowPtr /* pWin */, xEventPtr /* pEvents */, int /* count */, Mask /* filter */, GrabPtr /* grab */, int /* mskidx */#endif);extern int DeliverDeviceEvents(#if NeedFunctionPrototypes WindowPtr /* pWin */, xEventPtr /* xE */, GrabPtr /* grab */, WindowPtr /* stopAt */, DeviceIntPtr /* dev */, int /* count */#endif);extern void DefineInitialRootWindow(#if NeedFunctionPrototypes WindowPtr /* win */#endif);extern void WindowHasNewCursor(#if NeedFunctionPrototypes WindowPtr /* pWin */#endif);extern Bool CheckDeviceGrabs(#if NeedFunctionPrototypes DeviceIntPtr /* device */, xEventPtr /* xE */, int /* checkFirst */, int /* count */#endif);extern void DeliverFocusedEvent(#if NeedFunctionPrototypes DeviceIntPtr /* keybd */, xEventPtr /* xE */, WindowPtr /* window */, int /* count */#endif);extern void DeliverGrabbedEvent(#if NeedFunctionPrototypes xEventPtr /* xE */, DeviceIntPtr /* thisDev */, Bool /* deactivateGrab */, int /* count */#endif);extern void RecalculateDeliverableEvents(#if NeedFunctionPrototypes WindowPtr /* pWin */#endif);extern int OtherClientGone(#if NeedFunctionPrototypes pointer /* value */, XID /* id */#endif);extern void DoFocusEvents(#if NeedFunctionPrototypes DeviceIntPtr /* dev */, WindowPtr /* fromWin */, WindowPtr /* toWin */, int /* mode */#endif);extern int SetInputFocus(#if NeedFunctionPrototypes ClientPtr /* client */, DeviceIntPtr /* dev */, Window /* focusID */, CARD8 /* revertTo */, Time /* ctime */, Bool /* followOK */#endif);extern int GrabDevice(#if NeedFunctionPrototypes ClientPtr /* client */, DeviceIntPtr /* dev */, unsigned /* this_mode */, unsigned /* other_mode */, Window /* grabWindow */, unsigned /* ownerEvents */, Time /* ctime */, Mask /* mask */, CARD8 * /* status */#endif);extern void InitEvents(#if NeedFunctionPrototypes void#endif);extern void DeleteWindowFromAnyEvents(#if NeedFunctionPrototypes WindowPtr /* pWin */, Bool /* freeResources */#endif);extern void CheckCursorConfinement(#if NeedFunctionPrototypes WindowPtr /* pWin */#endif);extern Mask EventMaskForClient(#if NeedFunctionPrototypes WindowPtr /* pWin */, ClientPtr /* client */#endif);extern int DeliverEvents(#if NeedFunctionPrototypes WindowPtr /*pWin*/, xEventPtr /*xE*/, int /*count*/, WindowPtr /*otherParent*/#endif);extern void WriteEventsToClient(#if NeedFunctionPrototypes ClientPtr /*pClient*/, int /*count*/, xEventPtr /*events*/#endif);extern int TryClientEvents(#if NeedFunctionPrototypes ClientPtr /*client*/, xEventPtr /*pEvents*/, int /*count*/, Mask /*mask*/, Mask /*filter*/, GrabPtr /*grab*/#endif);extern int EventSelectForWindow(#if NeedFunctionPrototypes WindowPtr /*pWin*/, ClientPtr /*client*/, Mask /*mask*/#endif);extern int EventSuppressForWindow(#if NeedFunctionPrototypes WindowPtr /*pWin*/, ClientPtr /*client*/, Mask /*mask*/, Bool * /*checkOptional*/#endif);extern int MaybeDeliverEventsToClient(#if NeedFunctionPrototypes WindowPtr /*pWin*/, xEventPtr /*pEvents*/, int /*count*/, Mask /*filter*/, ClientPtr /*dontClient*/#endif);extern void WindowsRestructured(#if NeedFunctionPrototypes void#endif);extern void ResetClientPrivates(#if NeedFunctionPrototypes void#endif);extern int AllocateClientPrivateIndex(#if NeedFunctionPrototypes void#endif);extern Bool AllocateClientPrivate(#if NeedFunctionPrototypes int /*index*/, unsigned /*amount*/#endif);/* * callback manager stuff */#ifndef _XTYPEDEF_CALLBACKLISTPTRtypedef struct _CallbackList *CallbackListPtr; /* also in misc.h */#define _XTYPEDEF_CALLBACKLISTPTR#endiftypedef void (*CallbackProcPtr) (#if NeedNestedPrototypes CallbackListPtr *, pointer, pointer#endif);typedef Bool (*AddCallbackProcPtr) (#if NeedNestedPrototypes CallbackListPtr *, CallbackProcPtr, pointer#endif);typedef Bool (*DeleteCallbackProcPtr) (#if NeedNestedPrototypes CallbackListPtr *, CallbackProcPtr, pointer#endif);typedef void (*CallCallbacksProcPtr) (#if NeedNestedPrototypes CallbackListPtr *, pointer#endif);typedef void (*DeleteCallbackListProcPtr) (#if NeedNestedPrototypes CallbackListPtr *#endif);typedef struct _CallbackProcs { AddCallbackProcPtr AddCallback; DeleteCallbackProcPtr DeleteCallback; CallCallbacksProcPtr CallCallbacks; DeleteCallbackListProcPtr DeleteCallbackList;} CallbackFuncsRec, *CallbackFuncsPtr;extern Bool CreateCallbackList(#if NeedFunctionPrototypes CallbackListPtr * /*pcbl*/, CallbackFuncsPtr /*cbfuncs*/#endif);extern Bool AddCallback(#if NeedFunctionPrototypes CallbackListPtr * /*pcbl*/, CallbackProcPtr /*callback*/, pointer /*data*/#endif);extern Bool DeleteCallback(#if NeedFunctionPrototypes CallbackListPtr * /*pcbl*/, CallbackProcPtr /*callback*/, pointer /*data*/#endif);extern void CallCallbacks(#if NeedFunctionPrototypes CallbackListPtr * /*pcbl*/, pointer /*call_data*/#endif);extern void DeleteCallbackList(#if NeedFunctionPrototypes CallbackListPtr * /*pcbl*/#endif);extern void InitCallbackManager(#if NeedFunctionPrototypes void#endif);/* * ServerGrabCallback stuff */extern CallbackListPtr ServerGrabCallback;typedef enum {SERVER_GRABBED, SERVER_UNGRABBED, CLIENT_PERVIOUS, CLIENT_IMPERVIOUS } ServerGrabState;typedef struct { ClientPtr client; ServerGrabState grabstate;} ServerGrabInfoRec;/* * EventCallback stuff */extern CallbackListPtr EventCallback;typedef struct { ClientPtr client; xEventPtr events; int count;} EventInfoRec;/* * DeviceEventCallback stuff */extern CallbackListPtr DeviceEventCallback;typedef struct { xEventPtr events; int count;} DeviceEventInfoRec;#endif /* DIX_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -