8 #include <X11/cursorfont.h>
9 #include <X11/Intrinsic.h>
13 #include <mix/Types.h>
24 #define ZmDefineCB(NameCB) void NameCB (Widget w, \
25 XtPointer pUserData, \
40 } ZmDialogCompletition;
47 #define ZM_EVENTS_NUMBER 15
49 void ZmProcessEvents (Widget w,
int nEvents);
55 void ChangeArmState (Widget w);
56 void SetSensitivity (Widget w, Logic flag);
64 unsigned XListToplevelWindows (Display* dpy, Window root,
73 Logic XCheckToplevelWindow (Display* dpy, Window wid);
80 #define XMPRINTF_BUFSIZE 1024
82 XmString xmprintf (
const char* format, ...);
88 Widget ZmToplevel (Widget w);
93 void ZmFullWidgetName (Widget w);
98 void ZmAssignIconFromBitmapData (Widget w,
char* data,
99 int width,
int height);
108 #define ZmInlineXBM(root) root##_bits,root##_width,root##_height
110 #define ZmAssignIconFromBitmap(w,root) \
111 ZmAssignIconFromBitmapData(w,root##_bits,root##_width,root##_height)
119 char* ZmTextFieldNewValue (
const XmTextVerifyPtr verify,
120 const char* prevValue);
133 ZmTextVerified ZmVerifyModText (Widget wTextField,
134 XmTextVerifyPtr verify);
143 void ZmSetCursor (Display* dpy, Window wid,
unsigned int xcursor);
146 void ZmSetCursorInWidget (Widget w,
unsigned int xcursor);
149 void ZmResetCursor (Display* dpy, Window wid);
152 void ZmResetCursorInWidget (Widget w);
155 void ZmFreeAllCursors (Display* dpy);
176 ErrCode ZmWriteImageToTIFF (
const char* path,
177 Display* dpy, Drawable did, XRectangle* area,
184 ErrCode ZmWriteImageToPNG (
const char* path,
185 Display* dpy, Drawable did, XRectangle* area,
192 void ZmSaveImage (Widget wParent, Drawable did, XRectangle* area,
193 const char* szDescription);
201 Pixmap ZmCreateAndCopyPixmap (Display* dpy, Drawable src);
204 void ZmFillDrawable (Display* dpy, Drawable dst,
const char* color);
207 void ZmCopyDrawable (Display* dpy, Drawable dst, Drawable src);
216 typedef void* ProgressStruct;
221 PROGRESS_RUNNING = 0,
229 typedef float ZmPrMeter;
232 ProgressState ZmCreateProgressIndicator (ProgressStruct* ps,
234 double begin_v,
double end_v);
237 void ZmDestroyProgressIndicator (ProgressStruct* ps);
240 ProgressState ZmProgressStep (ProgressStruct* ps,
double step_v);
243 void ZmProgressMsg (ProgressStruct* ps,
const char* fmt, ...);
246 void Fortran(prgindstep)(
float* step_v,
int* state);
249 #ifdef __DefaultProgressIndicator
254 #define ZmEXTERN_VAR extern
257 ZmEXTERN_VAR ProgressStruct psDefaultProgress;