DAS  3.1.6 - 18/09/2017
Mgui.h
Go to the documentation of this file.
1 /*
2  * This file is part of the MGUI (Morello Graphic User Interface)
3  * library. Copyright 1995-2003 Vincenzo Morello.
4  *
5  */
6 
7 
8 #ifndef _MGUI_H
9 #define _MGUI_H
10 
11 #include <stdarg.h>
12 
13 #include "mguidefs.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 void MGUIMain(int argc, char **argv);
20 
21 void MClearDiskError(void);
22 int MGetDiskError(int *disk, int *code);
24 
25 int MPaletteMode(void);
26 int MGetScreenWidth(void);
27 int MGetScreenHeight(void);
28 int MGetNPlanes(void);
29 long MGetNColors(void);
30 MTColor MBlackColor(void);
31 MTColor MWhiteColor(void);
32 
33 const char *MGetSysDir(void);
34 const char *MGetApplicationName(void);
35 
36 void MEnableCustomizing(void);
37 void MEnableCharBrowser(void);
38 
39 char *MGetStringOption(const char *obj_name, const char *opt_name);
40 char *MGetTextOption(const char *obj_name);
41 char *MGetBGImageOption(const char *obj_name, int *mode);
42 int MGetIntOption(const char *obj_name, const char *opt_name, int *ret);
43 int MGetFontOption(const char *obj_name, MTFont *ret);
44 int MGetBGColorOption(const char *obj_name, int *pr, int *pg, int *pb);
45 int MGetFGColorOption(const char *obj_name, int *pr, int *pg, int *pb);
46 int MGetShadowOption(const char *obj_name, int *shadow, int *i_t, int *o_t);
47 
48 void MSetStringOption(const char *obj_name, const char *opt_name, const char *value);
49 void MSetTextOption(const char *obj_name, const char *text);
50 void MSetBGImageOption(const char *obj_name, const char *bgimage, int mode);
51 void MSetIntOption(const char *obj_name, const char *rname, int val);
52 void MSetFGColorOption(const char *obj_name, int r, int g, int b);
53 void MSetBGColorOption(const char *obj_name, int r, int g, int b);
54 void MSetShadowOption(const char *obj_name, int shadow, int in_t, int out_t);
55 void MSetFontOption(const char *obj_name, MTFont font);
56 void MSaveOptions(void);
57 
58 void MMainLoop(void);
59 void MLoopWhileFlag(int *pflag, int value);
60 void MLoopWhileEvents(int discard);
61 void MNextEvent(MEvent *pe, int wait);
62 void MProcessEvent(MEvent *pe);
63 void MGUITerm(void);
64 
65 MTCursor MCreateCursor(MIMAGE bits, int xs, int ys);
66 MTFont MLoadFont(const char *family, int h, int bold, int italic);
67 void MUnloadFont(MTFont font);
68 const char *MGetFirstFontFamily(void);
69 const char *MGetNextFontFamily(void);
70 
71 int MTextCharX(const char *text, MTFont font, int x);
72 int MTextHeight(const char *text, MTFont font);
73 int MCharHeight(unsigned int car, MTFont font);
74 int MTextWidth(const char *text, MTFont font);
75 int MTextNWidth(const char *text, MTFont font, int len);
76 int MCharWidth(unsigned int car, MTFont font);
77 
78 void MBeep(void);
79 
80 MTColor MAllocColor(int r, int g, int b);
81 MTColor MAllocShiftColor(MTColor col, int percentage);
84 void MFreeColor(MTColor col);
85 MTColor MAllocCell(int r, int g, int b);
86 void MSetCellColor(MTColor c, int r, int g, int b);
87 void MFreeCell(MTColor c);
88 void MQueryColor(MTColor col, int *pr, int *pg, int *pb);
89 
90 int MGetKeyboardState(void);
91 
92 void MGetDefaultBackgroundRGB(int *pr, int *pg, int *pb);
93 void MSetDefaultBackgroundRGB(int r, int g, int b);
94 void MGetDefaultForegroundRGB(int *pr, int *pg, int *pb);
95 void MSetDefaultForegroundRGB(int r, int g, int b);
97 
98 /* MIMAGE */
99 
100 MIMAGE MAllocImage(int img_w, int img_h, int nplanes);
101 MIMAGE MReadImageFile(const char *fname);
102 MIMAGE MReadBMPFile(const char *fname);
103 MIMAGE MReadTIFFFile(const char *fname);
104 MIMAGE MReadJPEGFile(const char *fname);
105 MIMAGE MReadGIFFile(const char *fname);
106 MIMAGE MReadPNGFile(const char *fname);
107 void MImageAddDefaultTypeGIF(void);
108 void MImageAddDefaultTypeTIFF(void);
109 void MImageAddDefaultTypeJPEG(void);
110 void MImageAddDefaultTypePNG(void);
111 void MAddImagePath(const char *path);
112 void MRemoveImagePath(const char *path);
113 const char *MFindImagePath(const char *image_name);
114 
116 MIMAGE MImageCloneShifted(MIMAGE img, int sx, int sy, int dw, int dh, int bg_rr, int bg_gg, int bg_bb, int transp);
119 MIMAGE MCreateImageMaskByRGB(MIMAGE img, int r, int g, int b);
121 int MImageGetPixelAlpha(MIMAGE img, int x, int y);
122 void MImageSetPixelAlpha(MIMAGE img, int x, int y, CARD8 alpha);
123 
124 int MWriteTIFFFile(MIMAGE img, const char *name, int compression);
125 int MWriteBMPFile(MIMAGE img, const char *fname);
126 int MWriteJPEGFile(MIMAGE img, const char *name, int quality);
127 
128 void MFreeImage(MIMAGE data);
131 void MImageGetInfo(MIMAGE pmi, int *pw, int *ph, int *pnplanes);
132 void MImageGetPixelRGB(MIMAGE pmi, int x, int y, int *pr, int *pg, int *pb);
133 void MImageSetPixelRGB(MIMAGE pmi, int x, int y, int r, int g, int b);
134 int MImageGetPixelIndex(MIMAGE pmi, int x, int y);
135 void MImageSetPixelIndex(MIMAGE pmi, int x, int y, int i);
136 void MImageGetCMapEntry(MIMAGE pmi, int i, int *pr, int *pg, int *pb);
137 void MImageSetCMapEntry(MIMAGE pmi, int i, int r, int g, int b);
138 
139 void MImageSetMask(MIMAGE dst, MIMAGE mask);
140 void MImageMerge(MIMAGE dst, MIMAGE src, int xo, int yo, int transparent);
141 void MImageComputeBackgroundRGB(MIMAGE img, int *pr, int *pg, int *pb);
142 
143 void MImageSetMaskByCMapIndex(MIMAGE img, int id);
144 void MImageSetMaskByPixel(MIMAGE img, int x, int y);
145 void MImageSetMaskByRGB(MIMAGE img, int r, int g, int b);
146 
147 
148 /* MLOG */
149 
150 void MLogInit(int level, int nr, int nvr, int nc, int nvc, const char *fname);
151 void MLog(int level, const char *fmt, ...);
152 void MMaskedLog(int level, CARD32 mask, const char *fmt, ...);
153 void vMLog(int level, const char *fmt, va_list vl);
154 void vMMaskedLog(int level, CARD32 mask, const char *fmt, va_list vl);
155 void MLogSetLevel(int level);
156 void MLogSetMask(CARD32 a);
157 CARD32 MLogGetMask(void);
158 void MLogSetMaskBits(CARD32 a);
159 void MLogResetMaskBits(CARD32 a);
160 void MLogSetTimeFormat(const char *strftime_format);
161 void MSetTraceFileName(const char *filename);
162 void MTraceSetTimeFormat(const char *strftime_format);
163 void Trace(const char *fmt,...);
164 void vTrace(const char *fmt, va_list vl);
165 
166 /* SPOOL */
167 
168 int MSpoolFile(const char *fname);
169 int MSpoolTempFile(const char *fname);
170 
171 
172 void MDrawText(MOBJECT p, int x, int y, int w, int h, const char *text,
173  MTFont font, MTColor fgc, int align);
174 void MDrawNText(MOBJECT p, int x, int y, int w, int h, const char *text,
175  MTFont font, MTColor fgc, int align, int n);
176 void MDrawBGText(MOBJECT p, int x, int y, int w, int h, const char *text,
177  MTFont font, MTColor bgc, MTColor fgc, int align);
178 void MDrawBGNText(MOBJECT p, int x, int y, int w, int h, const char *text,
179  MTFont font, MTColor bgc, MTColor fgc, int align, int n);
180 void MDrawShadowedText(MOBJECT p, int x, int y, int w, int h, const char *text,
181  MTFont font, int sh, MTColor fgc1, MTColor fgc2, int align);
182 void MDrawShadowedNText(MOBJECT p, int x, int y, int w, int h, const char *text,
183  MTFont font, int sh, MTColor fgc1, MTColor fgc2, int align, int n);
184 
185 void MDrawPoint(MOBJECT p, int x, int y, MTColor col);
186 void MDrawLine(MOBJECT p, int x1, int y1, int x2, int y2, MTColor col);
187 void MDrawPolyline(MOBJECT p, MPOINT *points, int n, MTColor col);
188 void MDrawFilledPolyline(MOBJECT p, MPOINT *points, int n, MTColor col);
189 void MDrawBox(MOBJECT p, int x, int y, int w, int h, MTColor bgc);
190 void MDrawFilledBox(MOBJECT p, int x, int y, int w, int h, MTColor bgc);
191 void MDrawCircle(MOBJECT p, int x, int y, int r, MTColor col);
192 void MDrawFilledCircle(MOBJECT p, int x, int y, int r, MTColor col);
193 void MDrawArc(MOBJECT p, int x, int y, int r, int a1, int a2, MTColor col);
194 void MDrawFilledArc(MOBJECT p, int x, int y, int r, int a1, int a2, MTColor c);
195 void MDrawImage(MOBJECT p, MIMAGE gi, int pm_x, int pm_y, int w, int h,
196  int x, int y);
197 void MDrawXorLine(MOBJECT p, int x1, int y1, int x2, int y2);
198 void MDrawXorBox(MOBJECT p, int x, int y, int w, int h);
199 
200 void MDrawWindow(MOBJECT o);
201 void MDrawShadow(MOBJECT o);
202 void MDrawSubShadow(MOBJECT o, int x, int y, int w, int h, MTColor tsc, MTColor bsc, int thick);
203 void MDrawBorder(MOBJECT o, int x, int y, int w, int h, MTColor col, int thick);
204 
205 void MEraseArea(MOBJECT o, int x, int y, int w, int h);
206 void MErase(MOBJECT o);
207 void MClear(MOBJECT o);
208 void MEraseBorder(MOBJECT o, int x, int y, int w, int h, int thick);
209 
210 /* Object properties */
211 
212 char *MObjectGetText(MOBJECT obj, char *text);
213 void MObjectSetText(MOBJECT obj, const char *text);
214 char *MObjectGetName(MOBJECT obj);
215 void MObjectSetName(MOBJECT obj, const char *name);
216 void *MObjectGetUserData(MOBJECT obj);
217 void MObjectSetUserData(MOBJECT obj, void *ud);
218 int MObjectType(MOBJECT obj);
220 void MObjectEnableOptions(MOBJECT obj, const char *name, CARD32 mask);
221 void MObjectSaveOptions(MOBJECT obj);
223 void MObjectSetPopupHelp(MOBJECT obj, const char *str, int delay, int duration);
224 void MObjectSetLabelHelp(MOBJECT obj, const char *str, MOBJECT label);
225 void MObjectChangePopupHelpText(MOBJECT obj, const char *str);
226 void MObjectChangeLabelHelpText(MOBJECT obj, const char *str);
227 
228 
229 /* Object appereance */
230 
231 void MObjectSetColor(MOBJECT obj, MTColor bgc, MTColor fgc);
234 void MObjectSetBGColorFromParent(MOBJECT obj, int true_false, int percentage);
235 void MObjectSetFGColorFromParent(MOBJECT obj, int true_false);
237 int MObjectUsesBGColorFromParent(MOBJECT obj, int *pret);
240 void MObjectSetBackgroundRGB(MOBJECT obj, int r, int g, int b);
241 void MObjectSetForegroundRGB(MOBJECT obj, int r, int g, int b);
243 void MObjectSetFont(MOBJECT obj, MTFont font, int resize);
244 void MObjectGetShadow(MOBJECT obj, int *type, int *in, int *out);
245 void MObjectSetShadow(MOBJECT obj, int type, int in, int out);
246 void MObjectSetSolid(MOBJECT obj);
248 void MObjectSetTransparency(MOBJECT obj, CARD8 level);
250 void MObjectSetBackgroundImage(MOBJECT obj, MIMAGE img, int mode);
251 void MObjectSetBackgroundImageFile(MOBJECT obj, const char *fname, int mode);
255 void MObjectSetBGImageMaskByCMapIndex(MOBJECT obj, int id);
256 void MObjectSetBGImageMaskByPixel(MOBJECT obj, int x, int y);
257 void MObjectSetBGImageMaskByRGB(MOBJECT obj, int r, int g, int b);
258 void MObjectRefreshTransparentImage(MOBJECT p, MIMAGE img, int ox, int oy);
259 void MObjectMakeVisible(MOBJECT obj);
261 
262 /* Object geometry */
263 
264 int MObjectGetWidth(MOBJECT obj);
265 int MObjectGetHeight(MOBJECT obj);
268 int MObjectGetX(MOBJECT obj);
269 int MObjectGetY(MOBJECT obj);
270 void MObjectSetSize(MOBJECT obj, int w, int h);
271 void MObjectSetWidth(MOBJECT obj, int w);
272 void MObjectSetHeight(MOBJECT obj, int h);
273 void MObjectSetCompositeSize(MOBJECT obj, int w, int h);
274 void MObjectSetMinSize(MOBJECT obj, int w, int h);
275 void MObjectSetCompositeWidth(MOBJECT obj, int w);
276 void MObjectSetCompositeHeight(MOBJECT obj, int h);
277 void MObjectSetPosition(MOBJECT obj, int x, int y);
278 void MObjectSetX(MOBJECT obj, int x);
279 void MObjectSetY(MOBJECT obj, int y);
280 void MObjectSetAttachment(MOBJECT obj, int top, int bot, int left, int rig);
281 void MObjectSetOffset(MOBJECT obj, int t_o, int b_o, int l_o, int r_o);
282 void MObjectAlign(MOBJECT obj, int h_align, int v_align);
283 
284 
285 /* Object behaviour */
286 
288 void MObjectSetSensitive(MOBJECT obj);
289 void MObjectSetSensitivity(MOBJECT obj, int status);
292 void MObjectSetSelectable(MOBJECT obj);
293 void MObjectSetResize(MOBJECT obj, int resize_w, int resize_h);
294 void MObjectSetCursor(MOBJECT obj, MTCursor cursor);
295 
296 
297 /* Object control */
298 
299 void MObjectRedraw(MOBJECT obj);
300 void MObjectMap(MOBJECT obj);
301 void MObjectUnmap(MOBJECT obj);
302 void MObjectResize(MOBJECT obj, int w, int h);
303 void MObjectDestroy(MOBJECT obj);
304 void MDispatchObjEvent(MOBJECT p, MEvent *pe);
305 void MObjectAddEventNotifyCallback(MOBJECT obj, OBJ_EVENT_CB cb, CARD32 event_mask, void *a_data);
306 void MObjectAddDestroyCallback(MOBJECT obj, MGUI_CB cb, void *a_data);
307 void MObjectRemoveEventNotifyCallback(MOBJECT obj, OBJ_EVENT_CB cb, void *a_data);
308 void MObjectRemoveDestroyCallback(MOBJECT obj, MGUI_CB cb, void *a_data);
309 void MInsertObject(MOBJECT parent, MOBJECT obj, MOBJECT where, int resize);
310 void MDeleteObject(MOBJECT obj, int resize);
311 void MReparentObject(MOBJECT parent, MOBJECT obj, MOBJECT where);
312 void MSelectObject(MOBJECT f);
317 void MTopAttach(MOBJECT child, int att_type, int off, MOBJECT obj);
318 void MBottomAttach(MOBJECT child, int att_type, int off, MOBJECT obj);
319 void MRightAttach(MOBJECT child, int att_type, int off, MOBJECT obj);
320 void MLeftAttach(MOBJECT child, int att_type, int off, MOBJECT obj);
321 void MObjectSetAutoScrollWhenSelected(MOBJECT obj, int TrueFalse);
322 
325 
326 
327 /* PIXMAP */
328 
330 MOBJECT MCreatePixmapFromFile(MOBJECT parent, const char *fname);
331 void MPixmapSetImage(MOBJECT pixmap, MIMAGE gi);
332 void MPixmapSetImageFile(MOBJECT pixmap, const char *fname);
334 
335 
336 /* SHELL */
337 
338 MOBJECT MCreateShell(const char *title, int flags);
340 Window MShellGetWindow(MOBJECT s);
341 void MShellDestroy(MOBJECT obj);
342 void MShellSetTitle(MOBJECT obj, const char *title);
343 void MShellGetTitle(MOBJECT obj, char *title);
344 void MShellRealize(MOBJECT obj);
345 void MShellRealizeXY(MOBJECT obj, int x, int y);
346 void MShellRealizeXYWH(MOBJECT obj, int x, int y, int w, int h);
347 void MShellUnrealize(MOBJECT obj);
348 void MShellSetWMCloseCallback(MOBJECT p, WM_CLOSE_CB cb, void *a_data);
349 void MShellRaise(MOBJECT obj);
350 void MShellConfigure(MOBJECT obj, int x, int y, int w, int h);
351 
352 
353 /* FORM */
354 
358 MOBJECT MCreatePagedPosForm(MOBJECT parent, int npage);
359 MOBJECT MCreatePagedRowForm(MOBJECT parent, int npage);
360 MOBJECT MCreatePagedColForm(MOBJECT parent, int npage);
361 MOBJECT MCreatePagedPosFormExt(MOBJECT parent, int npage);
362 MOBJECT MCreatePagedRowFormExt(MOBJECT parent, int npage);
363 MOBJECT MCreatePagedColFormExt(MOBJECT parent, int npage);
364 MOBJECT MCreateTabbedPosForm(MOBJECT parent, int npage, MTFont f);
365 MOBJECT MCreateTabbedRowForm(MOBJECT parent, int npage, MTFont f);
366 MOBJECT MCreateTabbedColForm(MOBJECT parent, int npage, MTFont f);
367 MOBJECT MCreateScrolledPosForm(MOBJECT parent, int clip_w, int clip_h);
368 MOBJECT MCreateScrolledRowForm(MOBJECT parent, int clip_w, int clip_h);
369 MOBJECT MCreateScrolledColForm(MOBJECT parent, int clip_w, int clip_h);
370 MOBJECT MCreateClippedPosForm(MOBJECT parent, int clip_w, int clip_h);
371 MOBJECT MCreateClippedRowForm(MOBJECT parent, int clip_w, int clip_h);
372 MOBJECT MCreateClippedColForm(MOBJECT parent, int clip_w, int clip_h);
373 
374 void MFormSetSpacing(MOBJECT p, int offset);
376 void MScrolledFormSetIncr(MOBJECT obj, int h_inc, int v_inc);
380 void MFormSetPrefAtt(MOBJECT p, int pref_att);
381 void MFormSetFocusWrap(MOBJECT f, int true_false);
382 void MFormSetFocusHighlight(MOBJECT f, int true_false);
383 void MFormFocusLink(MOBJECT obj1, MOBJECT obj2);
384 void MPagedFormSetActivePage(MOBJECT form, int page);
388 void MPagedFormSetNPages(MOBJECT form, int n_pages);
390 void MFormSetClipX(MOBJECT obj, int clip_x);
391 void MFormSetClipY(MOBJECT obj, int clip_y);
392 int MFormGetClipX(MOBJECT obj);
393 int MFormGetClipY(MOBJECT obj);
394 void MFormAddKeyCallback(MOBJECT shell, int key, OBJ_VALUE_CB cb, void *ad);
397 int MFormGetNChildren(MOBJECT form);
400 
401 
402 MOBJECT MCreateTableForm(MOBJECT parent, int n_cols);
403 MOBJECT MCreateScrolledTableForm(MOBJECT parent, int n_cols,
404  int clip_w, int clip_h, int head_rows, int head_cols);
405 void MTableFormShowGrid(MOBJECT form);
406 void MTableFormHideGrid(MOBJECT form);
407 void MTableFormSetRowHeight(MOBJECT form, int row, int h);
408 void MTableFormSetColWidth(MOBJECT form, int col, int w);
409 void MTableFormSetColFont(MOBJECT form, int col, MTFont f);
410 void MTableFormSetColAlign(MOBJECT form, int col, int al);
411 void MTableFormSetRowAlign(MOBJECT form, int row, int al);
412 void MTableFormSetColBackgroundRGB(MOBJECT form, int col, int r, int g, int b);
413 void MTableFormSetColForegroundRGB(MOBJECT form, int col, int r, int g, int b);
414 void MTableFormSetCellText(MOBJECT form, int x, int y, const char *text);
415 void MTableFormGetCellText(MOBJECT form, int x, int y, char *text);
416 void MTableFormSetCellFont(MOBJECT form, int x, int y, MTFont f);
417 void MTableFormSetCellAlign(MOBJECT form, int x, int y, int h_al, int v_al);
418 void MTableFormSetCellBackgroundRGB(MOBJECT form, int x, int y, int r, int g, int b);
419 void MTableFormSetCellForegroundRGB(MOBJECT form, int x, int y, int r, int g, int b);
420 MOBJECT MTableFormGetCellObject(MOBJECT form, int x, int y);
421 void MTableFormSetNCol(MOBJECT form, int nc);
422 int MTableFormGetNCol(MOBJECT form);
423 void MTableFormDeleteRow(MOBJECT form, int row);
425 void MTabbedFormSetTabText(MOBJECT form, int page, const char *buff);
426 void MTabbedFormGetTabText(MOBJECT form, int page, char *buff);
427 
431 void MScrolledFormSetSliderColorShift(MOBJECT p, int percentage);
434 
436 
437 /* DRAWAREA */
438 
439 MOBJECT MCreateDrawArea(MOBJECT parent, int width, int height);
440 void MDrawAreaSetExposeCallback(MOBJECT obj, OBJ_EVENT_CB cb, void *ad);
441 void MDrawAreaSetInputCallback(MOBJECT obj, OBJ_EVENT_CB cb, void *ad);
442 void MDrawAreaSetResizeCallback(MOBJECT obj, DRAWAREA_PREF_CB cb, void *ad);
443 
444 
445 /* Formatted Text objects */
446 
447 MOBJECT MCreateFormattedText(MOBJECT par, const char *text, int clip_w, MTFont f);
448 MOBJECT MCreateScrolledFormattedText(MOBJECT par, const char *text,
449  int clip_w, int clip_h, MTFont f);
450 
451 void MFormattedTextSetMargin(MOBJECT obj, int w_m, int h_m);
452 void MFormattedTextSetHSpacing(MOBJECT obj, int h_s);
453 void MFormattedTextSetTabSize(MOBJECT obj, int ts);
454 
455 /* LABEL */
456 
457 MOBJECT MCreateLabel(MOBJECT parent, const char *text, MTFont font);
458 void MLabelSetMargin(MOBJECT p, int wm, int hm);
459 void MLabelSetHSpacing(MOBJECT p, int hs);
460 void MLabelSetAlignment(MOBJECT p, int align);
461 const char *MLabelValue(MOBJECT label);
462 
463 
464 /* PBUTTON */
465 
468  MIMAGE pn, MIMAGE pa, MIMAGE pu,
469  MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on);
470 MOBJECT MCreateImagePButton(MOBJECT parent, const char *npf, const char *apf,
471  const char *upf);
473  const char *npf, const char *apf, const char *upf,
474  const char *non, const char *aon, const char *uon);
475 MOBJECT MCreateDrawnTextPButton(MOBJECT parent, const char *text, MTFont font,
476  MIMAGE pn, MIMAGE pa, MIMAGE pu);
477 MOBJECT MCreateDrawnTextPButtonExt(MOBJECT parent, const char *text, MTFont font,
478  MIMAGE pn, MIMAGE pa, MIMAGE pu,
479  MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on);
480 MOBJECT MCreateImageTextPButton(MOBJECT parent, const char *text, MTFont font,
481  const char *npf, const char *apf, const char *upf);
482 MOBJECT MCreateImageTextPButtonExt(MOBJECT parent, const char *text, MTFont font,
483  const char *npf, const char *apf, const char *upf,
484  const char *non, const char *aon, const char *uon);
485 MOBJECT MCreatePButton(MOBJECT parent, const char *text, MTFont font);
486 void MPButtonSetCallback(MOBJECT button, MGUI_CB cb, void *data);
487 void MPButtonSetRepeatDelay(MOBJECT button, int first, int repeat);
488 void MPButtonSetMargin(MOBJECT p, int wm, int hm);
489 void MPButtonSetHSpacing(MOBJECT p, int hs);
490 void MPButtonSetAlignment(MOBJECT p, int align);
491 void MPButtonSetImage(MOBJECT obj, const char *npf, const char *apf,
492  const char *upf);
493 
494 /* RBUTTON */
495 
498  MIMAGE pn, MIMAGE pa, MIMAGE pu,
499  MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on);
501  const char *npf, const char *apf, const char *upf);
503  const char *npf, const char *apf, const char *upf,
504  const char *non, const char *aon, const char *uon);
505 MOBJECT MCreateDrawnTextRButton(MOBJECT parent, const char *text, MTFont font,
506  MIMAGE np, MIMAGE ap, MIMAGE up);
507 MOBJECT MCreateDrawnTextRButtonExt(MOBJECT parent, const char *text, MTFont font,
508  MIMAGE pn, MIMAGE pa, MIMAGE pu,
509  MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on);
510 MOBJECT MCreateImageTextRButton(MOBJECT parent, const char *text, MTFont font,
511  const char *npf, const char *apf, const char *upf);
512 MOBJECT MCreateImageTextRButtonExt(MOBJECT parent, const char *text, MTFont font,
513  const char *npf, const char *apf, const char *upf,
514  const char *non, const char *aon, const char *uon);
515 MOBJECT MCreateRButton(MOBJECT parent, const char *text, MTFont font);
516 void MRButtonActivate(MOBJECT o);
518 void MRButtonSetCallback(MOBJECT button, OBJ_VALUE_CB cb, void *data);
520 void MRButtonSetImage(MOBJECT obj, const char *npf, const char *apf, const char *upf);
521 
522 
523 /* TBUTTON */
524 
527  MIMAGE pn, MIMAGE pa, MIMAGE pu,
528  MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on);
530  const char *npf, const char *apf, const char *upf);
532  const char *npf, const char *apf, const char *upf,
533  const char *non, const char *aon, const char *uon);
534 MOBJECT MCreateDrawnTextTButton(MOBJECT parent, const char *text, MTFont font,
535  MIMAGE np, MIMAGE ap, MIMAGE up);
536 MOBJECT MCreateDrawnTextTButtonExt(MOBJECT parent, const char *text, MTFont font,
537  MIMAGE pn, MIMAGE pa, MIMAGE pu,
538  MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on);
539 MOBJECT MCreateImageTextTButton(MOBJECT parent, const char *text, MTFont font,
540  const char *npf, const char *apf, const char *upf);
541 MOBJECT MCreateImageTextTButtonExt(MOBJECT parent, const char *text, MTFont font,
542  const char *npf, const char *apf, const char *upf,
543  const char *non, const char *aon, const char *uon);
544 MOBJECT MCreateTButton(MOBJECT parent, const char *text, MTFont font);
545 void MTButtonActivate(MOBJECT o);
547 void MTButtonSetCallback(MOBJECT button, OBJ_VALUE_CB cb, void *data);
548 void MTButtonSetActivationStatus(MOBJECT o, int status);
550 void MTButtonSetImage(MOBJECT obj, const char *npf, const char *apf, const char *upf);
551 
552 /* Generic Drawn BUTTON functions (work on Push/Toggle/Radio) */
553 
554 void MButtonSetTextVsImageAlignment(MOBJECT button, CARD8 align);
556 void MButtonSetOnMouseOverForegroundRGB(MOBJECT button, int r, int g, int b);
564  const char *npf, const char *apf, const char *upf,
565  const char *npfo, const char *apfo, const char *upfo);
566 void MButtonSetShadowOnMouseOver(MOBJECT obj, int thick);
567 void MButtonSetAccelerator(MOBJECT button, int key);
568 
569 void MButtonSetImageMaskByCMapIndex(MOBJECT obj, int id);
570 void MButtonSetImageMaskByPixel(MOBJECT obj, int x, int y);
571 void MButtonSetImageMaskByRGB(MOBJECT obj, int r, int g, int b);
574 
575 /*STATUSBAR */
576 
577 MOBJECT MCreateStatusBar(MOBJECT parent, const char *text, int max, MTFont font);
578 void MStatusBarSetMax(MOBJECT p, int max);
579 void MStatusBarSetPos(MOBJECT p, int pos);
581 void MStatusBarSetSliderRGB(MOBJECT p, int r, int g, int b);
582 
583 /* MStatusBarSetWidth() is obsoleted by MObjectSetWidth().
584  * The following macro is only present for backward compatibility.
585  */
586 
587 #define MStatusBarSetWidth(obj, w) MObjectSetWidth(obj, w)
588 
589 /* SCROLLBAR */
590 
591 MOBJECT MCreateScrollBar(MOBJECT parent, int type, long n, long max);
592 void MScrollBarSetMax(MOBJECT p, long max);
593 void MScrollBarSetPos(MOBJECT p, long pos);
594 void MScrollBarSetN(MOBJECT p, long n);
595 void MScrollBarSetIncr(MOBJECT p, int incr);
597 void MScrollBarSetValues(MOBJECT p, long max, long n, long pos);
600 long MScrollBarGetN(MOBJECT p);
602 void MScrollBarSetSliderColorShift(MOBJECT p, int percentage);
603 
604 
605 /* SBLIST */
606 
607 MOBJECT MCreateSText(MOBJECT parent, const char *text, MTFont font,
608  int nrow, int ncol);
609 MOBJECT MCreateSTextClip(MOBJECT parent, NEW_BLOCK_CB nb, void *nbd,
610  MTFont font, int nrow, int ncol, int xc, long xn);
611 MOBJECT MCreateSFile(MOBJECT parent, const char *fname, MTFont font,
612  int nrow, int ncol);
613 MOBJECT MCreateSList(MOBJECT parent, MTFont font, int row_len,
614  int nrow, int ncol);
616  int row_len, int nrow, int ncol);
617 MOBJECT MCreateSListClip(MOBJECT parent, NEW_BLOCK_CB nb, void *nbd,
618  ITEM_SEEK_CB is, void *isd, MTFont font,
619  int nrow, int ncol, int xc, long xn);
620 MOBJECT MCreateSListSkip(MOBJECT parent, NEW_BLOCK_CB nb, void *nbd,
621  ITEM_SEEK_CB is, void *isd, MTFont font,
622  int nrow, int ncol, int xc);
623 
625  int ne, int nrow, int ncol);
626 
633 long MSListGetNItem(MOBJECT p);
634 
635 void MSListSelectItem(MOBJECT p, const char *item);
636 void MSListDeselectItem(MOBJECT p, const char *item);
637 void MSListSelectElement(MOBJECT p, long n);
638 void MSListDeselectElement(MOBJECT p, long n);
639 void MSListClear(MOBJECT p);
640 int MSListAddItem(MOBJECT p, const char *item, void *data);
641 int MSListDelItem(MOBJECT p, const char *item);
642 int MSListAddElement(MOBJECT p, long n, const char *item, void *data);
643 int MSListDelElement(MOBJECT p, long n);
644 void MSListChangeItem(MOBJECT p, const char *old, const char *new_item, void *u_data);
645 void MSListChangeElement(MOBJECT p, long n, const char *new_item, void *u_data);
646 LIST_ACT *MSListGetItem(MOBJECT p, const char *item);
649 void MSListSetCallback(MOBJECT obj, LIST_ACT_CB cb, void *data);
650 void MSListSetPickCallback(MOBJECT obj, LIST_ACT_CB cb, void *value);
653 void MSListFreeze(MOBJECT obj);
654 void MSListThaw(MOBJECT obj);
655 void MSBLSetHead(MOBJECT obj, const char *text);
656 void MSBLGetHead(MOBJECT obj, char *buff);
657 void MSBLHeadSetColor(MOBJECT obj, MTColor bgc, MTColor fgc);
658 void MSBLHeadSetBackgroundImage(MOBJECT obj, MIMAGE img, int mode);
659 void MSListSetHighLightColors(MOBJECT obj, MTColor bgc, MTColor fgc);
661 
662 void MSTextSetString(MOBJECT p, const char *text);
663 
664 void MSFileSetFile(MOBJECT obj, const char *fname);
665 
666 void MSBLSetHMargin(MOBJECT p, int hm);
667 
668 int MEditListAddItem(MOBJECT p, char **argv, void *u_data);
669 void MEditListChangeElement(MOBJECT p, long n, char **new_ele, void *data);
670 void MEditListDelElement(MOBJECT p, long n);
671 void MEditListSeekItem(MOBJECT p, char **argv, long *pos, void **u_data);
672 void MEditListGetItemField(MOBJECT el, const char *item, int ii, char *buff);
673 
674 int MEditListAddItemFromEdits(MOBJECT p, void *u_data);
675 void MEditListGetEditText(MOBJECT p, int n, char *buff);
676 void MEditListSetEditText(MOBJECT p, int n, const char *buff);
677 
678 int MSListGetItemCheckStatus(MOBJECT p, const char *item);
679 void MSListSetItemCheckStatus(MOBJECT p, const char *item, int status);
680 void MSListReset(MOBJECT p);
681 void MSListEnableMultiSel(MOBJECT obj);
685 
689 void MSListSetSliderColorShift(MOBJECT p, int percentage);
692 
693 /* EDIT */
694 
695 MOBJECT MCreateClippedEdit(MOBJECT parent, const char *text, int len, int clip_len,
696  MTFont font);
697 MOBJECT MCreateEdit(MOBJECT parent, const char *text, int len, MTFont font);
698 MOBJECT MCreateClippedHiddenEdit(MOBJECT parent, const char *text, int len, int clip_len,
699  MTFont font, char shown_char);
700 MOBJECT MCreateHiddenEdit(MOBJECT parent, const char *text, int len, MTFont font,
701  char shown_char);
702 MOBJECT MCreateSpinEdit(MOBJECT parent, const char *text, int len, int clip_len, MTFont font, OBJ_VALUE_CB cb, void *cd);
703 void MEditSetMargin(MOBJECT edit, int w_margin, int h_margin);
704 void MEditSetFilter(MOBJECT edit, int filter, const char *extra_chars);
705 
706 MOBJECT MCreateClippedMLEdit(MOBJECT parent, const char *text,
707  int width, int height, MTFont font);
708 MOBJECT MCreateScrolledMLEdit(MOBJECT parent, const char *text,
709  int width, int height, MTFont font);
710 
711 void MEditChangeText(MOBJECT edit, int off, int len, const char *new_t, int chg_len);
712 void MEditGetSubString(MOBJECT edit, int start, int end, char *str);
713 int MEditFindSubStringForward(MOBJECT edit, int off, const char *str, int icase);
714 int MEditFindSubStringBackward(MOBJECT edit, int off, const char *str, int icase);
715 void MEditSetSelection(MOBJECT edit, int start, int end);
716 void MEditGetSelection(MOBJECT edit, int *pstart, int *pend);
717 void MEditSetCursorPos(MOBJECT edit, int pos);
718 int MEditGetCursorPos(MOBJECT edit);
719 void MEditSetCursorXY(MOBJECT edit, int x, int y);
720 void MEditGetCursorXY(MOBJECT edit, int *px, int *py);
721 void MEditSetAutoIndent(MOBJECT edit, int on_off);
722 void MEditSetTabSize(MOBJECT edit, int size);
723 void MEditSetClipWindow(MOBJECT edit, int clip_w, int clip_h);
724 void MEditSetBufferSize(MOBJECT edit, int clip_size, int size);
725 
726 void MEditSetCursorPosCallback(MOBJECT edit, EDIT_CURS_CB cb, void *data);
727 
728 void MEditSetTextExt(MOBJECT edit, const char *text, int validated, int notify);
729 void MEditSetActCallback(MOBJECT edit, OBJ_STRING_CB cb, void *data);
730 void MEditSetValCallback(MOBJECT edit, EDIT_VAL_CB cb, void *data);
732 void MEditSetNewValueCallback(MOBJECT edit, OBJ_STRING_CB cb, void *data);
733 void MEditSetHotKeyCallback(MOBJECT edit, int key, MGUI_CB cb, void *data);
734 void MEditSetValidatedColors(MOBJECT edit, MTColor bg_color, MTColor fg_color);
736 void MEditSetValidationStatus(MOBJECT edit, int validated);
737 void MEditSetReplace(MOBJECT edit);
740 const char *MEditValue(MOBJECT edit);
741 void MEditHide(MOBJECT edit, char shown_char);
742 void MEditUnhide(MOBJECT edit);
743 void MSpinEditSetCallback(MOBJECT spinedit, OBJ_VALUE_CB cb, void *data);
744 void MEditEnableEditing(MOBJECT edit);
745 void MEditDisableEditing(MOBJECT edit);
746 
749 
753 void MScrolledEditSetSliderColorShift(MOBJECT p, int percentage);
754 
755 
756 /* OPTIONEDIT */
757 
758 MOBJECT MCreateOptionEdit(MOBJECT parent, const char *text, int len, int clip_len,
759  int nrow, MTFont font);
762 
763 
764 /* MENU */
765 
767 MOBJECT MCreateMenu(MOBJECT menu, const char *text);
771 MENU_ITEM MMenuAddItemObsolete(MOBJECT pd, const char *item, MGUI_CB cb, void *ad);
772 MENU_ITEM MMenuAddItem(MOBJECT pd, const char *item, MENU_ITEM_CB cb, void *ad);
773 MENU_ITEM MMenuAddRadioItem(MOBJECT pd, const char *item, MENU_ITEM_CB cb, void *ad);
774 MENU_ITEM MMenuAddToggleItem(MOBJECT pd, const char *item, MENU_ITEM_CB cb, void *ad);
776 void MPopupMenu(MOBJECT pm, int x, int y);
777 void MMenuSetTitleText(MOBJECT pd, const char *text);
778 void MMenuItemSetText(MENU_ITEM item, const char *text);
779 void MMenuItemSetAccel(MENU_ITEM item, int acc, const char *at);
782 void MMenuItemSetSelectCB(MOBJECT p, MGUI_CB cb, void *ad);
783 void MMenuBarSetAcc(MOBJECT menu, int acc);
784 const char *MMenuItemGetText(MENU_ITEM item);
785 const char *MMenuGetTitleText(MOBJECT obj);
786 int MMenuItemSetCheckStatus(MENU_ITEM item, int TrueFalse);
792 void MMenuSetHighLightColors(MOBJECT obj, MTColor bgc, MTColor fgc);
794 
795 
796 /* MTREE */
797 
798 MOBJECT MCreateTree(MOBJECT parent, MTFont font, int width, int height, int n_types);
799 MTNODE MTreeCreateNode(MOBJECT tree, MTNODE parent, CARD16 type, CARD16 flags,
800  const char *text);
801 void MTreeDestroyNode(MTNODE node, int notify);
802 void MTreeDestroyNodeContainee(MTNODE node, int notify);
803 void MTreeOpenNode(MTNODE node, int notify);
804 void MTreeCloseNode(MTNODE node, int notify);
805 void MTreeSelectNode(MTNODE node, int notify);
806 
807 void MTreeSetOpenCallback(MOBJECT tree, MTREE_NODE_CB cb, void *ud);
808 void MTreeSetCloseCallback(MOBJECT tree, MTREE_NODE_CB cb, void *ud);
809 void MTreeSetSelectCallback(MOBJECT tree, MTREE_NODE_CB cb, void *ud);
810 void MTreeSetDestroyCallback(MOBJECT tree, MTREE_NODE_CB cb, void *ud);
811 void MTreeSetPopupCallback(MOBJECT tree, MTREE_POPUP_CB cb, void *ud);
812 
813 void MTreeSetRenameCallback(MOBJECT tree, MTREE_NODE_RENAME_CB cb, void *ud);
814 void MTreeSetDeleteCallback(MOBJECT tree, MTREE_NODE_DELETE_CB cb, void *ud);
815 
816 void MTreeSetImagesByName(MOBJECT tree, int type, const char *norm, const char *open, const char *sel);
817 void MTreeSetImagesByData(MOBJECT tree, int type, MIMAGE norm, MIMAGE open, MIMAGE sel);
818 
819 void MTreeSetHighLightColors(MOBJECT obj, MTColor bgc, MTColor fgc);
822 
826 void MTreeSetSliderColorShift(MOBJECT p, int percentage);
829 
832 
837 char *MTreeNodeGetPath(MTNODE node, char separator, char *buff);
838 void MTreeNodeSetImages(MTNODE node, MIMAGE norm, MIMAGE open, MIMAGE sel);
839 void MTreeNodeSetText(MTNODE node, const char *text);
840 char *MTreeNodeGetText(MTNODE node, char *text);
841 void MTreeNodeSetUserData(MTNODE node, void *ud);
842 void *MTreeNodeGetUserData(MTNODE node);
843 CARD16 MTreeNodeGetType(MTNODE node);
844 void MTreeNodeEdit (MTNODE node);
845 
846 void MTreeNodeSetOpenCallback(MTNODE node, MTREE_NODE_CB cb, void *ud);
847 void MTreeNodeSetCloseCallback(MTNODE node, MTREE_NODE_CB cb, void *ud);
848 void MTreeNodeSetSelectCallback(MTNODE node, MTREE_NODE_CB cb, void *ud);
849 void MTreeNodeSetDestroyCallback(MTNODE node, MTREE_NODE_CB cb, void *ud);
850 void MTreeNodeSetPopupCallback(MTNODE node, MTREE_POPUP_CB cb, void *ud);
851 
854 
855 /* Directory Browser */
856 
857 MOBJECT MCreateDirBrowser (MOBJECT parent, const char *dir,
858  MTFont font, int width, int height, CARD16 flags);
859 
860 void MDirBrowserSetDirectory (MOBJECT db, const char *dir, int notify);
861 const char *MDirBrowserGetDirectory (MOBJECT db);
863 
864 /* MGUIUTIL */
865 
866 int MMessageDialog(const char *t, const char *msg, const char *btn1, const char *btn2, ...);
867 int vMMessageDialog(const char *t, const char *msg, const char *btn1, const char *btn2, va_list vl);
868 int MInputPrompt(const char *t, const char *msg, char *text, int len, const char *ok_btn,
869  const char *canc_btn);
870 char *MTextPrompt(const char *t, const char *msg, const char *text, int w, int h, const char *ok,
871  const char *cancel);
872 int MFileSelection(const char *title, const char *filter, char *fname, char *dname,
873  int change_cur_dir);
874 int MFileBrowse(const char *title, const char *filter, char *fname, char *dname,
875  int change_cur_dir);
876 int MFileBrowseExt (const char *t, const char *ext, char *fname, char *dname,
877  FB_PREFS *prefs);
878 int MDirSelection(const char *title, const char *filter, char *dname,
879  int change_cur_dir);
880 int MDirBrowse(const char *title, const char *filter, char *dname,
881  int change_cur_dir);
882 int MDirBrowseExt (const char *t, const char *ext, char *dname, FB_PREFS *prefs);
883 
884 const char *MGetCurrentDirectory(void);
885 
886 void MSetInputPromptRGB(int r, int g, int b);
887 void MSetMessageDialogRGB(int r, int g, int b);
888 void MSetFileSelectionRGB(int r, int g, int b);
889 void MGetInputPromptRGB(int *pr, int *pg, int *pb);
890 void MGetMessageDialogRGB(int *pr, int *pg, int *pb);
891 void MGetFileSelectionRGB(int *pr, int *pg, int *pb);
893  const char *file_list, const char *dir_list,
894  const char *drive_list, const char *filter,
895  const char *filename, const char *curr_dir,
896  const char *ok_button, const char *close_button);
898  const char *write_protect,
899  const char *not_ready,
900  const char *unformatted,
901  const char *not_responding);
902 void MSetMessageDialogFgRGB(int r, int g, int b);
903 void MGetMessageDialogFgRGB(int *pr, int *pg, int *pb);
904 void MSetMessageDialogFonts(MTFont text_font, MTFont buttons_font);
905 void MGetMessageDialogFonts(MTFont *text_font, MTFont *buttons_font);
906 void MSetInputPromptFgRGB(int r, int g, int b);
907 void MGetInputPromptFgRGB(int *pr, int *pg, int *pb);
908 void MSetInputPromptFonts(MTFont text, MTFont edit, MTFont btn);
909 void MGetInputPromptFonts(MTFont *text_font, MTFont *edit_font, MTFont *buttons_font);
910 
911 
912 /* Timeout */
913 
914 TIMEOUT_ID MAddTimeout(CARD32 tmout, TIMEOUT_CB cb, void *ud);
915 void MRemoveTimeout(TIMEOUT_ID id);
916 void MCallAllTimeoutCallbacks(void);
917 void MRefreshTimeout(TIMEOUT_ID *pid, CARD32 msec, TIMEOUT_CB cb, void *ud);
918 void MClearTimeout(TIMEOUT_ID *pid);
920 
921 /* File values read/wr\\ite */
922 
923 void MWriteCARD8(FILE *fp, CARD8 val);
924 void MWriteCARD16(FILE *fp, CARD16 val);
925 void MWriteCARD32(FILE *fp, CARD32 val);
926 CARD8 MReadCARD8(FILE *fp);
927 CARD16 MReadCARD16(FILE *fp);
928 CARD32 MReadCARD32(FILE *fp);
929 
930 /* Socket facilities */
931 
932 void MAddSocketHandler(int s, unsigned events, SOCKET_CB cb, void *data);
933 void MRemoveSocketHandler(int s);
934 void MSocketSetEventsMask(int s, unsigned events);
935 unsigned int MSocketGetEventsMask(int s);
936 
937 /*
938  * Graphic printing currently works only under Windows
939  */
940 
941 #ifdef WIN_MGUI
942 
943 DOC_ID MOpenPrintDoc(char *doc_name, int open_dialog, int orientation, MPAGE_OPTIONS *pages);
944 void MClosePrintDoc(DOC_ID id);
945 void MPrintDocNextPage(DOC_ID id);
946 void MPrintObject(MOBJECT obj, DOC_ID id, MPRINT_OPTIONS *po);
947 void MPrintImage(MIMAGE mpm, int full);
948 int MPrintSetup(int orientation, int *xres, int *yres, int *pwidth, int *pheight, int *nplanes);
949 
950 #endif /* WIN_MGUI */
951 
952 #ifdef __cplusplus
953 }
954 #endif
955 
956 #endif
void MObjectSetColor(MOBJECT obj, MTColor bgc, MTColor fgc)
void MSTextSetString(MOBJECT p, const char *text)
MOBJECT MObjectGetHScrollBar(MOBJECT obj)
void MEditDisableEditing(MOBJECT edit)
MIMAGE MDrawnButtonChangeUnsensitiveOnImage(MOBJECT button, MIMAGE new_img)
MTNODE MTreeNodeGetParent(MTNODE node)
void MObjectEnableOptions(MOBJECT obj, const char *name, CARD32 mask)
void MQueryColor(MTColor col, int *pr, int *pg, int *pb)
const char * MDirBrowserGetDirectory(MOBJECT db)
void * MTreeNodeGetUserData(MTNODE node)
MOBJECT MCreateSplitter(MOBJECT sf)
void MMenuItemSetText(MENU_ITEM item, const char *text)
void MFormSetFocusWrap(MOBJECT f, int true_false)
void vTrace(const char *fmt, va_list vl)
int MObjectType(MOBJECT obj)
MOBJECT MCreatePosForm(MOBJECT parent)
MIMAGE MReadTIFFFile(const char *fname)
void MObjectSetBackgroundRGB(MOBJECT obj, int r, int g, int b)
void MEditSetReplace(MOBJECT edit)
int MEditGetFilter(MOBJECT p)
void MSetShadowOption(const char *obj_name, int shadow, int in_t, int out_t)
long MSListGetNItem(MOBJECT p)
MOBJECT MSListGetHScrollBar(MOBJECT p)
MOBJECT MCreateTButton(MOBJECT parent, const char *text, MTFont font)
MTCursor MCreateCursor(MIMAGE bits, int xs, int ys)
int MShouldRetryDueToDiskError(void)
void MPButtonSetHSpacing(MOBJECT p, int hs)
void MObjectSaveOptions(MOBJECT obj)
const char * MMenuGetTitleText(MOBJECT obj)
Definition: Dildef.h:277
void MDispatchObjEvent(MOBJECT p, MEvent *pe)
void MObjectSetBGImageMaskByCMapIndex(MOBJECT obj, int id)
void MRefreshTimeout(TIMEOUT_ID *pid, CARD32 msec, TIMEOUT_CB cb, void *ud)
void MEditSetAutoIndent(MOBJECT edit, int on_off)
int MObjectUsesFGColorFromParent(MOBJECT obj)
MOBJECT MSListGetVScrollBar(MOBJECT p)
long MScrollBarGetMax(MOBJECT p)
void MTableFormSetCellAlign(MOBJECT form, int x, int y, int h_al, int v_al)
int MGetIntOption(const char *obj_name, const char *opt_name, int *ret)
void MDirBrowserSetDirectory(MOBJECT db, const char *dir, int notify)
void MLabelSetHSpacing(MOBJECT p, int hs)
void MLogSetLevel(int level)
MOBJECT MCreatePixmapFromFile(MOBJECT parent, const char *fname)
int MSpoolFile(const char *fname)
static double ce
Definition: SOLPOS.C:118
void MImageSetMask(MIMAGE dst, MIMAGE mask)
void MImageMerge(MIMAGE dst, MIMAGE src, int xo, int yo, int transparent)
MTColor MAllocCell(int r, int g, int b)
void MObjectSetAutoScrollWhenSelected(MOBJECT obj, int TrueFalse)
int MGetNPlanes(void)
void MClear(MOBJECT o)
MOBJECT MCreateImageTButton(MOBJECT parent, const char *npf, const char *apf, const char *upf)
MTNODE MTreeCreateNode(MOBJECT tree, MTNODE parent, CARD16 type, CARD16 flags, const char *text)
void MObjectSetBackgroundColor(MOBJECT obj, MTColor bgc)
MOBJECT MTreeGetHScrollBar(MOBJECT p)
int MWriteBMPFile(MIMAGE img, const char *fname)
void MEditListSetEditText(MOBJECT p, int n, const char *buff)
void MSetInputPromptRGB(int r, int g, int b)
void MObjectSetSelectable(MOBJECT obj)
LIST_ACT * MSListGetElement(MOBJECT p, long n)
void MObjectSetPosition(MOBJECT obj, int x, int y)
void MLoopWhileEvents(int discard)
MOBJECT MOptionEditGetList(MOBJECT ce)
MIMAGE MReadPNGFile(const char *fname)
void MMenuBarSetAcc(MOBJECT menu, int acc)
int MObjectGetCompositeWidth(MOBJECT obj)
void MGetMessageDialogRGB(int *pr, int *pg, int *pb)
void MStatusBarSetMax(MOBJECT p, int max)
void(* MTREE_NODE_CB)(MTNODE node, void *ad)
Definition: Mguidefs.h:1469
void MDrawXorLine(MOBJECT p, int x1, int y1, int x2, int y2)
void MWriteCARD32(FILE *fp, CARD32 val)
void MObjectRemoveEventNotifyCallback(MOBJECT obj, OBJ_EVENT_CB cb, void *a_data)
void MObjectSetShadow(MOBJECT obj, int type, int in, int out)
MTColor MBlackColor(void)
LIST_ACT * MSListGetFirstUnselectedItem(MOBJECT p)
void MObjectSetBackgroundImage(MOBJECT obj, MIMAGE img, int mode)
void MSelectObject(MOBJECT f)
void MShellRealize(MOBJECT obj)
void(* SOCKET_CB)(int s, unsigned event, void *data)
Definition: Mguidefs.h:1413
void(* NEW_BLOCK_CB)(MOBJECT obj, SBL_NEW_BLOCK *nbs, void *ad)
Definition: Mguidefs.h:1460
MTNODE MTreeGetSelectedNode(MOBJECT tree)
MIMAGE MReadGIFFile(const char *fname)
void MSocketSetEventsMask(int s, unsigned events)
void MImageComputeBackgroundRGB(MIMAGE img, int *pr, int *pg, int *pb)
LIST_ACT * MSListGetNextUnselectedItem(MOBJECT p)
void MImageSetPixelIndex(MIMAGE pmi, int x, int y, int i)
MOBJECT MCreateEdit(MOBJECT parent, const char *text, int len, MTFont font)
void MLog(int level, const char *fmt,...)
void MObjectSetUnsensitive(MOBJECT obj)
void MEditSetTextExt(MOBJECT edit, const char *text, int validated, int notify)
void MBottomAttach(MOBJECT child, int att_type, int off, MOBJECT obj)
int MGetDiskError(int *disk, int *code)
void MEditListChangeElement(MOBJECT p, long n, char **new_ele, void *data)
void MDrawLine(MOBJECT p, int x1, int y1, int x2, int y2, MTColor col)
int MObjectGetX(MOBJECT obj)
const char * MLabelValue(MOBJECT label)
void MSetFontOption(const char *obj_name, MTFont font)
void MObjectGetShadow(MOBJECT obj, int *type, int *in, int *out)
int MGetFontOption(const char *obj_name, MTFont *ret)
void MDrawFilledBox(MOBJECT p, int x, int y, int w, int h, MTColor bgc)
void MLogSetMask(CARD32 a)
LIST_ACT * MSListGetFirstItem(MOBJECT p)
void MTButtonDeactivate(MOBJECT o)
int MTextWidth(const char *text, MTFont font)
void MLogSetTimeFormat(const char *strftime_format)
List Item Activation.
Definition: Mguidefs.h:1179
void MOptionEditSetListCallback(MOBJECT obj, LIST_ACT_CB cb, void *data)
int MDirSelection(const char *title, const char *filter, char *dname, int change_cur_dir)
void MPixmapSetImageFile(MOBJECT pixmap, const char *fname)
void MFormSetFocusHighlight(MOBJECT f, int true_false)
MIMAGE MCreateImageMaskByRGB(MIMAGE img, int r, int g, int b)
void MScrollBarSetIncr(MOBJECT p, int incr)
MIMAGE MDrawnButtonChangeNormalImage(MOBJECT button, MIMAGE new_img)
void MMenuBarSetHighLightFGColor(MOBJECT obj, MTColor fgc)
MOBJECT MTableFormGetCellObject(MOBJECT form, int x, int y)
void(* MENU_ITEM_CB)(MENU_ITEM item, MVALUE status, void *ad)
Definition: Mguidefs.h:1468
void MImageSetMaskByPixel(MIMAGE img, int x, int y)
int MObjectGetHeight(MOBJECT obj)
void MLogResetMaskBits(CARD32 a)
int MCharHeight(unsigned int car, MTFont font)
int(* MTREE_NODE_RENAME_CB)(MTNODE node, const char *, void *ad)
Definition: Mguidefs.h:1471
MOBJECT MCreateLabel(MOBJECT parent, const char *text, MTFont font)
MENU_ITEM MMenuAddItem(MOBJECT pd, const char *item, MENU_ITEM_CB cb, void *ad)
void MObjectSetX(MOBJECT obj, int x)
int MObjectGetCompositeHeight(MOBJECT obj)
void MTreeSetHighLightFGColor(MOBJECT obj, MTColor fgc)
void MSetMessageDialogFonts(MTFont text_font, MTFont buttons_font)
void MSBLSetHead(MOBJECT obj, const char *text)
void MReparentObject(MOBJECT parent, MOBJECT obj, MOBJECT where)
void MSListEnableItemMotion(MOBJECT p)
void MTreeSetSliderColor(MOBJECT p, MTColor color)
void MObjectSetResize(MOBJECT obj, int resize_w, int resize_h)
void MFormAddKeyCallback(MOBJECT shell, int key, OBJ_VALUE_CB cb, void *ad)
colors structure .
const char * MMenuItemGetText(MENU_ITEM item)
int MEditListAddItemFromEdits(MOBJECT p, void *u_data)
void MDrawFilledArc(MOBJECT p, int x, int y, int r, int a1, int a2, MTColor c)
LIST_ACT * MSListGetNextSelectedItem(MOBJECT p)
void MTableFormSetCellBackgroundRGB(MOBJECT form, int x, int y, int r, int g, int b)
MTColor MAllocShiftColor(MTColor col, int percentage)
void MButtonUnsetShadowOnMouseOver(MOBJECT obj)
int MSListDelElement(MOBJECT p, long n)
void MTButtonActivate(MOBJECT o)
Union for MGui events.
Definition: Mguidefs.h:828
void MSBLGetHead(MOBJECT obj, char *buff)
void MObjectSetMinSize(MOBJECT obj, int w, int h)
void(* EDIT_CURS_CB)(MOBJECT edit, EDIT_CURS *ev, void *ad)
Definition: Mguidefs.h:1463
void MTreeSetPopupCallback(MOBJECT tree, MTREE_POPUP_CB cb, void *ud)
void MTreeSelectNode(MTNODE node, int notify)
void MEditGetCursorXY(MOBJECT edit, int *px, int *py)
int MWriteTIFFFile(MIMAGE img, const char *name, int compression)
void MTableFormSetCellFont(MOBJECT form, int x, int y, MTFont f)
void MButtonChangeImageFiles(MOBJECT obj, const char *npf, const char *apf, const char *upf, const char *npfo, const char *apfo, const char *upfo)
void MSFileSetFile(MOBJECT obj, const char *fname)
MOBJECT MCreateDrawnPButtonExt(MOBJECT parent, MIMAGE pn, MIMAGE pa, MIMAGE pu, MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on)
void MMainLoop(void)
MOBJECT MCreatePagedRowFormExt(MOBJECT parent, int npage)
void MEditSetHotKeyCallback(MOBJECT edit, int key, MGUI_CB cb, void *data)
void MObjectSetBGImageMaskByPixel(MOBJECT obj, int x, int y)
void MSetInputPromptFonts(MTFont text, MTFont edit, MTFont btn)
void MObjectAlign(MOBJECT obj, int h_align, int v_align)
void MSetInputPromptFgRGB(int r, int g, int b)
void MSelectPreviousBrother(MOBJECT f)
MIMAGE MReadImageFile(const char *fname)
void MEditSetValueChangeCallback(MOBJECT edit, EDIT_CHANGE_CB cb, void *data)
void MEditSetClipWindow(MOBJECT edit, int clip_w, int clip_h)
void MStatusBarSetPos(MOBJECT p, int pos)
int MSelectLastChild(MOBJECT f)
void MPagedFormDisablePageKeys(MOBJECT form)
void * MENU_ITEM
Definition: Mguidefs.h:1418
MOBJECT MCreateSubMenu(MENU_ITEM item)
void MSListDeselectItem(MOBJECT p, const char *item)
Definition: Dildef.h:392
const char * MGetSysDir(void)
MOBJECT MCreateDrawnRButton(MOBJECT parent, MIMAGE np, MIMAGE ap, MIMAGE up)
MOBJECT MCreateClippedRowForm(MOBJECT parent, int clip_w, int clip_h)
void vMLog(int level, const char *fmt, va_list vl)
void MTreeNodeSetUserData(MTNODE node, void *ud)
void MPButtonSetMargin(MOBJECT p, int wm, int hm)
void MTableFormSetColAlign(MOBJECT form, int col, int al)
void(* MTREE_POPUP_CB)(MTNODE node, int mx, int my, void *ad)
Definition: Mguidefs.h:1470
void MEditListGetEditText(MOBJECT p, int n, char *buff)
LIST_ACT * MSListGetFirstSelectedItem(MOBJECT p)
MIMAGE MReadJPEGFile(const char *fname)
char * MGetBGImageOption(const char *obj_name, int *mode)
MOBJECT MCreateDrawnTextPButtonExt(MOBJECT parent, const char *text, MTFont font, MIMAGE pn, MIMAGE pa, MIMAGE pu, MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on)
void MSetTextOption(const char *obj_name, const char *text)
void MUnloadFont(MTFont font)
void MSetMessageDialogFgRGB(int r, int g, int b)
MOBJECT MCreateScrolledColForm(MOBJECT parent, int clip_w, int clip_h)
CARD16 MTreeNodeGetType(MTNODE node)
void MSListSelectElement(MOBJECT p, long n)
char * MObjectGetText(MOBJECT obj, char *text)
int(* STRCMP_CB)(const char *, const char *)
Definition: Mguidefs.h:1431
void MTableFormSetCellForegroundRGB(MOBJECT form, int x, int y, int r, int g, int b)
void MEditSetTabSize(MOBJECT edit, int size)
MTColor MObjectBackgroundColor(MOBJECT obj)
MOBJECT MScrolledEditGetVScrollBar(MOBJECT p)
int MSelectFirstChild(MOBJECT f)
char * MTreeNodeGetText(MTNODE node, char *text)
MOBJECT MCreateScrolledMLEdit(MOBJECT parent, const char *text, int width, int height, MTFont font)
MOBJECT MCreateClippedEdit(MOBJECT parent, const char *text, int len, int clip_len, MTFont font)
MOBJECT MCreateScrolledRowForm(MOBJECT parent, int clip_w, int clip_h)
MIMAGE MDrawnButtonChangeArmedImage(MOBJECT button, MIMAGE new_img)
MENU_ITEM MMenuAddRadioItem(MOBJECT pd, const char *item, MENU_ITEM_CB cb, void *ad)
void MObjectSetPopupHelp(MOBJECT obj, const char *str, int delay, int duration)
void MPagedFormSetNPages(MOBJECT form, int n_pages)
void MPagedFormSetActivePageCallback(MOBJECT p, OBJ_VALUE_CB cb, void *data)
int MFormGetClipX(MOBJECT obj)
void MSetMessageDialogRGB(int r, int g, int b)
void MDrawAreaSetResizeCallback(MOBJECT obj, DRAWAREA_PREF_CB cb, void *ad)
void MSetFGColorOption(const char *obj_name, int r, int g, int b)
int MCharWidth(unsigned int car, MTFont font)
MTFont MObjectGetFont(MOBJECT obj)
void MEraseArea(MOBJECT o, int x, int y, int w, int h)
MOBJECT MCreateOptionEdit(MOBJECT parent, const char *text, int len, int clip_len, int nrow, MTFont font)
void MShellUnrealize(MOBJECT obj)
void(* ITEM_SEEK_CB)(MOBJECT obj, SBL_ITEM_SEEK *iss, void *ad)
Definition: Mguidefs.h:1461
void MMenuSetHighLightFGColor(MOBJECT obj, MTColor fgc)
void(* DB_DIR_CHANGE_CB)(MOBJECT, const char *, void *)
Definition: Mguidefs.h:1473
MOBJECT MCreateSFile(MOBJECT parent, const char *fname, MTFont font, int nrow, int ncol)
void MObjectSetText(MOBJECT obj, const char *text)
void MButtonSetAccelerator(MOBJECT button, int key)
void MEditGetSubString(MOBJECT edit, int start, int end, char *str)
void(* OBJ_STRING_CB)(MOBJECT obj, char *str, void *ad)
Definition: Mguidefs.h:1457
void MButtonSetTextVsImageAlignment(MOBJECT button, CARD8 align)
void MTreeSetCloseCallback(MOBJECT tree, MTREE_NODE_CB cb, void *ud)
void MEnableCustomizing(void)
void * MObjectGetUserData(MOBJECT obj)
int MFormGetNChildren(MOBJECT form)
void MSBLHeadSetBackgroundImage(MOBJECT obj, MIMAGE img, int mode)
void MObjectSetForegroundColor(MOBJECT obj, MTColor fgc)
CARD32 MTColor
Definition: Mguidefs.h:183
MTColor MObjectForegroundColor(MOBJECT obj)
MOBJECT MCreateSListMultiSel(MOBJECT parent, MTFont font, int row_len, int nrow, int ncol)
void MSListSetCallback(MOBJECT obj, LIST_ACT_CB cb, void *data)
MOBJECT MCreateTree(MOBJECT parent, MTFont font, int width, int height, int n_types)
MOBJECT MCreateImageRButtonExt(MOBJECT parent, const char *npf, const char *apf, const char *upf, const char *non, const char *aon, const char *uon)
void MTButtonSetImage(MOBJECT obj, const char *npf, const char *apf, const char *upf)
void MTreeSetSliderColorShift(MOBJECT p, int percentage)
void MSetStringOption(const char *obj_name, const char *opt_name, const char *value)
void MEditSetNotValidatedColors(MOBJECT edit, MTColor bgc, MTColor fgc)
char * MObjectGetName(MOBJECT obj)
int MPaletteMode(void)
MENU_ITEM MMenuAddItemObsolete(MOBJECT pd, const char *item, MGUI_CB cb, void *ad)
void MDeleteObject(MOBJECT obj, int resize)
MOBJECT MCreateImageTextTButtonExt(MOBJECT parent, const char *text, MTFont font, const char *npf, const char *apf, const char *upf, const char *non, const char *aon, const char *uon)
int MTCursor
Definition: Mguidefs.h:180
MOBJECT MCreatePagedPosFormExt(MOBJECT parent, int npage)
void MObjectSetOffset(MOBJECT obj, int t_o, int b_o, int l_o, int r_o)
void MTreeSetLineColor(MOBJECT obj, MTColor col)
int MEditFindSubStringForward(MOBJECT edit, int off, const char *str, int icase)
void MSetTraceFileName(const char *filename)
int MObjectUsesBGColorFromBGImage(MOBJECT obj)
int MObjectGetWidth(MOBJECT obj)
void MRemoveTimeout(TIMEOUT_ID id)
int MSpoolTempFile(const char *fname)
void MEditSetValidatedColors(MOBJECT edit, MTColor bg_color, MTColor fg_color)
void MShellDestroy(MOBJECT obj)
int MRButtonGetActivationStatus(MOBJECT o)
MOBJECT MObjectShell(MOBJECT obj)
void MTreeEnableAutoSliderColor(MOBJECT obj)
MOBJECT MCreateScrolledFormattedText(MOBJECT par, const char *text, int clip_w, int clip_h, MTFont f)
void * MTNODE
Definition: Mguidefs.h:999
void MAddImagePath(const char *path)
MOBJECT menu
Definition: DOAS_FullProj.c:60
void MRemoveSocketHandler(int s)
MOBJECT MCreateTableForm(MOBJECT parent, int n_cols)
void MSBLDisableAutoSliderColor(MOBJECT obj)
void MEditEnableEditing(MOBJECT edit)
MIMAGE MDrawnButtonChangeNormalOnImage(MOBJECT button, MIMAGE new_img)
void MMenuSetTitleText(MOBJECT pd, const char *text)
MOBJECT MCreateDrawnTButton(MOBJECT parent, MIMAGE np, MIMAGE ap, MIMAGE up)
void MObjectMakeVisible(MOBJECT obj)
void MShellRealizeXYWH(MOBJECT obj, int x, int y, int w, int h)
void(* LIST_ACT_CB)(MOBJECT list, LIST_ACT *la, void *ad)
Definition: Mguidefs.h:1465
void MSListDeselectElement(MOBJECT p, long n)
int MObjectUsesBGColorFromParent(MOBJECT obj, int *pret)
void MGetMessageDialogFgRGB(int *pr, int *pg, int *pb)
void MImageGetInfo(MIMAGE pmi, int *pw, int *ph, int *pnplanes)
void MMenuBarSetHighLightColors(MOBJECT obj, MTColor bgc, MTColor fgc)
File Browser Preferences. Used by the Utility functions MFileBowserExt() and MDirBowserExt().
Definition: Mguidefs.h:1482
int MGetFGColorOption(const char *obj_name, int *pr, int *pg, int *pb)
MOBJECT MCreateImageTextPButton(MOBJECT parent, const char *text, MTFont font, const char *npf, const char *apf, const char *upf)
int MWriteJPEGFile(MIMAGE img, const char *name, int quality)
const char * MEditValue(MOBJECT edit)
void MFormSetClipY(MOBJECT obj, int clip_y)
void MSetDiskErrorTextStrings(const char *write_protect, const char *not_ready, const char *unformatted, const char *not_responding)
char * MGetStringOption(const char *obj_name, const char *opt_name)
unsigned int data[576]
Conversion data buffer 64 samples * 8 channels * 2 bytes.
void MTableFormSetNCol(MOBJECT form, int nc)
void MTButtonSetCallback(MOBJECT button, OBJ_VALUE_CB cb, void *data)
void MRButtonSetCallback(MOBJECT button, OBJ_VALUE_CB cb, void *data)
MOBJECT MCreatePButton(MOBJECT parent, const char *text, MTFont font)
void MTreeCloseNode(MTNODE node, int notify)
void MDrawShadowedNText(MOBJECT p, int x, int y, int w, int h, const char *text, MTFont font, int sh, MTColor fgc1, MTColor fgc2, int align, int n)
void MMaskedLog(int level, CARD32 mask, const char *fmt,...)
void MImageSetPixelAlpha(MIMAGE img, int x, int y, CARD8 alpha)
int vMMessageDialog(const char *t, const char *msg, const char *btn1, const char *btn2, va_list vl)
void MObjectSetBGImageMaskByRGB(MOBJECT obj, int r, int g, int b)
void MFormSetClipX(MOBJECT obj, int clip_x)
void MDrawBGNText(MOBJECT p, int x, int y, int w, int h, const char *text, MTFont font, MTColor bgc, MTColor fgc, int align, int n)
int MSListGetItemCheckStatus(MOBJECT p, const char *item)
MOBJECT MObjectGetVScrollBar(MOBJECT obj)
unsigned int MSocketGetEventsMask(int s)
MOBJECT MCreateClippedPosForm(MOBJECT parent, int clip_w, int clip_h)
void MGUITerm(void)
void MEditSetCursorPosCallback(MOBJECT edit, EDIT_CURS_CB cb, void *data)
void MTableFormDeleteDataRows(MOBJECT form)
int MTextHeight(const char *text, MTFont font)
const char * MGetNextFontFamily(void)
void MCallExpiredTimeoutCallbacks(void)
MOBJECT MCreateClippedHiddenEdit(MOBJECT parent, const char *text, int len, int clip_len, MTFont font, char shown_char)
int MFormGetClipY(MOBJECT obj)
void MObjectSetFGColorFromParent(MOBJECT obj, int true_false)
MOBJECT MCreateDrawnTextRButtonExt(MOBJECT parent, const char *text, MTFont font, MIMAGE pn, MIMAGE pa, MIMAGE pu, MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on)
static double cd
Definition: SOLPOS.C:116
void MSetBGColorOption(const char *obj_name, int r, int g, int b)
void MFormSetChildSelectCallback(MOBJECT p, OBJ_VALUE_CB cb, void *data)
Window MShellGetWindow(MOBJECT s)
void MTButtonSetActivationStatus(MOBJECT o, int status)
MTFont font
Definition: DAS_Spatram.h:3066
MOBJECT MCreateStatusBar(MOBJECT parent, const char *text, int max, MTFont font)
void MPopupMenu(MOBJECT pm, int x, int y)
void MEditHide(MOBJECT edit, char shown_char)
void MEditSetNewValueCallback(MOBJECT edit, OBJ_STRING_CB cb, void *data)
void MObjectSetWidth(MOBJECT obj, int w)
MTNODE MTreeNodeGetFirstChild(MTNODE node)
void MObjectRemoveDestroyCallback(MOBJECT obj, MGUI_CB cb, void *a_data)
void Trace(const char *fmt,...)
void MObjectSetCompositeHeight(MOBJECT obj, int h)
void MSListChangeElement(MOBJECT p, long n, const char *new_item, void *u_data)
void MSaveOptions(void)
void MMenuItemSetSelectCB(MOBJECT p, MGUI_CB cb, void *ad)
void MSBLSetHMargin(MOBJECT p, int hm)
void MTreeSetDestroyCallback(MOBJECT tree, MTREE_NODE_CB cb, void *ud)
void MSListClear(MOBJECT p)
void MWriteCARD16(FILE *fp, CARD16 val)
void MObjectSetBackgroundImageFile(MOBJECT obj, const char *fname, int mode)
MOBJECT MCreatePagedPosForm(MOBJECT parent, int npage)
void MSListSetHighLightColors(MOBJECT obj, MTColor bgc, MTColor fgc)
int MGetKeyboardState(void)
long MGetNColors(void)
MOBJECT MCreateScrollBar(MOBJECT parent, int type, long n, long max)
void MImageSetPixelRGB(MIMAGE pmi, int x, int y, int r, int g, int b)
MTColor MReAllocColor(MTColor color)
void vMMaskedLog(int level, CARD32 mask, const char *fmt, va_list vl)
void MShellConfigure(MOBJECT obj, int x, int y, int w, int h)
CARD8 MReadCARD8(FILE *fp)
int MSListAddElement(MOBJECT p, long n, const char *item, void *data)
void MTabbedFormGetTabText(MOBJECT form, int page, char *buff)
void MEditSetActCallback(MOBJECT edit, OBJ_STRING_CB cb, void *data)
void MTableFormDeleteRow(MOBJECT form, int row)
Definition: Dildef.h:655
void MTreeDisableAutoSliderColor(MOBJECT obj)
void MCallAllTimeoutCallbacks(void)
MOBJECT MCreateTabbedColForm(MOBJECT parent, int npage, MTFont f)
void MDrawText(MOBJECT p, int x, int y, int w, int h, const char *text, MTFont font, MTColor fgc, int align)
void MGetInputPromptFonts(MTFont *text_font, MTFont *edit_font, MTFont *buttons_font)
int MTFont
Definition: Mguidefs.h:175
void MTreeNodeSetPopupCallback(MTNODE node, MTREE_POPUP_CB cb, void *ud)
void MScrollBarSetPos(MOBJECT p, long pos)
void MTreeDestroyNode(MTNODE node, int notify)
MOBJECT MCreateSList(MOBJECT parent, MTFont font, int row_len, int nrow, int ncol)
void(* EDIT_CHANGE_CB)(MOBJECT edit, EDIT_CHANGE *ec, void *ad)
Definition: Mguidefs.h:1464
CARD32 MObjectGetEnabledOptions(MOBJECT obj)
void MImageAddAlphaChannel(MIMAGE img)
void MRButtonDeactivate(MOBJECT o)
void MBeep(void)
void MDrawBox(MOBJECT p, int x, int y, int w, int h, MTColor bgc)
MOBJECT MCreateImageTextTButton(MOBJECT parent, const char *text, MTFont font, const char *npf, const char *apf, const char *upf)
const char * MGetCurrentDirectory(void)
MOBJECT MScrolledFormGetHScrollBar(MOBJECT obj)
MOBJECT MCreateEditList(MOBJECT parent, MTFont font, EL_TEMPLATE *elt, int ne, int nrow, int ncol)
void MScrollBarSetMax(MOBJECT p, long max)
MOBJECT MCreateHiddenEdit(MOBJECT parent, const char *text, int len, MTFont font, char shown_char)
MIMAGE MCreateImageMaskByCMapIndex(MIMAGE img, int index)
int MMenuItemToggleCheckStatus(MENU_ITEM item)
MTFont MLoadFont(const char *family, int h, int bold, int italic)
void MScrollBarSetSliderColorShift(MOBJECT p, int percentage)
void delay(unsigned long d)
Pauses for a specified number of milliseconds. .
Definition: Dxl.c:1113
MTColor MAllocColor(int r, int g, int b)
void MLabelSetMargin(MOBJECT p, int wm, int hm)
Image description.
Definition: Mguidefs.h:436
void MShellGetTitle(MOBJECT obj, char *title)
void MEditSetValCallback(MOBJECT edit, EDIT_VAL_CB cb, void *data)
void(* OBJ_EVENT_CB)(MOBJECT obj, MEvent *e, void *ad)
Definition: Mguidefs.h:1456
long MScrollBarGetPos(MOBJECT p)
MOBJECT MGetSelectedObject(MOBJECT f)
void(* LIST_SEL_CB)(MOBJECT list, LIST_SEL *la, void *ad)
Definition: Mguidefs.h:1466
void MRButtonActivate(MOBJECT o)
MIMAGE MImageCloneShifted(MIMAGE img, int sx, int sy, int dw, int dh, int bg_rr, int bg_gg, int bg_bb, int transp)
void MMenuItemSetSensitive(MENU_ITEM item)
void MPButtonSetAlignment(MOBJECT p, int align)
void MDrawNText(MOBJECT p, int x, int y, int w, int h, const char *text, MTFont font, MTColor fgc, int align, int n)
void MButtonSetShadowOnMouseOver(MOBJECT obj, int thick)
void MFreeImage(MIMAGE data)
void MImageAddDefaultTypeGIF(void)
void MDrawBGText(MOBJECT p, int x, int y, int w, int h, const char *text, MTFont font, MTColor bgc, MTColor fgc, int align)
int bold
Definition: DAS_Spat_Conf.c:88
MOBJECT MCreateDrawnPButton(MOBJECT parent, MIMAGE pn, MIMAGE pa, MIMAGE pu)
MOBJECT MCreateDrawArea(MOBJECT parent, int width, int height)
void MGUIMain(int argc, char **argv)
MAIN PROGRAM starting point Actions: .
Definition: DAS_Spat.c:3546
void MPButtonSetRepeatDelay(MOBJECT button, int first, int repeat)
MOBJECT MCreateColForm(MOBJECT parent)
MOBJECT MCreateImageTextRButton(MOBJECT parent, const char *text, MTFont font, const char *npf, const char *apf, const char *upf)
MOBJECT MCreateScrolledPosForm(MOBJECT parent, int clip_w, int clip_h)
int MFileBrowseExt(const char *t, const char *ext, char *fname, char *dname, FB_PREFS *prefs)
void MTableFormSetColWidth(MOBJECT form, int col, int w)
void MScrolledEditSetSliderColor(MOBJECT p, MTColor color)
char * MGetTextOption(const char *obj_name)
void MObjectAddEventNotifyCallback(MOBJECT obj, OBJ_EVENT_CB cb, CARD32 event_mask, void *a_data)
MOBJECT MScrolledEditGetHScrollBar(MOBJECT p)
void MTreeNodeSetDeleteCallback(MTNODE node, MTREE_NODE_DELETE_CB cb, void *ud)
void MLeftAttach(MOBJECT child, int att_type, int off, MOBJECT obj)
void MTableFormHideGrid(MOBJECT form)
void MStatusBarSetSliderRGB(MOBJECT p, int r, int g, int b)
void MObjectRedraw(MOBJECT obj)
void MTraceSetTimeFormat(const char *strftime_format)
void MSListSetPickCallback(MOBJECT obj, LIST_ACT_CB cb, void *value)
void MButtonSetImageMaskByPixel(MOBJECT obj, int x, int y)
void(* EDIT_VAL_CB)(MOBJECT edit, EDIT_VAL *ev, void *ad)
Definition: Mguidefs.h:1462
void MTableFormSetColFont(MOBJECT form, int col, MTFont f)
void MEditChangeText(MOBJECT edit, int off, int len, const char *new_t, int chg_len)
void MObjectChangeLabelHelpText(MOBJECT obj, const char *str)
void MDrawAreaSetExposeCallback(MOBJECT obj, OBJ_EVENT_CB cb, void *ad)
MOBJECT MCreateDirBrowser(MOBJECT parent, const char *dir, MTFont font, int width, int height, CARD16 flags)
void MShellRealizeXY(MOBJECT obj, int x, int y)
void MSListSetSelectionCallback(MOBJECT obj, LIST_SEL_CB cb, void *data)
void MGetMessageDialogFonts(MTFont *text_font, MTFont *buttons_font)
void MObjectSetName(MOBJECT obj, const char *name)
void MTreeDestroyNodeContainee(MTNODE node, int notify)
void MClearTimeout(TIMEOUT_ID *pid)
void MTreeNodeSetImages(MTNODE node, MIMAGE norm, MIMAGE open, MIMAGE sel)
void MDrawBorder(MOBJECT o, int x, int y, int w, int h, MTColor col, int thick)
int MIsEditValidated(MOBJECT p)
void MDirBrowserSetDirChangeCallback(MOBJECT obj, DB_DIR_CHANGE_CB cb, void *ud)
void MTableFormSetColForegroundRGB(MOBJECT form, int col, int r, int g, int b)
void MFormattedTextSetMargin(MOBJECT obj, int w_m, int h_m)
void MScrolledFormSetSliderColor(MOBJECT p, MTColor color)
MOBJECT MCreateDrawnTextRButton(MOBJECT parent, const char *text, MTFont font, MIMAGE np, MIMAGE ap, MIMAGE up)
int MTextCharX(const char *text, MTFont font, int x)
void MFormDisableSmartDrawing(MOBJECT form)
MOBJECT MCreateSListSkip(MOBJECT parent, NEW_BLOCK_CB nb, void *nbd, ITEM_SEEK_CB is, void *isd, MTFont font, int nrow, int ncol, int xc)
void MDrawAreaSetInputCallback(MOBJECT obj, OBJ_EVENT_CB cb, void *ad)
void MTreeNodeEdit(MTNODE node)
MIMAGE MDrawnButtonChangeUnsensitiveImage(MOBJECT button, MIMAGE new_img)
int MDirBrowseExt(const char *t, const char *ext, char *dname, FB_PREFS *prefs)
MOBJECT MCreatePagedColForm(MOBJECT parent, int npage)
void MSListReset(MOBJECT p)
MOBJECT MCreateShell(const char *title, int flags)
void MEditSetValidationStatus(MOBJECT edit, int validated)
void MEraseBorder(MOBJECT o, int x, int y, int w, int h, int thick)
MTNODE MTreeGetFirstNode(MOBJECT tree)
void MImageAddDefaultTypePNG(void)
int MMessageDialog(const char *t, const char *msg, const char *btn1, const char *btn2,...)
void MLogSetMaskBits(CARD32 a)
int MEditGetCursorPos(MOBJECT edit)
MOBJECT MObjectParent(MOBJECT obj)
void MInstallImage(MIMAGE data)
void MMenuItemSetUnsensitive(MENU_ITEM item)
void MTableFormSetColBackgroundRGB(MOBJECT form, int col, int r, int g, int b)
void MObjectSetCursor(MOBJECT obj, MTCursor cursor)
MTColor MAllocDefaultBackgroundColor(void)
void MSetBGImageOption(const char *obj_name, const char *bgimage, int mode)
MIMAGE MObjectGetBackgroundImage(MOBJECT obj)
const char * MFindImagePath(const char *image_name)
MOBJECT MCreateDrawnRButtonExt(MOBJECT parent, MIMAGE pn, MIMAGE pa, MIMAGE pu, MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on)
void MEditSetBufferSize(MOBJECT edit, int clip_size, int size)
void MTreeSetDeleteCallback(MOBJECT tree, MTREE_NODE_DELETE_CB cb, void *ud)
int MObjectGetBackgroundImageMode(MOBJECT obj)
void MDrawArc(MOBJECT p, int x, int y, int r, int a1, int a2, MTColor col)
void MSListDisableMultiSel(MOBJECT obj)
MOBJECT MCreateRButton(MOBJECT parent, const char *text, MTFont font)
void MShellRaise(MOBJECT obj)
void MDrawXorBox(MOBJECT p, int x, int y, int w, int h)
void MRButtonSetImage(MOBJECT obj, const char *npf, const char *apf, const char *upf)
void MObjectSetAttachment(MOBJECT obj, int top, int bot, int left, int rig)
void MObjectUnmap(MOBJECT obj)
void MObjectSetTransparent(MOBJECT obj)
void MSetFileSelectionRGB(int r, int g, int b)
void MButtonSetImageMaskByRGB(MOBJECT obj, int r, int g, int b)
char * MTreeNodeGetPath(MTNODE node, char separator, char *buff)
int MSListDelItem(MOBJECT p, const char *item)
MOBJECT MCreateScrolledTableForm(MOBJECT parent, int n_cols, int clip_w, int clip_h, int head_rows, int head_cols)
MOBJECT MCreatePagedRowForm(MOBJECT parent, int npage)
void MAddSocketHandler(int s, unsigned events, SOCKET_CB cb, void *data)
MOBJECT MScrolledFormGetVScrollBar(MOBJECT obj)
CARD32 MLogGetMask(void)
int MTableFormGetNCol(MOBJECT form)
int MDirBrowse(const char *title, const char *filter, char *dname, int change_cur_dir)
void MButtonSetImageMaskByCMapIndex(MOBJECT obj, int id)
void MScrollBarSetSliderColor(MOBJECT p, MTColor color)
MOBJECT MFormGetFirstChild(MOBJECT form)
void MSListSetSortCallback(MOBJECT obj, STRCMP_CB cb)
void MTableFormShowGrid(MOBJECT form)
static double p
Definition: SOLPOS.C:131
void MEditListGetItemField(MOBJECT el, const char *item, int ii, char *buff)
void MRightAttach(MOBJECT child, int att_type, int off, MOBJECT obj)
void MObjectSetUserData(MOBJECT obj, void *ud)
void MGetFileSelectionRGB(int *pr, int *pg, int *pb)
void MSListSetSliderColorShift(MOBJECT p, int percentage)
MOBJECT MCreateImagePButton(MOBJECT parent, const char *npf, const char *apf, const char *upf)
void(* DRAWAREA_PREF_CB)(MOBJECT drawa, DRAWAREA_PREF *dp, void *ad)
Definition: Mguidefs.h:1467
void MDrawImage(MOBJECT p, MIMAGE gi, int pm_x, int pm_y, int w, int h, int x, int y)
void MTreeNodeSetSelectCallback(MTNODE node, MTREE_NODE_CB cb, void *ud)
void MInsertObject(MOBJECT parent, MOBJECT obj, MOBJECT where, int resize)
void MTabbedFormSetTabText(MOBJECT form, int page, const char *buff)
MOBJECT MCreateImageTextRButtonExt(MOBJECT parent, const char *text, MTFont font, const char *npf, const char *apf, const char *upf, const char *non, const char *aon, const char *uon)
void MEditUnhide(MOBJECT edit)
void MTableFormSetRowAlign(MOBJECT form, int row, int al)
void MStatusBarSetSliderColor(MOBJECT p, MTColor col)
int MFileBrowse(const char *title, const char *filter, char *fname, char *dname, int change_cur_dir)
void MPixmapSetImage(MOBJECT pixmap, MIMAGE gi)
void MObjectSetCompositeSize(MOBJECT obj, int w, int h)
void MTreeSetSelectCallback(MOBJECT tree, MTREE_NODE_CB cb, void *ud)
void(* OBJ_VALUE_CB)(MOBJECT obj, MVALUE value, void *ad)
Definition: Mguidefs.h:1458
int MObjectGetY(MOBJECT obj)
MOBJECT MCreateClippedMLEdit(MOBJECT parent, const char *text, int width, int height, MTFont font)
void MSListSetHighLightFGColor(MOBJECT obj, MTColor fgc)
void MEditSetFilter(MOBJECT edit, int filter, const char *extra_chars)
void MGetDefaultBackgroundRGB(int *pr, int *pg, int *pb)
void MTreeNodeSetCloseCallback(MTNODE node, MTREE_NODE_CB cb, void *ud)
MOBJECT MCreateDrawnTButtonExt(MOBJECT parent, MIMAGE pn, MIMAGE pa, MIMAGE pu, MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on)
void MLogInit(int level, int nr, int nvr, int nc, int nvc, const char *fname)
void MLabelSetAlignment(MOBJECT p, int align)
void MSListEnableMultiSel(MOBJECT obj)
int MFileSelection(const char *title, const char *filter, char *fname, char *dname, int change_cur_dir)
int MGetScreenWidth(void)
void MObjectAddDestroyCallback(MOBJECT obj, MGUI_CB cb, void *a_data)
void(* MGUI_CB)(MOBJECT obj, void *od, void *ad)
Definition: Mguidefs.h:1436
int(* MTREE_NODE_DELETE_CB)(MTNODE node, void *ad)
Definition: Mguidefs.h:1472
void MSListSelectItem(MOBJECT p, const char *item)
const char * MGetApplicationName(void)
void MScrollBarSetN(MOBJECT p, long n)
MOBJECT MCreateSpinEdit(MOBJECT parent, const char *text, int len, int clip_len, MTFont font, OBJ_VALUE_CB cb, void *cd)
int MPagedFormGetActivePage(MOBJECT form)
void MImageSetCMapEntry(MIMAGE pmi, int i, int r, int g, int b)
MOBJECT MCreateDrawnTextPButton(MOBJECT parent, const char *text, MTFont font, MIMAGE pn, MIMAGE pa, MIMAGE pu)
void MPagedFormSetActivePage(MOBJECT form, int page)
void MSpinEditSetCallback(MOBJECT spinedit, OBJ_VALUE_CB cb, void *data)
MOBJECT MCreatePagedColFormExt(MOBJECT parent, int npage)
MOBJECT MCreateSText(MOBJECT parent, const char *text, MTFont font, int nrow, int ncol)
void MScrolledFormDisableAutoSliderColor(MOBJECT obj)
void MImageSetMaskByRGB(MIMAGE img, int r, int g, int b)
int MGetShadowOption(const char *obj_name, int *shadow, int *i_t, int *o_t)
void MGetDefaultForegroundRGB(int *pr, int *pg, int *pb)
void MScrolledFormSetSliderColorShift(MOBJECT p, int percentage)
void MTreeNodeSetDestroyCallback(MTNODE node, MTREE_NODE_CB cb, void *ud)
void MFormSetSpacing(MOBJECT p, int offset)
void MEditSetCursorXY(MOBJECT edit, int x, int y)
void MPagedFormEnablePageKeys(MOBJECT form)
MTColor MWhiteColor(void)
void MScrolledFormSetIncr(MOBJECT obj, int h_inc, int v_inc)
void MPButtonSetCallback(MOBJECT button, MGUI_CB cb, void *data)
void MFormattedTextSetHSpacing(MOBJECT obj, int h_s)
void MSetDefaultBackgroundRGB(int r, int g, int b)
MTNODE MTreeNodeGetNext(MTNODE node)
void MClearDiskError(void)
void MObjectSetSize(MOBJECT obj, int w, int h)
void MSetDefaultForegroundRGB(int r, int g, int b)
void MFormEnableSmartDrawing(MOBJECT form)
MOBJECT MCreateImageTextPButtonExt(MOBJECT parent, const char *text, MTFont font, const char *npf, const char *apf, const char *upf, const char *non, const char *aon, const char *uon)
int MMenuItemSetCheckStatus(MENU_ITEM item, int TrueFalse)
void MObjectSetCompositeWidth(MOBJECT obj, int w)
void MEditListSeekItem(MOBJECT p, char **argv, long *pos, void **u_data)
int MEditFindSubStringBackward(MOBJECT edit, int off, const char *str, int icase)
void MSetFileSelectionTextStrings(const char *file_list, const char *dir_list, const char *drive_list, const char *filter, const char *filename, const char *curr_dir, const char *ok_button, const char *close_button)
CARD32 TIMEOUT_ID
Definition: Mguidefs.h:1421
MTColor MAllocHighlightBGColor(MTColor bgc, MTColor fgc)
void MDrawPolyline(MOBJECT p, MPOINT *points, int n, MTColor col)
MIMAGE MReadBMPFile(const char *fname)
void MDrawCircle(MOBJECT p, int x, int y, int r, MTColor col)
void MDrawShadowedText(MOBJECT p, int x, int y, int w, int h, const char *text, MTFont font, int sh, MTColor fgc1, MTColor fgc2, int align)
MOBJECT MCreateTabbedPosForm(MOBJECT parent, int npage, MTFont f)
void MEditGetSelection(MOBJECT edit, int *pstart, int *pend)
void MShellSetTitle(MOBJECT obj, const char *title)
void * MOBJECT
Definition: Mguidefs.h:192
ccd cc
Definition: DAS_Spat_Conf.c:32
LIST_ACT * MSListGetItem(MOBJECT p, const char *item)
void MEditListDelElement(MOBJECT p, long n)
int MGetBGColorOption(const char *obj_name, int *pr, int *pg, int *pb)
MIMAGE MDrawnButtonChangeArmedOnImage(MOBJECT button, MIMAGE new_img)
void MObjectRefreshTransparentImage(MOBJECT p, MIMAGE img, int ox, int oy)
void MObjectSetSensitivity(MOBJECT obj, int status)
void MTreeNodeSetOpenCallback(MTNODE node, MTREE_NODE_CB cb, void *ud)
MOBJECT MMenuItemGetMenu(MENU_ITEM item)
void MSListDisableItemMotion(MOBJECT obj)
void MObjectSetColorFromBackgroundImage(MOBJECT obj)
void MDrawShadow(MOBJECT o)
CARD16 MReadCARD16(FILE *fp)
MIMAGE MImageClone(MIMAGE img)
int MImageGetPixelAlpha(MIMAGE img, int x, int y)
int MSListAddItem(MOBJECT p, const char *item, void *data)
void MNextEvent(MEvent *pe, int wait)
MOBJECT MCreateDrawnTextTButton(MOBJECT parent, const char *text, MTFont font, MIMAGE np, MIMAGE ap, MIMAGE up)
void MObjectSetFont(MOBJECT obj, MTFont font, int resize)
void MFormFocusLink(MOBJECT obj1, MOBJECT obj2)
Template for EditList Object&#39;s creation.
Definition: Mguidefs.h:1227
int MEditListAddItem(MOBJECT p, char **argv, void *u_data)
void MTreeOpenNode(MTNODE node, int notify)
void MSListSetItemCheckStatus(MOBJECT p, const char *item, int status)
MOBJECT MCreateClippedColForm(MOBJECT parent, int clip_w, int clip_h)
int MTButtonGetActivationStatus(MOBJECT o)
int MObjectGetSensitivity(MOBJECT obj)
CARD32 MReadCARD32(FILE *fp)
void MImageSetMaskByCMapIndex(MIMAGE img, int id)
void MUninstallImage(MIMAGE data)
int MTextNWidth(const char *text, MTFont font, int len)
void MButtonSetOnMouseOverForegroundRGB(MOBJECT button, int r, int g, int b)
void MLoopWhileFlag(int *pflag, int value)
void MObjectMap(MOBJECT obj)
MOBJECT MCreateMenuBar(MOBJECT parent, MTFont font)
void MEditDisableAutoControlColor(MOBJECT edit)
void MImageAddDefaultTypeTIFF(void)
void MImageAddDefaultTypeJPEG(void)
MENU_ITEM MMenuAddToggleItem(MOBJECT pd, const char *item, MENU_ITEM_CB cb, void *ad)
void MSetIntOption(const char *obj_name, const char *rname, int val)
void MTableFormGetCellText(MOBJECT form, int x, int y, char *text)
void MEditSetCursorPos(MOBJECT edit, int pos)
void MEditSetMargin(MOBJECT edit, int w_margin, int h_margin)
void MFreeCell(MTColor c)
int MGetScreenHeight(void)
MOBJECT MCreateSTextClip(MOBJECT parent, NEW_BLOCK_CB nb, void *nbd, MTFont font, int nrow, int ncol, int xc, long xn)
void MObjectSetLabelHelp(MOBJECT obj, const char *str, MOBJECT label)
CARD8 MObjectGetTransparency(MOBJECT obj)
MENU_ITEM MMenuAddSeparator(MOBJECT pd)
void MTreeSetImagesByName(MOBJECT tree, int type, const char *norm, const char *open, const char *sel)
void MGetInputPromptRGB(int *pr, int *pg, int *pb)
void MTableFormSetCellText(MOBJECT form, int x, int y, const char *text)
int MInputPrompt(const char *t, const char *msg, char *text, int len, const char *ok_btn, const char *canc_btn)
void MFreeColor(MTColor col)
MIMAGE MAllocImage(int img_w, int img_h, int nplanes)
void MObjectSetTransparency(MOBJECT obj, CARD8 level)
void MObjectSetForegroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT MCreateImageRButton(MOBJECT parent, const char *npf, const char *apf, const char *upf)
void MSetCellColor(MTColor c, int r, int g, int b)
void MTreeSetRenameCallback(MOBJECT tree, MTREE_NODE_RENAME_CB cb, void *ud)
void MSelectPreviousCousin(MOBJECT p)
void MImageGetCMapEntry(MIMAGE pmi, int i, int *pr, int *pg, int *pb)
void MPButtonSetImage(MOBJECT obj, const char *npf, const char *apf, const char *upf)
void MImageGetPixelRGB(MIMAGE pmi, int x, int y, int *pr, int *pg, int *pb)
void MTreeSetOpenCallback(MOBJECT tree, MTREE_NODE_CB cb, void *ud)
void MShellSetWMCloseCallback(MOBJECT p, WM_CLOSE_CB cb, void *a_data)
static double top
Definition: SOLPOS.C:147
void MObjectSetSensitive(MOBJECT obj)
void MObjectChangePopupHelpText(MOBJECT obj, const char *str)
void MScrollBarSetValues(MOBJECT p, long max, long n, long pos)
void MMenuItemSetAccel(MENU_ITEM item, int acc, const char *at)
void MMenuSetHighLightColors(MOBJECT obj, MTColor bgc, MTColor fgc)
void MObjectDestroy(MOBJECT obj)
MOBJECT MCreatePixmapFromData(MOBJECT parent, MIMAGE data)
MOBJECT MCreateRowForm(MOBJECT parent)
MIMAGE MCreateImageMaskByPixel(MIMAGE img, int x, int y)
void MSelectNextBrother(MOBJECT f)
MOBJECT MCreateSListClip(MOBJECT parent, NEW_BLOCK_CB nb, void *nbd, ITEM_SEEK_CB is, void *isd, MTFont font, int nrow, int ncol, int xc, long xn)
void MTreeSetHighLightColors(MOBJECT obj, MTColor bgc, MTColor fgc)
LIST_ACT * MSListGetNextItem(MOBJECT p)
void MObjectSetSolid(MOBJECT obj)
TIMEOUT_ID MAddTimeout(CARD32 tmout, TIMEOUT_CB cb, void *ud)
int MMenuItemGetCheckStatus(MENU_ITEM item)
void MFormattedTextSetTabSize(MOBJECT obj, int ts)
void MDrawFilledCircle(MOBJECT p, int x, int y, int r, MTColor col)
void MDrawFilledPolyline(MOBJECT p, MPOINT *points, int n, MTColor col)
void MEnableCharBrowser(void)
MOBJECT MCreateImagePButtonExt(MOBJECT parent, const char *npf, const char *apf, const char *upf, const char *non, const char *aon, const char *uon)
MOBJECT MCreatePopupMenu(MTFont font)
void MEditEnableAutoControlColor(MOBJECT edit)
void MProcessEvent(MEvent *pe)
void MButtonUnsetOnMouseOverForeground(MOBJECT obj)
void MTopAttach(MOBJECT child, int att_type, int off, MOBJECT obj)
void MDestroyMenu(MOBJECT menu)
void MSListFreeze(MOBJECT obj)
MOBJECT MCreateTabbedRowForm(MOBJECT parent, int npage, MTFont f)
void MObjectSetY(MOBJECT obj, int y)
void MScrollBarSetPosCallback(MOBJECT p, OBJ_VALUE_CB cb, void *data)
void MSelectNextCousin(MOBJECT p)
void MDrawSubShadow(MOBJECT o, int x, int y, int w, int h, MTColor tsc, MTColor bsc, int thick)
void MGetInputPromptFgRGB(int *pr, int *pg, int *pb)
long MScrollBarGetN(MOBJECT p)
void MScrolledEditSetSliderColorShift(MOBJECT p, int percentage)
const char * MGetFirstFontFamily(void)
MOBJECT MTreeNodeGetMTree(MTNODE node)
MOBJECT MCreateFormattedText(MOBJECT par, const char *text, int clip_w, MTFont f)
void MObjectSetUnselectable(MOBJECT obj)
void MWriteCARD8(FILE *fp, CARD8 val)
void(* WM_CLOSE_CB)(MOBJECT obj, void *odata, void *cdata)
Definition: Mguidefs.h:1459
MOBJECT MCreateMenu(MOBJECT menu, const char *text)
MOBJECT MCreateDrawnTextTButtonExt(MOBJECT parent, const char *text, MTFont font, MIMAGE pn, MIMAGE pa, MIMAGE pu, MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on)
void MTableFormSetRowHeight(MOBJECT form, int row, int h)
void MRemoveImagePath(const char *path)
int MImageGetPixelIndex(MIMAGE pmi, int x, int y)
void MObjectSetBGColorFromParent(MOBJECT obj, int true_false, int percentage)
char * MTextPrompt(const char *t, const char *msg, const char *text, int w, int h, const char *ok, const char *cancel)
void MTreeSetImagesByData(MOBJECT tree, int type, MIMAGE norm, MIMAGE open, MIMAGE sel)
void MDrawPoint(MOBJECT p, int x, int y, MTColor col)
void MObjectSetHeight(MOBJECT obj, int h)
void MDrawWindow(MOBJECT o)
void MSListChangeItem(MOBJECT p, const char *old, const char *new_item, void *u_data)
void(* TIMEOUT_CB)(TIMEOUT_ID id, void *data)
Definition: Mguidefs.h:1430
void MTreeNodeSetText(MTNODE node, const char *text)
void MErase(MOBJECT o)
void MSListSetSliderColor(MOBJECT p, MTColor color)
void MButtonSetOnMouseOverForegroundColor(MOBJECT button, MTColor cc)
void MSBLEnableAutoSliderColor(MOBJECT obj)
MOBJECT MCreateImageTButtonExt(MOBJECT parent, const char *npf, const char *apf, const char *upf, const char *non, const char *aon, const char *uon)
void MScrolledFormEnableAutoSliderColor(MOBJECT obj)
MIMAGE MPixmapGetImage(MOBJECT pixmap)
Point structure.
Definition: Mguidefs.h:144
void MEditSetSelection(MOBJECT edit, int start, int end)
int italic
Definition: DAS_Spat_Conf.c:89
void MTreeNodeSetRenameCallback(MTNODE node, MTREE_NODE_RENAME_CB cb, void *ud)
void MObjectResize(MOBJECT obj, int w, int h)
void MSListThaw(MOBJECT obj)
void MSBLHeadSetColor(MOBJECT obj, MTColor bgc, MTColor fgc)
MOBJECT MFormGetNextChild(MOBJECT form)
LIST_ACT * MSListGetSelected(MOBJECT p)
void MFormSetPrefAtt(MOBJECT p, int pref_att)
MOBJECT MTreeGetVScrollBar(MOBJECT p)
______________________________________________________________________________________
Generated on Mon Sep 18 2017 11:44:09 for DAS - Rel. 3.1.6 - 18/09/2017.