📄 intrinsic.h
字号:
#if NeedFunctionPrototypes void#endif);extern void XtAppSetFallbackResources(#if NeedFunctionPrototypes XtAppContext /* app_context */, String* /* specification_list */#endif);extern void XtDestroyApplicationContext(#if NeedFunctionPrototypes XtAppContext /* app_context */#endif);extern void XtInitializeWidgetClass(#if NeedFunctionPrototypes WidgetClass /* widget_class */#endif);extern XtAppContext XtWidgetToApplicationContext(#if NeedFunctionPrototypes Widget /* widget */#endif);extern XtAppContext XtDisplayToApplicationContext(#if NeedFunctionPrototypes Display* /* dpy */#endif);extern XrmDatabase XtDatabase(#if NeedFunctionPrototypes Display* /* dpy */#endif);extern XrmDatabase XtScreenDatabase(#if NeedFunctionPrototypes Screen* /* screen */#endif);extern void XtCloseDisplay(#if NeedFunctionPrototypes Display* /* dpy */#endif);extern void XtGetApplicationResources(#if NeedFunctionPrototypes Widget /* widget */, XtPointer /* base */, XtResourceList /* resources */, Cardinal /* num_resources */, ArgList /* args */, Cardinal /* num_args */#endif);extern void XtVaGetApplicationResources(#if NeedVarargsPrototypes Widget /* widget */, XtPointer /* base */, XtResourceList /* resources */, Cardinal /* num_resources */, ...#endif);extern void XtGetSubresources(#if NeedFunctionPrototypes Widget /* widget */, XtPointer /* base */, _Xconst _XtString /* name */, _Xconst _XtString /* class */, XtResourceList /* resources */, Cardinal /* num_resources */, ArgList /* args */, Cardinal /* num_args */#endif);extern void XtVaGetSubresources(#if NeedVarargsPrototypes Widget /* widget */, XtPointer /* base */, _Xconst _XtString /* name */, _Xconst _XtString /* class */, XtResourceList /* resources */, Cardinal /* num_resources */, ...#endif);extern void XtSetValues(#if NeedFunctionPrototypes Widget /* widget */, ArgList /* args */, Cardinal /* num_args */#endif);extern void XtVaSetValues(#if NeedVarargsPrototypes Widget /* widget */, ...#endif);extern void XtGetValues(#if NeedFunctionPrototypes Widget /* widget */, ArgList /* args */, Cardinal /* num_args */#endif);extern void XtVaGetValues(#if NeedVarargsPrototypes Widget /* widget */, ...#endif);extern void XtSetSubvalues(#if NeedFunctionPrototypes XtPointer /* base */, XtResourceList /* resources */, Cardinal /* num_resources */, ArgList /* args */, Cardinal /* num_args */#endif);extern void XtVaSetSubvalues(#if NeedVarargsPrototypes XtPointer /* base */, XtResourceList /* resources */, Cardinal /* num_resources */, ...#endif);extern void XtGetSubvalues(#if NeedFunctionPrototypes XtPointer /* base */, XtResourceList /* resources */, Cardinal /* num_resources */, ArgList /* args */, Cardinal /* num_args */#endif);extern void XtVaGetSubvalues(#if NeedVarargsPrototypes XtPointer /* base */, XtResourceList /* resources */, Cardinal /* num_resources */, ...#endif);extern void XtGetResourceList(#if NeedFunctionPrototypes WidgetClass /* widget_class */, XtResourceList* /* resources_return */, Cardinal* /* num_resources_return */#endif);extern void XtGetConstraintResourceList(#if NeedFunctionPrototypes WidgetClass /* widget_class */, XtResourceList* /* resources_return */, Cardinal* /* num_resources_return */#endif);#define XtUnspecifiedPixmap ((Pixmap)2)#define XtUnspecifiedShellInt (-1)#define XtUnspecifiedWindow ((Window)2)#define XtUnspecifiedWindowGroup ((Window)3)#define XtDefaultForeground "XtDefaultForeground"#define XtDefaultBackground "XtDefaultBackground"#define XtDefaultFont "XtDefaultFont"#define XtDefaultFontSet "XtDefaultFontSet"#if defined(CRAY) || defined(__arm)#if __STDC__#define XtOffset(p_type,field) _Offsetof(p_type,field)#else#ifdef CRAY2#define XtOffset(p_type,field) \ (sizeof(int)*((unsigned int)&(((p_type)NULL)->field)))#else /* !CRAY2 */#define XtOffset(p_type,field) ((unsigned int)&(((p_type)NULL)->field))#endif /* !CRAY2 */#endif /* __STDC__ */#else /* ! (CRAY || __arm) */#define XtOffset(p_type,field) \ ((Cardinal) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL)))#endif /* !CRAY */#ifdef offsetof#define XtOffsetOf(s_type,field) offsetof(s_type,field)#else#define XtOffsetOf(s_type,field) XtOffset(s_type*,field)#endif/************************************************************* * * Error Handling * ************************************************************/extern XtErrorMsgHandler XtAppSetErrorMsgHandler(#if NeedFunctionPrototypes XtAppContext /* app_context */, XtErrorMsgHandler /* handler */#endif);extern void XtSetErrorMsgHandler( /* obsolete */#if NeedFunctionPrototypes XtErrorMsgHandler /* handler */#endif);extern XtErrorMsgHandler XtAppSetWarningMsgHandler(#if NeedFunctionPrototypes XtAppContext /* app_context */, XtErrorMsgHandler /* handler */#endif);extern void XtSetWarningMsgHandler( /* obsolete */#if NeedFunctionPrototypes XtErrorMsgHandler /* handler */#endif);extern void XtAppErrorMsg(#if NeedFunctionPrototypes XtAppContext /* app_context */, _Xconst _XtString /* name */, _Xconst _XtString /* type */, _Xconst _XtString /* class */, _Xconst _XtString /* default */, String* /* params */, Cardinal* /* num_params */#endif);extern void XtErrorMsg( /* obsolete */#if NeedFunctionPrototypes _Xconst _XtString /* name */, _Xconst _XtString /* type */, _Xconst _XtString /* class */, _Xconst _XtString /* default */, String* /* params */, Cardinal* /* num_params */#endif);extern void XtAppWarningMsg(#if NeedFunctionPrototypes XtAppContext /* app_context */, _Xconst _XtString /* name */, _Xconst _XtString /* type */, _Xconst _XtString /* class */, _Xconst _XtString /* default */, String* /* params */, Cardinal* /* num_params */#endif);extern void XtWarningMsg( /* obsolete */#if NeedFunctionPrototypes _Xconst _XtString /* name */, _Xconst _XtString /* type */, _Xconst _XtString /* class */, _Xconst _XtString /* default */, String* /* params */, Cardinal* /* num_params */#endif);extern XtErrorHandler XtAppSetErrorHandler(#if NeedFunctionPrototypes XtAppContext /* app_context */, XtErrorHandler /* handler */#endif);extern void XtSetErrorHandler( /* obsolete */#if NeedFunctionPrototypes XtErrorHandler /* handler */#endif);extern XtErrorHandler XtAppSetWarningHandler(#if NeedFunctionPrototypes XtAppContext /* app_context */, XtErrorHandler /* handler */#endif);extern void XtSetWarningHandler( /* obsolete */#if NeedFunctionPrototypes XtErrorHandler /* handler */#endif);extern void XtAppError(#if NeedFunctionPrototypes XtAppContext /* app_context */, _Xconst _XtString /* message */#endif);extern void XtError( /* obsolete */#if NeedFunctionPrototypes _Xconst _XtString /* message */#endif);extern void XtAppWarning(#if NeedFunctionPrototypes XtAppContext /* app_context */, _Xconst _XtString /* message */#endif);extern void XtWarning( /* obsolete */#if NeedFunctionPrototypes _Xconst _XtString /* message */#endif);extern XrmDatabase *XtAppGetErrorDatabase(#if NeedFunctionPrototypes XtAppContext /* app_context */#endif);extern XrmDatabase *XtGetErrorDatabase( /* obsolete */#if NeedFunctionPrototypes void#endif);extern void XtAppGetErrorDatabaseText(#if NeedFunctionPrototypes XtAppContext /* app_context */, _Xconst _XtString /* name */, _Xconst _XtString /* type */, _Xconst _XtString /* class */, _Xconst _XtString /* default */, String /* buffer_return */, int /* nbytes */, XrmDatabase /* database */#endif);extern void XtGetErrorDatabaseText( /* obsolete */#if NeedFunctionPrototypes _Xconst _XtString /* name */, _Xconst _XtString /* type */, _Xconst _XtString /* class */, _Xconst _XtString /* default */, String /* buffer_return */, int /* nbytes */#endif);/**************************************************************** * * Memory Management * ****************************************************************/extern char *XtMalloc(#if NeedFunctionPrototypes Cardinal /* size */#endif);extern char *XtCalloc(#if NeedFunctionPrototypes Cardinal /* num */, Cardinal /* size */#endif);extern char *XtRealloc(#if NeedFunctionPrototypes char* /* ptr */, Cardinal /* num */#endif);extern void XtFree(#if NeedFunctionPrototypes char* /* ptr */#endif);#ifdef XTTRACEMEMORYextern char *_XtMalloc( /* implementation-private */#if NeedFunctionPrototypes Cardinal /* size */, char * /* file */, int /* line */#endif );extern char *_XtRealloc( /* implementation-private */#if NeedFunctionPrototypes char * /* ptr */, Cardinal /* size */, char * /* file */, int /* line */#endif);extern char *_XtCalloc( /* implementation-private */#if NeedFunctionPrototypes Cardinal /* num */, Cardinal /* size */, char * /* file */, int /* line */#endif);extern void _XtFree( /* implementation-private */#if NeedFunctionPrototypes char * /* ptr */#endif);#define XtMalloc(size) _XtMalloc(size, __FILE__, __LINE__)#define XtRealloc(ptr,size) _XtRealloc(ptr, size, __FILE__, __LINE__)#define XtCalloc(num,size) _XtCalloc(num, size, __FILE__, __LINE__)#define XtFree(ptr) _XtFree(ptr)#endif /* ifdef XTTRACEMEMORY */#define XtNew(type) ((type *) XtMalloc((unsigned) sizeof(type)))#define XtNewString(str) \ ((str) != NULL ? (strcpy(XtMalloc((unsigned)strlen(str) + 1), str)) : NULL)/************************************************************* * * Work procs * **************************************************************/extern XtWorkProcId XtAddWorkProc( /* obsolete */#if NeedFunctionPrototypes XtWorkProc /* proc */, XtPointer /* closure */#endif);extern XtWorkProcId XtAppAddWorkProc(#if NeedFunctionPrototypes XtAppContext /* app_context */, XtWorkProc /* proc */, XtPointer /* closure */#endif);extern void XtRemoveWorkProc(#if NeedFunctionPrototypes XtWorkProcId /* id */#endif);/**************************************************************** * * Graphic Context Management *****************************************************************/extern GC XtGetGC(#if NeedFunctionPrototypes Widget /* widget */, XtGCMask /* valueMask */, XGCValues* /* values */#endif);extern GC XtAllocateGC(#if NeedFunctionPrototypes Widget /* widget */, Cardinal /* depth */, XtGCMask /* valueMask */, XGCValues* /* values */, XtGCMask /* dynamicMask */, XtGCMask /* unusedMask */#endif);/* This implementation of XtDestroyGC differs from the formal specification * for historic backwards compatibility reasons. As other implementations * may conform to the spec, use of XtReleaseGC is strongly encouraged. */extern void XtDestroyGC( /* obsolete */#if NeedFunctionPrototypes GC /* gc */#endif);extern void XtReleaseGC(#if NeedFunctionPrototypes Widget /* object */, GC /* gc */#endif);extern void XtAppReleaseCacheRefs(#if NeedFunctionPrototypes XtAppContext /* app_context */, XtCacheRef* /* cache_ref */#endif);extern void XtCallbackReleaseCacheRef(#if NeedFunctionPrototypes Widget /* widget */, XtPointer /* closure */, /* XtCacheRef */ XtPointer /* call_data */#endif);extern void XtCallbackReleaseCacheRefList(#if NeedFunctionPrototypes Widget /* widget */, XtPointer /* closure */, /* XtCacheRef* */ XtPointer /* call_data */#endif);extern void XtSetWMColormapWindows(
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -