Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
AnnotationP.h
Go to the documentation of this file.
1 /*============================================================================
2 
3  Copyright (c) German Cancer Research Center (DKFZ)
4  All rights reserved.
5 
6  Redistribution and use in source and binary forms, with or without
7  modification, are permitted provided that the following conditions are met:
8 
9  - Redistributions of source code must retain the above copyright notice, this
10  list of conditions and the following disclaimer.
11 
12  - Redistributions in binary form must reproduce the above copyright notice,
13  this list of conditions and the following disclaimer in the documentation
14  and/or other materials provided with the distribution.
15 
16  - All advertising materials mentioning features or use of this software must
17  display the following acknowledgement:
18 
19  "This product includes software developed by the German Cancer Research
20  Center (DKFZ)."
21 
22  - Neither the name of the German Cancer Research Center (DKFZ) nor the names
23  of its contributors may be used to endorse or promote products derived from
24  this software without specific prior written permission.
25 
26  THIS SOFTWARE IS PROVIDED BY THE GERMAN CANCER RESEARCH CENTER (DKFZ) AND
27  CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
28  BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
29  FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE GERMAN
30  CANCER RESEARCH CENTER (DKFZ) OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
31  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
33  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
34  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
37  DAMAGE.
38 
39 ============================================================================*/
40 
41 /*
42  * AnnotationP.h
43  *---------------------------------------------------------------
44  * DESCRIPTION
45  * private header file for the annotation widget
46  *
47  * Author
48  * a.schroeter
49  *
50  *---------------------------------------------------------------
51  *
52  */
53 
54 #ifndef _XipAnnotationP_h
55 #define _XipAnnotationP_h
56 
57 /* superclass */
58 #include <Xm/XmP.h>
59 
60 #if( XmVersion >= 1002 )
61 #include <Xm/PrimitiveP.h>
62 #endif
63 
64 
65 /* public header for this widget */
66 #include "Annotation.h"
67 
68 /* other headers */
69 
70 
71 #ifndef XlibSpecificationRelease
72 #define XrmPermStringToQuark XrmStringToQuark
73 #endif
74 
75 /*private macros */
76 #ifndef Min
77 #define Min(x, y) (((x) < (y)) ? (x) : (y))
78 #endif
79 #ifndef Max
80 #define Max(x, y) (((x) > (y)) ? (x) : (y))
81 #endif
82 
83 /* new fields for this widget's class record */
85  {
86  XtPointer extension;
88 
89 /* full class record declaration */
90 typedef struct _XipAnnotationClassRec
91  {
92  CoreClassPart core_class;
93  XmPrimitiveClassPart primitive_class;
96 
98 
99 /* new fields for this widget's instance record */
100 typedef struct _XipAnnotationPart
101  { /* resources */
102 
103  Cursor cursor;
104  XtCallbackList activate_CB;
105  Pixmap icon_text;
106 
107  /* private variables */
110 
111 /* full instance record declaration */
112 typedef struct _XipAnnotationRec
113  { CorePart core;
114  XmPrimitivePart primitive;
117 
118 #endif /* _XipAnnotationP_h */
119 /* DON'T ADD ANYTHING AFTER THIS #endif */
XipAnnotationClassRec xipAnnotationClassRec
struct _XipAnnotationClassRec XipAnnotationClassRec
XipAnnotationPart annotation
Definition: AnnotationP.h:115
struct _XipAnnotationRec XipAnnotationRec
XipAnnotationClassPart annotation_class
Definition: AnnotationP.h:94
XmPrimitivePart primitive
Definition: AnnotationP.h:114
CoreClassPart core_class
Definition: AnnotationP.h:92
struct _XipAnnotationPart XipAnnotationPart
XmPrimitiveClassPart primitive_class
Definition: AnnotationP.h:93
struct _XipAnnotationClassPart XipAnnotationClassPart
XtCallbackList activate_CB
Definition: AnnotationP.h:104