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
|
/*
* Motif Tools Library, Version 3.1
* $Id$
*
* Written by David Flanagan.
* Copyright (c) 1992-2001 by David Flanagan.
* All Rights Reserved. See the file COPYRIGHT for details.
* This is open source software. See the file LICENSE for details.
* There is no warranty for this software. See NO_WARRANTY for details.
*
* $Log$
* Revision 1.1.1.1 2001/07/18 11:06:03 root
* Initial checkin.
*
* Revision 1.2 2001/06/12 16:25:28 andre
* *** empty log message ***
*
*
*/
#ifndef _XmtUtil_h
#define _XmtUtil_h
/*
* constants for XmtFindFile()
*/
#define XmtSearchPathOnly 0x00
#define XmtSearchUserPath 0x01
#define XmtSearchAppPath 0x02
#define XmtSearchSysPath 0x04
#define XmtSearchEverywhere \
(XmtSearchUserPath | XmtSearchAppPath | XmtSearchSysPath)
_XFUNCPROTOBEGIN
#if NeedFunctionPrototypes
extern void XmtRegisterAll(void);
extern Widget XmtInitialize(XtAppContext *, String,
XrmOptionDescList, Cardinal, int *, String *,
String *, ArgList, Cardinal);
extern void XmtBlock(Widget, Boolean *);
extern Widget XmtGetApplicationShell(Widget) gcc_const_attribute;
extern Widget XmtGetTopLevelShell(Widget) gcc_const_attribute;
extern Widget XmtGetShell(Widget) gcc_const_attribute;
extern String XmtFindFile(Widget, StringConst, StringConst,
StringConst, StringConst, StringConst, int);
extern XmString XmtCreateXmString(StringConst);
extern XmString XmtCreateLocalizedXmString(Widget, StringConst);
extern Widget XmtNameToWidget(Widget, StringConst);
extern void XmtWaitUntilMapped(Widget);
extern void XmtDisplayBusyCursor(Widget);
extern void XmtDisplayDefaultCursor(Widget);
extern void XmtDisplayCursor(Widget, Cursor);
extern void XmtDiscardButtonEvents(Widget);
extern void XmtDiscardKeyPressEvents(Widget);
extern void XmtSetInitialFocus(Widget, Widget);
extern int XmtBSearch(StringConst, String *, int);
extern String XmtGetHomeDir(void);
extern void XmtAddDeleteCallback(Widget, int, XtCallbackProc, XtPointer);
extern void XmtAddSaveYourselfCallback(Widget, XtCallbackProc, XtPointer);
extern Boolean XmtCheckPrintfFormat(StringConst, StringConst);
extern void XmtIconifyShell(Widget);
extern void XmtDeiconifyShell(Widget);
extern void XmtRaiseShell(Widget);
extern void XmtLowerShell(Widget);
extern void XmtFocusShell(Widget);
extern void XmtSetFocusToShell(Widget);
extern void XmtWarpToShell(Widget);
extern void XmtMoveShellToPointer(Widget);
extern String _XmtLocalize(Screen* , StringConst, StringConst, StringConst);
extern String XmtLocalize(Widget, StringConst, StringConst);
extern String XmtLocalizeWidget(Widget, StringConst, StringConst);
extern String XmtLocalize2(Widget, StringConst, StringConst, StringConst);
extern Visual *XmtGetVisual(Widget);
extern void XmtPatchVisualInheritance(void);
#else
extern void XmtRegisterAll();
extern Widget XmtInitialize();
extern void XmtBlock();
extern Widget XmtGetApplicationShell();
extern Widget XmtGetTopLevelShell();
extern Widget XmtGetShell();
extern String XmtFindFile();
extern XmString XmtCreateXmString();
extern XmString XmtCreateLocalizedXmString();
extern Widget XmtNameToWidget();
extern void XmtWaitUntilMapped();
extern void XmtDisplayBusyCursor();
extern void XmtDisplayDefaultCursor();
extern void XmtDisplayCursor();
extern void XmtDiscardButtonEvents();
extern void XmtDiscardKeyPressEvents();
extern void XmtSetInitialFocus();
extern int XmtBSearch();
extern String XmtGetHomeDir();
extern void XmtAddDeleteCallback();
extern void XmtAddSaveYourselfCallback();
extern Boolean XmtCheckPrintfFormat();
extern void XmtIconifyShell();
extern void XmtDeiconifyShell();
extern void XmtRaiseShell();
extern void XmtLowerShell();
extern void XmtFocusShell();
extern void XmtSetFocusToShell();
extern void XmtWarpToShell();
extern void XmtMoveShellToPointer();
extern String _XmtLocalize();
extern String XmtLocalize();
extern String XmtLocalizeWidget();
extern String XmtLocalize2();
extern Visual *XmtGetVisual();
extern void XmtPatchVisualInheritance();
#endif
#if NeedVarargsPrototypes
extern void XmtErrorMsg(String, String, String, ...) gcc_printf_func(3,4);
extern void XmtWarningMsg(String, String, String, ...) gcc_printf_func(3,4);
#else
extern void XmtErrorMsg();
extern void XmtWarningMsg();
#endif
/*
* like assert(), XmtAssertWidgetClass() is only defined ifndef NDEBUG
*/
#ifndef NDEBUG
#if NeedFunctionPrototypes
extern void XmtAssertWidgetClass(Widget, WidgetClass, String);
#else
extern void XmtAssertWidgetClass();
#endif
#else
#define XmtAssertWidgetClass(w, c, msg)
#endif /* NDEBUG */
_XFUNCPROTOEND
#endif /* _XmtUtil_h */
|