📄 xlcint.h
字号:
int /* y */, _Xconst char* /* text */, int /* text_len */#endif);typedef int (*XwcTextEscapementProc)(#if NeedFunctionPrototypes XFontSet /* font_set */, _Xconst wchar_t* /* text */, int /* text_len */#endif);typedef int (*XwcTextExtentsProc)(#if NeedFunctionPrototypes XFontSet /* font_set */, _Xconst wchar_t* /* text */, int /* text_len */, XRectangle* /* overall_ink_extents */, XRectangle* /* overall_logical_extents */#endif);typedef Status (*XwcTextPerCharExtentsProc)(#if NeedFunctionPrototypes XFontSet /* font_set */, _Xconst wchar_t* /* text */, int /* text_len */, XRectangle* /* ink_extents_buffer */, XRectangle* /* logical_extents_buffer */, int /* buffer_size */, int* /* num_chars */, XRectangle* /* max_ink_extents */, XRectangle* /* max_logical_extents */#endif);typedef int (*XwcDrawStringProc)(#if NeedFunctionPrototypes Display* /* display */, Drawable /* drawable */, XFontSet /* font_set */, GC /* gc */, int /* x */, int /* y */, _Xconst wchar_t* /* text */, int /* text_len */#endif);typedef void (*XwcDrawImageStringProc)(#if NeedFunctionPrototypes Display* /* display */, Drawable /* drawable */, XFontSet /* font_set */, GC /* gc */, int /* x */, int /* y */, _Xconst wchar_t* /* text */, int /* text_len */#endif);typedef struct { XDestroyOCProc destroy; XSetOCValuesProc set_values; XGetOCValuesProc get_values; /* multi-byte text drawing methods */ XmbTextEscapementProc mb_escapement; XmbTextExtentsProc mb_extents; XmbTextPerCharExtentsProc mb_extents_per_char; XmbDrawStringProc mb_draw_string; XmbDrawImageStringProc mb_draw_image_string; /* wide character text drawing methods */ XwcTextEscapementProc wc_escapement; XwcTextExtentsProc wc_extents; XwcTextPerCharExtentsProc wc_extents_per_char; XwcDrawStringProc wc_draw_string; XwcDrawImageStringProc wc_draw_image_string; /* UTF-8 text drawing methods */ XmbTextEscapementProc utf8_escapement; XmbTextExtentsProc utf8_extents; XmbTextPerCharExtentsProc utf8_extents_per_char; XmbDrawStringProc utf8_draw_string; XmbDrawImageStringProc utf8_draw_image_string;} XOCMethodsRec, *XOCMethods;/* * XOC independent data */typedef struct { XOM om; /* XOM */ XOC next; /* next XOC */ XlcResourceList resources; /* xoc resources */ int num_resources; /* number of xoc resources */ char *base_name_list; /* base font name list */ Bool om_automatic; /* OM Automatic */ XOMFontInfo font_info; /* font info */ XFontSetExtents font_set_extents; /* font set extents */ char *default_string; /* default string */ XOMCharSetList missing_list; /* missing charset list */ XOrientation orientation; /* orientation */ char *res_name; /* resource name */ char *res_class; /* resource class */} XOCCoreRec, *XOCCore;typedef struct _XOC { XOCMethods methods; XOCCoreRec core;} XOCRec;/* current Ultrix compiler gets horribly confused */#if defined(FUNCPROTO) && defined(ultrix)#undef NeedFunctionPrototypes#endif/* * X Input Managers are an instantiable object, so we define it, the * object itself, a method list and data. *//* * an Input Manager object method list */typedef struct { Status (*close)(#if NeedFunctionPrototypes XIM#endif ); char* (*set_values)(#if NeedFunctionPrototypes XIM, XIMArg*#endif ); char* (*get_values)(#if NeedFunctionPrototypes XIM, XIMArg*#endif ); XIC (*create_ic)(#if NeedFunctionPrototypes XIM, XIMArg*#endif ); int (*ctstombs)(#if NeedFunctionPrototypes XIM, char*, int, char*, int, Status *#endif ); int (*ctstowcs)(#if NeedFunctionPrototypes XIM, char*, int, wchar_t*, int, Status *#endif ); int (*ctstoutf8)(#if NeedFunctionPrototypes XIM, char*, int, char*, int, Status *#endif );} XIMMethodsRec, *XIMMethods;/* * Input Manager LC independent data */typedef struct { XLCd lcd; /* LC of this input method */ XIC ic_chain; /* list of ICs for this IM */ Display * display; /* display */ XrmDatabase rdb; char * res_name; char * res_class; XIMValuesList *im_values_list; XIMValuesList *ic_values_list; XIMStyles *styles; XIMCallback destroy_callback; char * im_name; /* XIMMODIFIER name */ XIMResourceList im_resources; /* compiled IM resource list */ unsigned int im_num_resources; XIMResourceList ic_resources; /* compiled IC resource list */ unsigned int ic_num_resources; Bool visible_position;} XIMCoreRec, *XIMCore;/* * An X Input Manager (IM). Implementations may need to extend this data * structure to accomodate additional data, state information etc. */typedef struct _XIM { XIMMethods methods; /* method list of this IM */ XIMCoreRec core; /* data of this IM */} XIMRec;/* * X Input Contexts (IC) are an instantiable object, so we define it, the * object itself, a method list and data for this object *//* * Input Context method list */ typedef struct { void (*destroy)(#if NeedFunctionPrototypes XIC#endif ); void (*set_focus)(#if NeedFunctionPrototypes XIC#endif ); void (*unset_focus)(#if NeedFunctionPrototypes XIC#endif ); char* (*set_values)(#if NeedFunctionPrototypes XIC, XIMArg*#endif ); char* (*get_values)(#if NeedFunctionPrototypes XIC, XIMArg*#endif ); char* (*mb_reset)(#if NeedFunctionPrototypes XIC#endif ); wchar_t* (*wc_reset)(#if NeedFunctionPrototypes XIC#endif ); char* (*utf8_reset)(#if NeedFunctionPrototypes XIC#endif ); int (*mb_lookup_string)(#if NeedFunctionPrototypes XIC, XKeyEvent*, char*, int, KeySym*, Status*#endif ); int (*wc_lookup_string)(#if NeedFunctionPrototypes XIC, XKeyEvent*, wchar_t*, int, KeySym*, Status*#endif ); int (*utf8_lookup_string)(#if NeedFunctionPrototypes XIC, XKeyEvent*, char*, int, KeySym*, Status*#endif );} XICMethodsRec, *XICMethods;/* * Input Context LC independent data */typedef struct { XIM im; /* XIM this IC belongs too */ XIC next; /* linked list of ICs for IM */ Window client_window; /* window IM can use for */ /* display or subwindows */ XIMStyle input_style; /* IM's input style */ Window focus_window; /* where key events go */ unsigned long filter_events; /* event mask from IM */ XICCallback geometry_callback; /* client callback */ char * res_name; char * res_class; XICCallback destroy_callback; XICCallback string_conversion_callback; XIMStringConversionText string_conversion; XIMResetState reset_state; XIMHotKeyTriggers *hotkey; XIMHotKeyState hotkey_state; ICPreeditAttributes preedit_attr; /* visuals of preedit area */ ICStatusAttributes status_attr; /* visuals of status area */} XICCoreRec, *XICCore;/* * an Input Context. Implementations may need to extend this data * structure to accomodate additional data, state information etc. */typedef struct _XIC { XICMethods methods; /* method list of this IC */ XICCoreRec core; /* data of this IC */} XICRec;/* current Ultrix compiler gets horribly confused */#if !defined(NeedFunctionPrototypes) && defined(FUNCPROTO)#define NeedFunctionPrototypes 1#endif/* If the argument 'name' is appropriate for this loader, it instantiates an XLCd object with appropriate locale methods and returns it. May return NULL; in this case, the remaining loaders are tried. */typedef XLCd (*XLCdLoadProc)( const char* name);_XFUNCPROTOBEGINextern XLCd _XOpenLC( const char* name);extern void _XCloseLC( XLCd lcd);extern XLCd _XlcCurrentLC (void);extern Bool _XlcValidModSyntax( const char* mods, const char* const * valid);extern char *_XlcDefaultMapModifiers( XLCd lcd, _Xconst char* user_mods, _Xconst char* prog_mods);extern void _XIMCompileResourceList(#if NeedFunctionPrototypes XIMResourceList /* res */, unsigned int /* num_res */#endif);extern void _XCopyToArg(#if NeedFunctionPrototypes XPointer /* src */, XPointer* /* dst */, unsigned int /* size */#endif);extern char ** _XParseBaseFontNameList(#if NeedFunctionPrototypes char* /* str */, int* /* num */#endif);extern XrmMethods _XrmInitParseInfo( XPointer* statep);extern void _XRegisterFilterByMask(#if NeedFunctionPrototypes Display* /* dpy */, Window /* window */, unsigned long /* event_mask */, Bool (*)(#if NeedNestedPrototypes Display* /* display */, Window /* window */, XEvent* /* event */, XPointer /* client_data */#endif ) /* filter */, XPointer /* client_data */#endif);extern void _XRegisterFilterByType(#if NeedFunctionPrototypes Display* /* dpy */, Window /* window */, int /* start_type */, int /* end_type */, Bool (*)(#if NeedNestedPrototypes Display* /* display */, Window /* window */, XEvent* /* event */, XPointer /* client_data */#endif ) /* filter */, XPointer /* client_data */#endif);extern void _XUnregisterFilter(#if NeedFunctionPrototypes Display* /* dpy */, Window /* window */, Bool (*)(#if NeedNestedPrototypes Display* /* display */, Window /* window */, XEvent* /* event */, XPointer /* client_data */#endif ) /* filter */, XPointer /* client_data */#endif);extern void _XlcCountVaList( va_list var, int* count_return);extern void _XlcVaToArgList( va_list var, int count, XlcArgList* args_return);extern void _XlcCompileResourceList( XlcResourceList resources, int num_resources);extern char *_XlcGetValues( XPointer base, XlcResourceList resources, int num_resources, XlcArgList args, int num_args, unsigned long mask);extern char *_XlcSetValues( XPointer base, XlcResourceList resources, int num_resources, XlcArgList args, int num_args, unsigned long mask);/* documented in i18n/Framework.PS */extern void _XlcInitLoader (void);/* documented in i18n/Framework.PS *//* Returns True on success, False on failure. */extern Bool _XlcAddLoader( XLCdLoadProc proc, XlcPosition position);/* documented in i18n/Framework.PS */extern void _XlcRemoveLoader( XLCdLoadProc proc);/* Registers UTF-8 converters for a non-UTF-8 locale. */extern void _XlcAddUtf8Converters( XLCd lcd);/* The default locale loader. Assumes an ASCII encoding. */extern XLCd _XlcDefaultLoader( const char* name);/* The generic locale loader. Suitable for all encodings except UTF-8. Uses an XLC_LOCALE configuration file. */extern XLCd _XlcGenericLoader( const char* name);/* The UTF-8 locale loader. Suitable for UTF-8 encoding. Uses an XLC_LOCALE configuration file. */extern XLCd _XlcUtf8Loader( const char* name);/* The old EUC locale loader. */extern XLCd _XlcEucLoader( const char* name);/* The old SJIS locale loader. */extern XLCd _XlcSjisLoader( const char* name);/* The old ISO-2022-JP locale loader. */extern XLCd _XlcJisLoader( const char* name);/* The old dynamic loader. */extern XLCd _XlcDynamicLoader( const char* name);_XFUNCPROTOEND#endif /* _XLCINT_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -