File indexing completed on 2025-01-18 10:15:27
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 #ifndef _XmProtocols_h
0024 #define _XmProtocols_h
0025
0026 #include <Xm/Xm.h>
0027 #include <Xm/AtomMgr.h>
0028
0029 #ifdef __cplusplus
0030 extern "C" {
0031 #endif
0032
0033
0034
0035 #ifndef XmCR_WM_PROTOCOLS
0036 #define XmCR_WM_PROTOCOLS 6666
0037 #endif
0038
0039
0040 #ifdef XA_WM_PROTOCOLS
0041 #define XM_WM_PROTOCOL_ATOM(shell) XA_WM_PROTOCOLS
0042 #else
0043 #define XM_WM_PROTOCOL_ATOM(shell) \
0044 XInternAtom(XtDisplay(shell),"WM_PROTOCOLS",FALSE)
0045 #endif
0046
0047
0048 #define XmAddWMProtocols(shell, protocols, num_protocols) \
0049 XmAddProtocols(shell, XM_WM_PROTOCOL_ATOM(shell), \
0050 protocols, num_protocols)
0051
0052 #define XmRemoveWMProtocols(shell, protocols, num_protocols) \
0053 XmRemoveProtocols(shell, XM_WM_PROTOCOL_ATOM(shell), \
0054 protocols, num_protocols)
0055
0056 #define XmAddWMProtocolCallback(shell, protocol, callback, closure) \
0057 XmAddProtocolCallback(shell, XM_WM_PROTOCOL_ATOM(shell), \
0058 protocol, callback, closure)
0059
0060 #define XmRemoveWMProtocolCallback(shell, protocol, callback, closure) \
0061 XmRemoveProtocolCallback(shell, XM_WM_PROTOCOL_ATOM(shell), \
0062 protocol, callback, closure)
0063
0064 #define XmActivateWMProtocol(shell, protocol) \
0065 XmActivateProtocol(shell, XM_WM_PROTOCOL_ATOM(shell), protocol)
0066
0067 #define XmDeactivateWMProtocol(shell, protocol) \
0068 XmDeactivateProtocol(shell, XM_WM_PROTOCOL_ATOM(shell), protocol)
0069
0070 #define XmSetWMProtocolHooks(shell, protocol, pre_h, pre_c, post_h, post_c) \
0071 XmSetProtocolHooks(shell, XM_WM_PROTOCOL_ATOM(shell), \
0072 protocol, pre_h, pre_c, post_h, post_c)
0073
0074
0075
0076
0077 extern void XmAddProtocols(
0078 Widget shell,
0079 Atom property,
0080 Atom *protocols,
0081 Cardinal num_protocols) ;
0082 extern void XmRemoveProtocols(
0083 Widget shell,
0084 Atom property,
0085 Atom *protocols,
0086 Cardinal num_protocols) ;
0087 extern void XmAddProtocolCallback(
0088 Widget shell,
0089 Atom property,
0090 Atom proto_atom,
0091 XtCallbackProc callback,
0092 XtPointer closure) ;
0093 extern void XmRemoveProtocolCallback(
0094 Widget shell,
0095 Atom property,
0096 Atom proto_atom,
0097 XtCallbackProc callback,
0098 XtPointer closure) ;
0099 extern void XmActivateProtocol(
0100 Widget shell,
0101 Atom property,
0102 Atom proto_atom) ;
0103 extern void XmDeactivateProtocol(
0104 Widget shell,
0105 Atom property,
0106 Atom proto_atom) ;
0107 extern void XmSetProtocolHooks(
0108 Widget shell,
0109 Atom property,
0110 Atom proto_atom,
0111 XtCallbackProc pre_hook,
0112 XtPointer pre_closure,
0113 XtCallbackProc post_hook,
0114 XtPointer post_closure) ;
0115
0116
0117
0118
0119 #ifdef __cplusplus
0120 }
0121 #endif
0122
0123 #endif