Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
AnnotationP.h
Go to the documentation of this file.
1 
2 /*
3  * AnnotationP.h
4  *---------------------------------------------------------------
5  * DESCRIPTION
6  * private header file for the annotation widget
7  *
8  * Author
9  * a.schroeter
10  *
11  *---------------------------------------------------------------
12  * COPYRIGHT (c) 1993 by DKFZ (Dept. MBI) Heidelberg, FRG
13  */
14 
15 #ifndef _XipAnnotationP_h
16 #define _XipAnnotationP_h
17 
18 /* superclass */
19 #include <Xm/XmP.h>
20 
21 #if( XmVersion >= 1002 )
22 #include <Xm/PrimitiveP.h>
23 #endif
24 
25 
26 /* public header for this widget */
27 #include "Annotation.h"
28 
29 /* other headers */
30 
31 
32 #ifndef XlibSpecificationRelease
33 #define XrmPermStringToQuark XrmStringToQuark
34 #endif
35 
36 /*private macros */
37 #ifndef Min
38 #define Min(x, y) (((x) < (y)) ? (x) : (y))
39 #endif
40 #ifndef Max
41 #define Max(x, y) (((x) > (y)) ? (x) : (y))
42 #endif
43 
44 /* new fields for this widget's class record */
46  {
47  XtPointer extension;
49 
50 /* full class record declaration */
51 typedef struct _XipAnnotationClassRec
52  {
53  CoreClassPart core_class;
54  XmPrimitiveClassPart primitive_class;
57 
59 
60 /* new fields for this widget's instance record */
61 typedef struct _XipAnnotationPart
62  { /* resources */
63 
64  Cursor cursor;
65  XtCallbackList activate_CB;
66  Pixmap icon_text;
67 
68  /* private variables */
69  GC draw_GC;
71 
72 /* full instance record declaration */
73 typedef struct _XipAnnotationRec
74  { CorePart core;
75  XmPrimitivePart primitive;
78 
79 #endif /* _XipAnnotationP_h */
80 /* DON'T ADD ANYTHING AFTER THIS #endif */
XipAnnotationClassRec xipAnnotationClassRec
struct _XipAnnotationClassRec XipAnnotationClassRec
XipAnnotationPart annotation
Definition: AnnotationP.h:76
struct _XipAnnotationRec XipAnnotationRec
XipAnnotationClassPart annotation_class
Definition: AnnotationP.h:55
XmPrimitivePart primitive
Definition: AnnotationP.h:75
CoreClassPart core_class
Definition: AnnotationP.h:53
struct _XipAnnotationPart XipAnnotationPart
XmPrimitiveClassPart primitive_class
Definition: AnnotationP.h:54
struct _XipAnnotationClassPart XipAnnotationClassPart
XtCallbackList activate_CB
Definition: AnnotationP.h:65