/******************************************************************* FILE: Control.h CONTENTS: Public header file for the Control widget class. AUTHOR: Paul D. Johnston HISTORY: Date Action --------- ------------------------------------ 5/23/92 Changed the widget class name so that it is preceded by 'xc' with the first major word capitalized. 3/11/92 Created. ********************************************************************/ #ifndef CONTROL_H #define CONTROL_H /* Debug printf statements for Control Panel widget development. */ #ifdef XCDEBUG #define DPRINTF(statement) printf statement #else #define DPRINTF(statement) #endif /* * This macro is used by the resource string conversion routines to * assign the converted type elements to the XrmValue struct. */ #define CvtDone(type, address) \ { toVal->size = sizeof(type); \ toVal->addr = (caddr_t)address; \ return; } /* * This enumeration defines the possible 3D rectangle types, used in the * call to Rect3d(). */ typedef enum rect3d_t { RAISED, DEPRESSED } Type3d; /* Type used to indicate the Arrow direction (i.e., up, down, etc.) */ typedef enum { UP, DOWN, LEFT, RIGHT } ArrowType; /* Class record declarations */ extern WidgetClass xcControlWidgetClass; typedef struct _ControlClassRec *ControlWidgetClass; typedef struct _ControlRec *ControlWidget; /* Declaration of widget class functions */ extern Boolean Point_In_Rect(); extern void Rect3d(); extern void VarRect3d(); extern void Arrow3d(); extern void ToLower(); extern void CvtStringToOrient(); #endif /* CONTROL_H */