?? xmp.h
字號:
#define XmPushBIndex (XmLabelIndex + 1)#define XmPushButtonIndex XmPushBIndex#define XmToggleBIndex (XmLabelIndex + 1)#define XmToggleButtonIndex XmToggleBIndex#define XmTearOffButtonIndex (XmPushBIndex + 1)#define XmArrowBGIndex (XmGadgetIndex + 1)#define XmArrowButtonGadgetIndex XmArrowBGIndex#define XmLabelGIndex (XmGadgetIndex + 1)#define XmLabelGadgetIndex XmLabelGIndex#define XmSeparatoGIndex (XmGadgetIndex + 1)#define XmSeparatorGadgetIndex XmSeparatoGIndex#define XmCascadeBGIndex (XmLabelGIndex + 1)#define XmCascadeButtonGadgetIndex XmCascadeBGIndex#define XmPushBGIndex (XmLabelGIndex + 1)#define XmPushButtonGadgetIndex XmPushBGIndex#define XmToggleBGIndex (XmLabelGIndex + 1)#define XmToggleButtonGadgetIndex XmToggleBGIndex#define XmBulletinBIndex (XmManagerIndex + 1)#define XmBulletinBoardIndex XmBulletinBIndex#define XmDrawingAIndex (XmManagerIndex + 1)#define XmDrawingAreaIndex XmDrawingAIndex#define XmFrameIndex (XmManagerIndex + 1)#define XmPanedWIndex (XmManagerIndex + 1)#define XmPanedWindowIndex XmPanedWIndex#define XmSashIndex (XmPrimitiveIndex + 1)#define XmRowColumnIndex (XmManagerIndex + 1)#define XmScaleIndex (XmManagerIndex + 1)#define XmScrolledWIndex (XmManagerIndex + 1)#define XmScrolledWindowIndex XmScrolledWIndex#define XmFormIndex (XmBulletinBIndex + 1)#define XmMessageBIndex (XmBulletinBIndex + 1)#define XmMessageBoxIndex XmMessageBIndex#define XmSelectioBIndex (XmBulletinBIndex + 1)#define XmSelectionBoxIndex XmSelectioBIndex#define XmMainWIndex (XmScrolledWIndex + 1)#define XmMainWindowIndex XmMainWIndex#define XmCommandIndex (XmSelectioBIndex + 1)#define XmFileSBIndex (XmSelectioBIndex + 1)#define XmFileSelectionBoxIndex XmFileSBIndex#define XmShellIndex (XmCompositeIndex + 1)#define ShellIndex XmShellIndex#define XmOverrideShellIndex (XmShellIndex + 1)#define OverrideShellIndex XmOverrideShellIndex#define XmWMShellIndex (XmShellIndex + 1)#define WMShellIndex XmWMShellIndex#define XmVendorShellIndex (XmWMShellIndex + 1)#define VendorShellIndex XmVendorShellIndex#define XmTransientShellIndex (XmVendorShellIndex + 1)#define TransientShellIndex XmTransientShellIndex#define XmTopLevelShellIndex (XmVendorShellIndex + 1)#define TopLevelShellIndex XmTopLevelShellIndex#define XmApplicationShellIndex (XmTopLevelShellIndex + 1)#define ApplicationShellIndex XmApplicationShellIndex#define XmDisplayIndex (XmApplicationShellIndex + 1)#define XmDialogSIndex (XmTransientShellIndex + 1)#define XmDialogShellIndex XmDialogSIndex#define XmMenuShellIndex (XmOverrideShellIndex + 1)#define XmDragIconIndex (XmRectObjIndex + 1)#define XmDropSiteManagerIndex (XmObjectIndex + 1)#define XmDropTransferIndex (XmObjectIndex + 1)#define XmDragOverShellIndex (XmVendorShellIndex + 1)#define XmDragContextIndex (XmCoreIndex + 1)#define XmOFFSETBITS (sizeof(Cardinal)*8/2)#define XmOFFSETMASK ((1<<XmOFFSETBITS)-1)typedef struct _XmPartResource { String resource_name; String resource_class; String resource_type; Cardinal resource_size; Cardinal resource_offset; String default_type; XtPointer default_addr;} XmPartResource;#define XmPartOffset(part, variable) \ ((part##Index) << XmOFFSETBITS) + XtOffsetOf( part##Part, variable)#define XmConstraintPartOffset(part, var) \ ((part##Index) << XmOFFSETBITS) + XtOffsetOf(part##ConstraintPart, var)#define XmGetPartOffset(r, off) \ ((r)->resource_offset & 0xffff) + \ (*(off))[(r)->resource_offset >> XmOFFSETBITS];#define XmField(widget, offsetrecord, part, variable, type) \ (*(type *)(((char *) (widget)) + offsetrecord[part##Index] + \ XtOffsetOf( part##Part, variable)))#define XmConstraintField(widget, offsetrecord, part, variable, type) \ (*(type *)(((char *) (widget)->core.constraints) + \ offsetrecord[part##Index] + \ XtOffsetOf( part##ConstraintPart, variable)))/* * these structures must match those of XRectangle, XRegion */typedef struct { short x1, x2, y1, y2;} XmRegionBox;typedef struct _XmRegion { long size; long numRects; XmRegionBox *rects; XmRegionBox extents;} XmRegionRec, *XmRegion;/*********************** Trait.c ***********************************/#include <Xm/TraitP.h>/*********************** GadgetUtils.c *****************************/XMLIBEXPORT XmGadget _XmInputInGadget(Widget cw, int x, int y);XMLIBEXPORT XmGadget _XmInputForGadget(Widget cw, int x, int y);XMLIBEXPORT void _XmConfigureObject(Widget g, Position x, Position y, Dimension width, Dimension height, Dimension border_width);XMLIBEXPORT void XmeConfigureObject(Widget g, Position x, Position y, Dimension width, Dimension height, Dimension border_width);XMLIBEXPORT void _XmResizeObject(Widget g, Dimension width, Dimension height, Dimension border_width);XMLIBEXPORT void _XmMoveObject(Widget g, Position x, Position y);XMLIBEXPORT void _XmRedisplayGadgets(Widget w, XEvent *event, Region region);XMLIBEXPORT void XmeRedisplayGadgets(Widget w, XEvent *event, Region region);XMLIBEXPORT void _XmDispatchGadgetInput(Widget g, XEvent *event, Mask mask);XMLIBEXPORT Time __XmGetDefaultTime(Widget w, XEvent *event);/************************* ImageCache.c *******************************/#define _XmCreateImage(IMAGE, DISPLAY, DATA, WIDTH, HEIGHT, BYTE_ORDER) {\ IMAGE = XCreateImage(DISPLAY,\ DefaultVisual(DISPLAY, DefaultScreen(DISPLAY)),\ 1,\ XYBitmap,\ 0,\ DATA,\ WIDTH, HEIGHT,\ 8,\ (WIDTH+7) >> 3);\ IMAGE->byte_order = BYTE_ORDER;\ IMAGE->bitmap_unit = 8;\ IMAGE->bitmap_bit_order = LSBFirst;\}XMLIBEXPORT Boolean _XmInstallImage(XImage *image, char *image_name, int hot_x, int hot_y);XMLIBEXPORT Boolean _XmGetImage(Screen *screen, char *image_name, XImage **image);XMLIBEXPORT Boolean _XmGetPixmapData(Screen *screen, Pixmap pixmap, char **image_name, int *depth, Pixel *foreground, Pixel *background, int *hot_x, int *hot_y, unsigned int *width, unsigned int *height);XMLIBEXPORT Boolean XmeGetPixmapData(Screen *screen, Pixmap pixmap, char **image_name, int *depth, Pixel *foreground, Pixel *background, int *hot_x, int *hot_y, unsigned int *width, unsigned int *height);XMLIBEXPORT Pixmap _XmGetPixmap(Screen *screen, char *image_name, int depth, Pixel foreground, Pixel background);XMLIBEXPORT Boolean _XmInstallPixmap(Pixmap pixmap, Screen *screen, char *image_name, Pixel foreground, Pixel background);/************************** MapEvent.c *****************************/XMLIBEXPORT Boolean _XmMapBtnEvent(String str, int *eventType, unsigned int *button, unsigned int *modifiers);XMLIBEXPORT Boolean _XmMapKeyEvent(String str, int *eventType, unsigned *keysym, unsigned int *modifiers);XMLIBEXPORT Boolean _XmMatchBtnEvent(XEvent *event, int eventType, unsigned int button, unsigned int modifiers);XMLIBEXPORT Boolean _XmMatchKeyEvent(XEvent *event, int eventType, unsigned int key, unsigned int modifiers);/************************** ReadImage.c *****************************/XMLIBEXPORT XImage *_XmGetImageFromFile(char *filename);XMLIBEXPORT XImage *_XmGetImageAndHotSpotFromFile(char *filename, int *hot_x, int *hot_y);/************************* RenderTable.c ****************************/XMLIBEXPORT Boolean XmeRenderTableGetDefaultFont(XmRenderTable renderTable, XFontStruct **fontStruct);/************************* ResConvert.c *****************************/enum { XmLABEL_FONTLIST = 1, XmBUTTON_FONTLIST, XmTEXT_FONTLIST};enum { XmLABEL_RENDER_TABLE = 1, XmBUTTON_RENDER_TABLE, XmTEXT_RENDER_TABLE };XMLIBEXPORT void _XmRegisterConverters(void);#define _XmWarning XmeWarningXMLIBEXPORT void XmeWarning(Widget w, const char *message, ...);XMLIBEXPORT Boolean _XmStringsAreEqual(char *in_str, char *text_str);XMLIBEXPORT Boolean XmeNamesAreEqual(char *in_str, char *text_str);XMLIBEXPORT XmFontList _XmGetDefaultFontList(Widget w, unsigned char fontListType);XMLIBEXPORT char *_XmConvertCSToString(XmString cs);XMLIBEXPORT Boolean _XmCvtXmStringToCT(XrmValue *from, XrmValue *to);XMLIBEXPORT XmFontList XmeGetDefaultRenderTable(Widget w, unsigned int fontListType);/**************************** ResInd.c *****************************/XMLIBEXPORT void _XmBuildResources(XmSyntheticResource **wc_resources_ptr, int *wc_num_resources_ptr, XmSyntheticResource *sc_resources, int sc_num_resources);XMLIBEXPORT void _XmInitializeSyntheticResources(XmSyntheticResource *resources, int num_resources);XMLIBEXPORT void _XmPrimitiveGetValuesHook(Widget w, ArgList args, Cardinal *num_args);XMLIBEXPORT void _XmGadgetGetValuesHook(Widget w, ArgList args, Cardinal *num_args);XMLIBEXPORT void _XmManagerGetValuesHook(Widget w, ArgList args, Cardinal *num_args);XMLIBEXPORT void _XmExtGetValuesHook(Widget w, ArgList args, Cardinal *num_args);XMLIBEXPORT void _XmExtImportArgs(Widget w, ArgList args, Cardinal *num_args);XMLIBEXPORT void _XmPrimitiveImportArgs(Widget w, ArgList args, Cardinal *num_args);XMLIBEXPORT void _XmGadgetImportArgs(Widget w, ArgList args, Cardinal *num_args);XMLIBEXPORT void _XmGadgetImportSecondaryArgs(Widget w, ArgList args, Cardinal *num_args);XMLIBEXPORT void _XmManagerImportArgs(Widget w, ArgList args, Cardinal *num_args);XMLIBEXPORT int _XmConvertUnits(Screen *screen, int dimension, int from_type, int from_val, int to_type);XMLIBEXPORT XmImportOperator _XmToHorizontalPixels(Widget widget, int offset, XtArgVal *value);XMLIBEXPORT XmImportOperator XmeToHorizontalPixels(Widget widget, int offset, XtArgVal *value);XMLIBEXPORT XmImportOperator _XmToVerticalPixels(Widget widget, int offset, XtArgVal *value);XMLIBEXPORT XmImportOperator XmeToVerticalPixels(Widget widget, int offset, XtArgVal *value);XMLIBEXPORT void _XmFromHorizontalPixels(Widget widget, int offset, XtArgVal *value);XMLIBEXPORT void XmeFromHorizontalPixels(Widget widget, int offset, XtArgVal *value);XMLIBEXPORT void _XmFromVerticalPixels(Widget widget, int offset, XtArgVal *value);XMLIBEXPORT void XmeFromVerticalPixels(Widget widget, int offset, XtArgVal *value);XMLIBEXPORT void _XmSortResourceList(XrmResource *list[], Cardinal len);XMLIBEXPORT void _XmUnitTypeDefault(Widget widget, int offset, XrmValue *value);XMLIBEXPORT unsigned char _XmGetUnitType(Widget widget);/************************* UniqueEvent.c *****************************/XMLIBEXPORT Boolean _XmIsEventUnique(XEvent *event);XMLIBEXPORT void _XmRecordEvent(XEvent *event);/*************************** Visual.c ********************************/#define XmLOOK_AT_SCREEN (1<<0)#define XmLOOK_AT_CMAP (1<<1)#define XmLOOK_AT_BACKGROUND (1<<2)#define XmLOOK_AT_FOREGROUND (1<<3)#define XmLOOK_AT_TOP_SHADOW (1<<4)#define XmLOOK_AT_BOTTOM_SHADOW (1<<5)#define XmLOOK_AT_SELECT (1<<6)#define XmBACKGROUND ((unsigned char) (1<<0))#define XmFOREGROUND ((unsigned char) (1<<1))#define XmTOP_SHADOW ((unsigned char) (1<<2))#define XmBOTTOM_SHADOW ((unsigned char) (1<<3))#define XmSELECT ((unsigned char) (1<<4))typedef struct _XmColorData { Screen * screen; Colormap color_map; unsigned char allocated; XColor background; XColor foreground; XColor top_shadow; XColor bottom_shadow; XColor select;} XmColorData;XMLIBEXPORT void _XmRegisterPixmapConverters(void);XMLIBEXPORT char *_XmGetBGPixmapName(void);XMLIBEXPORT void _XmClearBGPixmap(void);XMLIBEXPORT void XmeGetDefaultPixel(Widget widget, int type, int offset, XrmValue *value);XMLIBEXPORT void _XmForegroundColorDefault(Widget widget, int offset, XrmValue *value);XMLIBEXPORT void _XmHighlightColorDefault(Widget widget, int offset, XrmValue *value);XMLIBEXPORT void _XmBackgroundColorDefault(Widget widget, int offset, XrmValue *value);XMLIBEXPORT void _XmTopShadowColorDefault(Widget widget, int offset, XrmValue *value);XMLIBEXPORT void _XmBottomShadowColorDefault(Widget widget, int offset, XrmValue *value);XMLIBEXPORT void _XmPrimitiveTopShadowPixmapDefault(Widget widget, int offset, XrmValue *value);XMLIBEXPORT void _XmManagerTopShadowPixmapDefault(Widget widget, int offset, XrmValue *value);XMLIBEXPORT void _XmPrimitiveHighlightPixmapDefault(Widget widget, int offset, XrmValue *value);XMLIBEXPORT void _XmManagerHighlightPixmapDefault(Widget widget, int offset, XrmValue *value);XMLIBEXPORT void _XmGetDefaultThresholdsForScreen(Screen *screen);XMLIBEXPORT String _XmGetDefaultBackgroundColorSpec(Screen *screen);XMLIBEXPORT void _XmSetDefaultBackgroundColorSpec(Screen *screen, String new_color_spec);XMLIBEXPORT XmColorData *_XmGetDefaultColors(Screen *screen, Colormap color_map);XMLIBEXPORT Boolean _XmSearchColorCache(unsigned int which, XmColorData *values, XmColorData **ret);XMLIBEXPORT XmColorData *_XmAddToColorCache(XmColorData *new_rec);XMLIBEXPORT Pixel _XmBlackPixel(Screen *screen, Colormap colormap, XColor blackcolor);XMLIBEXPORT Pixel _XmWhitePixel(Screen *screen, Colormap colormap, XColor whitecolor);XMLIBEXPORT Pixel _XmAccessColorData(XmColorData *cd, unsigned char which);XMLIBEXPORT XmColorData *_XmGetColors(Screen *screen, Colormap color_map, Pixel background);XMLIBEXPORT void _XmSelectColorDefault(Widget w, int offset, XrmValue *val);/**************************** XmString.c **********************************/XMLIBEXPORT XFontStruct *_XmGetFirstFont(XmFontListEntry entry);XMLIBEXPORT Boolean _XmFontListGetDefaultFont(XmFontList fontlist, XFontStruct **font_struct);XMLIBEXPORT Boolean _XmFontListSearch(XmFontList fontlist, XmStringCharSet charset, short *indx, XFontStruct **font_struct);XMLIBEXPORT Boolean _XmStringIsXmString(XmString string);XMLIBEXPORT Boolean _XmStringInitContext(_XmStringContext *context, _XmString string);XMLIBEXPORT Boolean _XmStringGetNextSegment(_XmStringContext context, XmStringCharSet *charset, XmStringDirection *direction, char **text, short *char_count, Boolean *separator) ;XMLIBEXPORT void _XmStringFreeContext(_XmStringContext context) ;XMLIBEXPORT Dimension _XmStringWidth(XmFontList fontlist, _XmString string) ;XMLIBEXPORT Dimension _XmStringHeight(XmFontList fontlist, _XmString string) ;XMLIBEXPORT void _XmStringExtent(XmFontList fontlist, _XmString string, Dimension *width, Dimension *height) ;XMLIBEXPORT Boolean _XmStringEmpty(_XmString string);XMLIBEXPORT void _XmStringDraw(Display *d, Window w, XmFontList fontlist, _XmString string, GC gc, Position x, Position y, Dimension width, unsigned char align, unsigned char lay_dir, XRectangle *clip);XMLIBEXPORT void _XmStringDrawImage(Display *d, Window w, XmFontList fontlist, _XmString string, GC gc, Position x, Position y, Dimension width, unsigned char align, unsigned char lay_dir, XRectangle *clip);XMLIBEXPORT void _XmStringDrawUnderline(Display *d, Window w, XmFontList f, _XmString s, GC gc, Position x, Position y, Dimension width, unsigned char align, unsigned char lay_dir, XRectangle *clip, _XmString u);XMLIBEXPORT void _XmStringDrawMnemonic(Display *d, Window w, XmFontList fontlist, _XmString string, GC gc, Position x, Position y, Dimension width,
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -