aboutsummaryrefslogtreecommitdiff
path: root/vendor/x11iraf/obm/ObmW/Xraw/Arrow.h
blob: bcc7c11359e778baf71c761a8e635ff1c77b4b44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#ifndef _XawArrow_h
#define _XawArrow_h

/* Resources:

 Name		     Class		RepType		Default Value
 ----		     -----		-------		-------------
 background	     Background		Pixel		XtDefaultBackground
 bitmap		     Pixmap		Pixmap		None
 border		     BorderColor	Pixel		XtDefaultForeground
 borderWidth	     BorderWidth	Dimension	1
 cursor		     Cursor		Cursor		None
 cursorName	     Cursor		String		NULL
 destroyCallback     Callback		XtCallbackList	NULL
 direction           Direction          XawDirection    XawTop
 foreground	     Foreground		Pixel		XtDefaultBackground
 height		     Height		Dimension	text height
 insensitiveBorder   Insensitive	Pixmap		Gray
 mappedWhenManaged   MappedWhenManaged	Boolean		True
 pointerColor	     Foreground		Pixel		XtDefaultForeground
 pointerColorBackground Background	Pixel		XtDefaultBackground
 sensitive	     Sensitive		Boolean		True
 shadowWidht         ShadowWidht        Dimension       2
 width		     Width		Dimension	8
 x		     Position		Position	0
 y		     Position		Position	0

*/

typedef enum {
  XawLeft,
  XawRight,
  XawTop,
  XawBottom
}XawDirection;


/* new instance and class names */
#ifndef XtNdirection
#define XtNdirection  "direction"
#endif

#ifndef XtCDirection
#define XtCDirection  "Direction"
#endif

#ifndef XtRDirection
#define XtRDirection  "Direction"
#endif

#ifndef XtNforeground
#define XtNforeground "foreground"
#endif
#ifndef XtCForeground
#define XtCForeground "Foreground"
#endif

#ifndef XtRPixel
#define XtRPixel "Pixel"
#endif

#ifndef XtNarrowShadow
#define XtNarrowShadow "arrowShadow"
#endif
#ifndef XtCArrowShadow
#define XtCArrowShadow "ArrowShadow"
#endif
#ifndef XtRDimension
#define XtRDimension "Dimension"
#endif

#ifndef XtNinitialDelay
#define XtNinitialDelay "initialDelay"
#endif
#ifndef XtCInitialDelay
#define XtCInitialDelay "InitialDelay"
#endif
#ifndef XtRCardinal
#define XtRCardinal "Cardinal"
#endif

#ifndef XtNrepeatDelay
#define XtNrepeatDelay "repeatDelay"
#endif
#ifndef XtCRepeatDelay
#define XtCRepeatDelay "RepeatDelay"
#endif
#ifndef XtRCardinal
#define XtRCardinal "Cardinal"
#endif

#ifndef XtNcallback
#define XtNcallback "callback"
#endif
#ifndef XtCCallback
#define XtCCallback "Callback"
#endif
#ifndef XtRCallback
#define XtRCallback "Callback"
#endif
                                        /* external declarations */

typedef struct {
  XawDirection   direction;
  XPoint p1[3];
  XPoint p2[4];
  XPoint p3[4];
  XPoint p4[4];
  int    a;
  int    a2;
  int    a3;
}XawDrawArrowStruct;

extern void XawMakeDrawArrowStruct(
#if NeedFunctionPrototypes
    int                  /* x         */,
    int                  /* y         */,
    unsigned int         /* w         */,
    unsigned int         /* h         */,
    unsigned int         /* thickness */,
    XawDirection            /* direction */,
    XawDrawArrowStruct * /* result    */
#endif
);

extern void XawDrawArrow(
#if NeedFunctionPrototypes
    Widget               /* w           */,
    GC                   /* inner       */,
    GC                   /* top         */,
    GC                   /* bottom      */,
    XawDrawArrowStruct * /* draw struct */
#endif
);

extern WidgetClass arrowWidgetClass;

typedef struct _ArrowClassRec *ArrowWidgetClass;
typedef struct _ArrowRec      *ArrowWidget;


#endif /* _XawArrow_h */