home *** CD-ROM | disk | FTP | other *** search
- /* DEC/CMS REPLACEMENT HISTORY, Element INTRINSICP.H */
- /* 5 31-MAR-1988 12:03:41 TREGGIARI "MARCH 30 INTRINSICS" */
- /* 4 24-MAR-1988 16:04:25 TREGGIARI "Replace with completely new version" */
- /* *3 27-FEB-1988 18:23:04 GEORGE "Add copyright" */
- /* *2 5-JAN-1988 15:44:29 TREGGIARI "Replace with completely new version" */
- /* *1 18-DEC-1987 14:10:56 TREGGIARI "Initial Entry" */
- /* DEC/CMS REPLACEMENT HISTORY, Element INTRINSICP.H */
- /*
- * $Header: IntrinsicP.h,v 6.12 87/12/21 17:19:58 guarino Exp $
- */
-
- /*
- *****************************************************************************
- ** *
- ** COPYRIGHT (c) 1988 BY *
- ** DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. *
- ** ALL RIGHTS RESERVED *
- ** *
- ** THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND COPIED *
- ** ONLY IN ACCORDANCE WITH THE TERMS OF SUCH LICENSE AND WITH THE *
- ** INCLUSION OF THE ABOVE COPYRIGHT NOTICE. THIS SOFTWARE OR ANY OTHER *
- ** COPIES THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY *
- ** OTHER PERSON. NO TITLE TO AND OWNERSHIP OF THE SOFTWARE IS HEREBY *
- ** TRANSFERRED. *
- ** *
- ** THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE *
- ** AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT *
- ** CORPORATION. *
- ** *
- ** DIGITAL ASSUMES NO RESPONSIBILITY FOR THE USE OR RELIABILITY OF ITS *
- ** SOFTWARE ON EQUIPMENT WHICH IS NOT SUPPLIED BY DIGITAL. *
- ** *
- *****************************************************************************
- **++
- ** FACILITY:
- **
- ** < to be supplied >
- **
- ** ABSTRACT:
- **
- ** < to be supplied >
- **
- ** ENVIRONMENT:
- **
- ** < to be supplied >
- **
- ** MODIFICATION HISTORY:
- **
- ** < to be supplied >
- **
- **--
- **/
-
- #ifndef _XtintrinsicP_h
- #define _XtintrinsicP_h
-
- #ifdef VMS
- #include <decw$include/Intrinsic.h>
- #include <decw$include/Xutil.h>
- #else
- #include "Intrinsic.h"
- #include "Xutil.h"
- #endif
-
- typedef unsigned long XtVersionType;
-
- #define XT_VERSION 6
- #define XT_REVISION 2
- #define XtVersion (XT_VERSION * 1000 + XT_REVISION)
-
- #define XtOffset(type,field) ((unsigned int)&(((type)NULL)->field))
-
- typedef void (*XtProc)();
- /* takes no arguments */
-
- typedef void (*XtWidgetProc)();
- /* Widget widget */
-
- typedef void (*XtArgsProc)();
- /* Widget widget */
- /* ArgList args */
- /* Cardinal *num_args */
-
- typedef void (*XtInitProc)();
- /* Widget request_widget; */
- /* Widget new_widget; */
-
- typedef Boolean (*XtSetValuesFunc)(); /* returns TRUE if redisplay needed */
- /* Widget widget; */
- /* Widget request; */
- /* Widget new; */
-
- typedef Boolean (*XtArgsFunc)();
- /* Widget widget */
- /* ArgList args */
- /* Cardinal *num_args */
-
- typedef void (*XtAlmostProc)();
- /* Widget widget; */
- /* Widget new_widget; */
- /* XtWidgetGeometry *request; */
- /* XtWidgetGeometry *reply; */
-
- typedef void (*XtExposeProc)();
- /* Widget widget; */
- /* XEvent *event; */
-
- typedef void (*XtRealizeProc) ();
- /* Widget widget; */
- /* XtValueMask mask; */
- /* XSetWindowAttributes *attributes; */
-
- typedef void (*XtCreatePopupChildProc)();
-
- typedef XtGeometryResult (*XtGeometryHandler)();
- /* Widget widget */
- /* XtWidgetGeometry *request */
- /* XtWidgetGeometry *reply */
-
- #ifdef VMS
- #include <decw$include/CoreP.h>
- #include <decw$include/CompositeP.h>
- #include <decw$include/ConstraintP.h>
- #else
- #include "CoreP.h"
- #include "CompositeP.h"
- #include "ConstraintP.h"
- #endif
-
- #define XtDisplay(widget) ((widget)->core.screen->display)
- #define XtScreen(widget) ((widget)->core.screen)
- #define XtWindow(widget) ((widget)->core.window)
- #define XtClass(widget) ((widget)->core.widget_class)
- #define XtSuperclass(widget) (XtClass(widget)->core_class.superclass)
- #define XtIsManaged(widget) ((widget)->core.managed)
- #define XtMapWidget(widget) XMapWindow(XtDisplay(widget), XtWindow(widget))
- #define XtUnmapWidget(widget) \
- XUnmapWindow(XtDisplay(widget), XtWindow(widget))
-
- extern void XtCreateWindow ();
- /* Widget widget; */
- /* unsigned int windowClass; */
- /* Visual *visual; */
- /* Mask valueMask; */
- /* XSetWindowAttributes *attributes; */
-
- extern void XtResizeWidget(); /* widget, width, height, borderWidth */
- /* Widget widget */
- /* Dimension width, height, borderWidth; */
-
- extern void XtMoveWidget(); /* widget, x, y */
- /* Widget widget */
- /* Position x, y */
-
- /****************************************************************
- *
- * Graphic Context Management
- *****************************************************************/
-
- extern GC XtGetGC(); /* widget, valueMask, values */
- /* Widget widget */
- /* XtGCMask valueMask; */
- /* XGCValues *values; */
-
- extern void XtDestroyGC (); /* widget, gc */
- /* Widget widget; */
- /* GC gc; */
- /* we pass in the widget because XFreeGC needs a display, and there isn't */
- /* one stored in the GC record. */
-
- typedef struct _XtResource {
- String resource_name; /* Resource name */
- String resource_class; /* Resource class */
- String resource_type; /* Representation type desired */
- Cardinal resource_size; /* Size in bytes of representation */
- Cardinal resource_offset;/* Offset from base to put resource value */
- String default_type; /* representation type of specified default */
- caddr_t default_addr; /* Address of default resource */
- } XtResource;
-
- extern void XtReadBinaryDatabase ();
- /* FILE *f; */
- /* ResourceDatabase *db; */
-
- extern void XtWriteBinaryDatabase ();
- /* FILE *f; */
- /* ResourceDatabase db; */
-
- /*************************************************************
- *
- * Error Handling
- *
- ************************************************************/
-
- extern void XtError(); /* message */
- /* String message */
-
- extern void XtWarning(); /* message */
- /* String message */
-
- #endif _XtIntrinsicP_h
- /* DON'T ADD STUFF AFTER THIS #endif */
-