#ifndef _Drawing_h #define _Drawing_h /**************************************************************** * * Drawing widget * ****************************************************************/ /* Resources: Name Class RepType Default Value ---- ----- ------- ------------- background Background Pixel XtDefaultBackground border BorderColor Pixel XtDefaultForeground borderWidth BorderWidth Dimension 1 button1Callback Callback Pointer NULL button2Callback Callback Pointer NULL button3Callback Callback Pointer NULL motion1Callback Callback Pointer NULL motion2Callback Callback Pointer NULL motion3Callback Callback Pointer NULL destroyCallback Callback Pointer NULL font Font XFontStruct *XtDefaultFont foreground Foreground Pixel XtDefaultForeground height Height Dimension 0 keyCallback Callback Pointer NULL lineWidth Width Dimension 1 mappedWhenManaged MappedWhenManaged Boolean True sensitive Sensitive Boolean True width Width Dimension 0 x Position Position 0 y Position Position 0 */ /* Resources for the expose and action callback routines */ #define XtNkeyCallback "keyCallback" #define XtNbutton1Callback "button1Callback" #define XtNbutton2Callback "button2Callback" #define XtNbutton3Callback "button3Callback" #define XtNrelease1Callback "release1Callback" #define XtNrelease2Callback "release2Callback" #define XtNrelease3Callback "release3Callback" #define XtNmotion1Callback "motion1Callback" #define XtNmotion2Callback "motion2Callback" #define XtNmotion3Callback "motion3Callback" #define XtNdrawAllCallback "drawAllCallback" /* The lineWidth resource */ #define XtNlineWidth "lineWidth" /* DrawingWidget class and instance datatypes */ typedef struct _DrawingClassRec* DrawingWidgetClass; typedef struct _DrawingRec* DrawingWidget; /* DrawingWidget class constant */ extern WidgetClass drawingWidgetClass; /* Drawing Widget exported utility procedures */ extern void DrawingDrawLine(); extern void DrawingDrawOval(); extern void DrawingFillOval(); extern void DrawingDrawBox(); extern void DrawingFillBox(); extern void DrawingClear(); extern void DrawingUpdate(); extern void DrawingWriteText(); #endif _Drawing_h