Fix dedicatedness check in display-buffer
[emacs.git] / oldXMenu / XMenuInt.h
blobdc6a0e5192a93ccc84dd6eb919eab8b209500d20
1 /* Copyright Massachusetts Institute of Technology 1985 */
3 #include "copyright.h"
6 /*
7 * XMenu: MIT Project Athena, X Window system menu package
9 * XMenuInternal.h - Internal menu system include file for the
10 * MIT Project Athena XMenu X window system
11 * menu package.
13 * Author: Tony Della Fera, DEC
14 * October, 1985
17 #ifndef _XMenuInternal_h_
18 #define _XMenuInternal_h_
20 /* Avoid warnings about redefining NULL by including <stdio.h> first;
21 the other file which wants to define it (<stddef.h> on Ultrix
22 systems) can deal if NULL is already defined, but <stdio.h> can't. */
23 #include <stdio.h>
24 #include <X11/Xlib.h>
25 #include "X10.h"
26 #include "XMenu.h"
28 #define min(x, y) ((x) <= (y) ? (x) : (y))
29 #define max(x, y) ((x) >= (y) ? (x) : (y))
30 #define abs(a) ((a) < 0 ? -(a) : (a))
32 #define _X_FAILURE -1
34 #define _SUCCESS 1
35 #define _FAILURE -1
38 * XMenu internal event handler variable.
40 extern int (*_XMEventHandler)(XEvent*);
42 #ifndef Pixel
43 #define Pixel unsigned long
44 #endif
47 * Internal routine declarations.
49 int _XMWinQueInit(void); /* No value actually returned. */
50 int _XMWinQueAddPane(register Display *display, register XMenu *menu, register XMPane *p_ptr);
51 int _XMWinQueAddSelection(register Display *display, register XMenu *menu, register XMSelect *s_ptr);
52 int _XMWinQueFlush(register Display *display, register XMenu *menu, register XMPane *pane, XMSelect *select);
53 XMPane *_XMGetPanePtr(register XMenu *menu, register int p_num);
54 XMSelect *_XMGetSelectionPtr(register XMPane *p_ptr, register int s_num);
55 int _XMRecomputeGlobals(register Display *display, register XMenu *menu); /* No value actually returned. */
56 int _XMRecomputePane(register Display *display, register XMenu *menu, register XMPane *p_ptr, register int p_num);
57 int _XMRecomputeSelection(register Display *display, register XMenu *menu, register XMSelect *s_ptr, register int s_num);
58 int _XMTransToOrigin(Display *display, register XMenu *menu, register XMPane *p_ptr, register XMSelect *s_ptr, int x_pos, int y_pos, int *orig_x, int *orig_y); /* No value actually returned. */
59 int _XMRefreshPane(register Display *display, register XMenu *menu, register XMPane *pane); /* No value actually returned. */
61 #endif
62 /* Don't add stuff after this #endif */
64 /* arch-tag: 00640af1-9386-48b5-a4be-35620b8cd3aa
65 (do not change this comment) */