Main Page   Modules   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

mgui.h File Reference

Go to the source code of this file.

Functions

void MGUIMain (int argc, char **argv)
 The program's starting point.

void MGUITerm (void)
 Prepares the program for temination, freeing allocated resources.

void MMainLoop (void)
 Transfers control to the main MGUI event loop handler.

void MLoopWhileFlag (int *pflag, int value)
 Transfers control temporarily to a MGUI event loop handler.

void MLoopWhileEvents (int discard)
 Processes all pending events and then returns.

void MNextEvent (MEvent *pe, int wait)
 Retrieves next available MGUI event waiting for it if desired.

void MProcessEvent (MEvent *pe)
 Processes a MGUI event retrieved by MNextEvent().

int MGetKeyboardState (void)
 Returns the status of the keyboard modifier keys (Alt, Control, Shift).

void MBeep (void)
 This function emits a beep sound using the system specific's default sound.

const char * MGetSysDir (void)
 Returns a pointer to the MGUISYS directory.

const char * MGetApplicationName (void)
void MEnableCharBrowser (void)
 This function enables the running application to open the Character Browser dialog via <Ctrl+Shift+F10> for special input in Edit objects.

int MPaletteMode (void)
 This function returns True if the calling program runs in 16 or 256 colors video mode.

int MGetScreenWidth (void)
 Returns the screen width in pixel units.

int MGetScreenHeight (void)
 Returns the screen height in pixel units.

int MGetNPlanes (void)
 Returns the number of color planes in the display.

long MGetNColors (void)
 Returns the number of colors in the display.

int MTextCharX (const char *text, MTFont font, int x)
 Returns the x position (in pixels) of the character at a given position in a string array.

int MTextHeight (const char *text, MTFont font)
 Returns the height of the string 'text' using the font 'font'.

int MCharHeight (unsigned int ch, MTFont font)
 Returns the height of the character 'ch' using the font 'font'.

int MTextWidth (const char *text, MTFont font)
 Returns the width of the null terminated string 'text' using the font 'font'.

int MTextNWidth (const char *text, MTFont font, int len)
 Returns the width of the first 'n' characters in the string 'text' using the font 'font'.

int MCharWidth (unsigned int ch, MTFont font)
 Returns the width of the character 'ch' using the font 'font'.

int MMessageDialog (const char *title, const char *msg, const char *btn1, const char *btn2,...)
 Displays a modal message window.

int MInputPrompt (const char *title, const char *msg, char *text, int len, const char *ok_btn, const char *canc_btn)
 Displays a modal prompt window for a single line text input.

char * MTextPrompt (const char *title, const char *msg, const char *text, int w, int h, const char *ok_btn, const char *canc_btn)
 Displays a modal prompt window for a multi line text input.

int MFileSelection (const char *title, const char *filter, char *fname, char *dname, int change_cur_dir)
 Displays a modal prompt window for a file name selection.

int MFileBrowse (const char *title, const char *filter, char *fname, char *dname, int change_cur_dir)
 Displays a modal prompt window for a file name selection.

const char * MGetCurrentDirectory (void)
 Returns the program's current directory.

void MSetInputPromptRGB (int r, int g, int b)
 Sets the R-G-B components of the background color of the InputPrompt dialog.

void MSetMessageDialogRGB (int r, int g, int b)
 Sets the R-G-B components of the background color of the Message dialog.

void MSetFileSelectionRGB (int r, int g, int b)
 Sets the R-G-B components of the background color of the FileSelection dialog.

void MSetInputPromptFgRGB (int r, int g, int b)
 Sets the R-G-B components of the foreground color of the InputPrompt dialog.

void MSetMessageDialogFgRGB (int r, int g, int b)
 Sets the R-G-B components of the foreground color of the Message dialog.

void MSetInputPromptFonts (MTFont text_font, MTFont edit_font, MTFont buttons_font)
 Sets the font for the message text, edit field and buttons in the InputPrompt and TextPrompt dialogs.

void MSetMessageDialogFonts (MTFont text_font, MTFont buttons_font)
 Sets the message text and buttons' fonts in the Message dialog.

void MGetInputPromptRGB (int *pr, int *pg, int *pb)
 Retrieves the R-G-B components of the background color used in the InputPrompt dialog.

void MGetMessageDialogRGB (int *pr, int *pg, int *pb)
 Retrieves the R-G-B components of the background color used in the Message dialog.

void MGetFileSelectionRGB (int *pr, int *pg, int *pb)
 Retrieves the R-G-B components of the background color used in the FileSelection dialog.

void MGetMessageDialogFgRGB (int *pr, int *pg, int *pb)
 Retrieves the R-G-B components of the foreground color used in the Message dialog.

void MGetInputPromptFgRGB (int *pr, int *pg, int *pb)
 Retrieves the R-G-B components of the foreground color used in the InputPrompt dialog.

void MGetMessageDialogFonts (MTFont *text_font, MTFont *buttons_font)
 Retrieves the fonts used in the Message dialog for message text and buttons.

void MGetInputPromptFonts (MTFont *text_font, MTFont *edit_font, MTFont *buttons_font)
 Retrieves the fonts used in the InputPrompt and TextPrompt dialogs for message text, edit and buttons.

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)
 Changes the text displayed in the labels and buttons in the FileSelection dialog.

int MSpoolFile (const char *fname)
 Prints an ascii text file in the system printer.

int MSpoolTempFile (const char *fname)
 Prints a temporary ascii text file in the system printer.

void MWriteCARD8 (FILE *fp, CARD8 val)
void MWriteCARD16 (FILE *fp, CARD16 val)
void MWriteCARD32 (FILE *fp, CARD32 val)
CARD8 MReadCARD8 (FILE *fp)
CARD16 MReadCARD16 (FILE *fp)
CARD32 MReadCARD32 (FILE *fp)
void MEnableCustomizing (void)
char * MGetStringOption (const char *obj_name, const char *opt_name)
char * MGetTextOption (const char *obj_name)
int MGetIntOption (const char *obj_name, const char *opt_name, int *ret)
int MGetFontOption (const char *obj_name, MTFont *ret)
int MGetBGColorOption (const char *obj_name, int *pr, int *pg, int *pb)
int MGetFGColorOption (const char *obj_name, int *pr, int *pg, int *pb)
int MGetShadowOption (const char *obj_name, int *shadow, int *i_t, int *o_t)
void MSetStringOption (const char *obj_name, const char *opt_name, const char *text)
void MSetTextOption (const char *obj_name, const char *text)
void MSetIntOption (const char *obj_name, const char *opt_name, int val)
void MSetFontOption (const char *obj_name, MTFont font)
void MSetBGColorOption (const char *obj_name, int r, int g, int b)
void MSetFGColorOption (const char *obj_name, int r, int g, int b)
void MSetShadowOption (const char *obj_name, int shadow, int in_t, int out_t)
void MSaveOptions (void)
void MLogInit (int level, int nr, int nvr, int nc, int nvc, const char *fname)
 Sets the log level, log window geometry and log filename.

void MLog (int level, const char *fmt,...)
 Prints a formatted log string in the log window (and the log file if enabled).

void MMaskedLog (int level, CARD32 mask, const char *fmt,...)
 Prints a formatted log string in the log window using the context mask.

void MLogSetLevel (int level)
 Sets the current log-level.

void MLogSetMask (CARD32 mask)
 Sets the current log mask.

CARD32 MLogGetMask (void)
 Retrieves the current log mask containing enabled log contexts.

void MLogSetMaskBits (CARD32 mask)
 Adds bits to the current log mask enabling more log contexts.

void MLogResetMaskBits (CARD32 mask)
 Clears bits in the current log mask disabling some log contexts.

void Trace (const char *fmt,...)
 Prints a low level tracing message to the trace file.

void MSetTraceFileName (const char *fname)
void MLogSetTimeFormat (const char *strftime_format)
 Enables/disables automatic timestamps in log outputs.

void MTraceSetTimeFormat (const char *strftime_format)
 Enables/disables automatic timestamps in trace outputs.

void MGetDefaultBackgroundRGB (int *pr, int *pg, int *pb)
 Retrieves the R-G-B components of the default background color.

void MSetDefaultBackgroundRGB (int r, int g, int b)
 Sets the R-G-B components of the default background color.

void MGetDefaultForegroundRGB (int *pr, int *pg, int *pb)
 Retrieves the R-G-B components of the default foreground color.

void MSetDefaultForegroundRGB (int r, int g, int b)
 Sets the R-G-B components of the default foreground color.

MTColor MAllocDefaultBackgroundColor (void)
 Allocates a shared color having the R-G-B components of the default background color.

MTColor MAllocColor (int r, int g, int b)
 Allocates a shared color with the R-G-B components specified in parameters (r,g,b).

MTColor MAllocShiftColor (MTColor col, int percentage)
 Allocates a shared color as a shade of the color 'col'.

void MFreeColor (MTColor col)
 frees a shared color

MTColor MAllocCell (int r, int g, int b)
 creates a read-write color with the R-G-B components specified in parameters (r,g,b)

void MSetCellColor (MTColor c, int r, int g, int b)
 changes the R-G-B components of the color cell using the parameters (r,g,b)

void MFreeCell (MTColor c)
 frees a read-write color

void MQueryColor (MTColor col, int *pr, int *pg, int *pb)
 returns the color's R-G-B components.

MTColor MBlackColor (void)
 Returns the color id of the black color.

MTColor MWhiteColor (void)
 Returns the color id of the white color.

MTColor MReAllocColor (MTColor color)
 Allocates an already allocated color telling the library the usage counter associated to the color should be increased.

MTColor MAllocHighlightBGColor (MTColor bgc, MTColor fgc)
 Computes a suitable highlight background color.

MTCursor MCreateCursor (MIMAGE bits, int xs, int ys)
MTFont MLoadFont (const char *family, int h, int bold, int italic)
 Loads a font by desired family, height with specified bold and Italic features and returns the new font id.

void MUnloadFont (MTFont font)
 Removes a no longer used font.

const char * MGetFirstFontFamily (void)
 Returns the first font family availbale in the system.

const char * MGetNextFontFamily (void)
 Returns next font family.

MIMAGE MAllocImage (int imgw, int imgh, int np)
 Creates an empty MIMAGE object.

MIMAGE MReadImageFile (const char *fname)
 Creates a MIMAGE object from an image file.

MIMAGE MReadPNGFile (const char *fname)
 Creates a MIMAGE object from a PNG file.

MIMAGE MReadBMPFile (const char *fname)
 Creates a MIMAGE object from a Windows BMP file.

MIMAGE MReadTIFFFile (const char *fname)
 Creates a MIMAGE object from a TIFF file.

MIMAGE MReadJPEGFile (const char *fname)
 Creates a MIMAGE object from a JPEG file.

MIMAGE MReadGIFFile (const char *fname)
 Creates a MIMAGE object from a GIF file.

MIMAGE MImageClone (MIMAGE img)
 Creates a new image by cloning the one received as parameter.

void MImageAddDefaultTypeGIF (void)
 Adds GIF format to the list of image types supported by default image loading function MReadImage().

void MImageAddDefaultTypeTIFF (void)
 Adds TIFF format to the list of image types supported by default image loading function MReadImage().

void MImageAddDefaultTypeJPEG (void)
 Adds JPEG format to the list of image types supported by default image loading function MReadImage().

void MImageAddDefaultTypePNG (void)
 Adds PNG format to the list of image types supported by default image loading function MReadImage().

void MAddImagePath (const char *path)
 Adds a path to the image search path list.

void MRemoveImagePath (const char *path)
 Removes a previously added image search path.

void MImageAddAlphaChannel (MIMAGE_DESCR *img)
 Adds the alpha channel to an image structure.

int MImageGetPixelAlpha (MIMAGE img, int x, int y)
 Gets the alpha value associated to pixel x,y in the image.

void MImageSetPixelAlpha (MIMAGE img, int x, int y, CARD8 alpha)
 Sets the alpha value associated to pixel x,y in the image.

MIMAGE MCreateImageMaskByCMapIndex (MIMAGE img, int index)
 Creates a MIMAGE object suitable for use as a Mask for the image object 'img'.

MIMAGE MCreateImageMaskByPixel (MIMAGE img, int x, int y)
 Creates a mask for image 'img' by pixel position.

MIMAGE MCreateImageMaskByRGB (MIMAGE img, int r, int g, int b)
 Creates a MIMAGE object suitable for use as a Mask for the image object 'img'.

int MWriteTIFFFile (MIMAGE img, const char *name, int compression)
 Dumps an image to a TIFF file.

int MWriteBMPFile (MIMAGE img, const char *fname)
 Dumps an image to a BMP file.

int MWriteJPEGFile (MIMAGE img, const char *name, int quality)
 Dumps an image to a JPEG file.

void MFreeImage (MIMAGE img)
 Frees all resources used by the image, making image 'img' no longer useable.

void MInstallImage (MIMAGE img)
 Prepares the image object for drawing.

void MUninstallImage (MIMAGE img)
 Frees image resources.

void MImageGetInfo (MIMAGE img, int *pw, int *ph, int *pnplanes)
 Returns basic image information: width, height and nr of planes.

void MImageGetPixelRGB (MIMAGE img, int x, int y, int *pr, int *pg, int *pb)
 Returns the R-G-B values of an image pixel.

void MImageSetPixelRGB (MIMAGE img, int x, int y, int r, int g, int b)
 Sets the R-G-B values of an image pixel.

int MImageGetPixelIndex (MIMAGE img, int x, int y)
 Returns the colormap index value of an image pixel.

void MImageSetPixelIndex (MIMAGE img, int x, int y, int i)
 Sets the colormap index value of an image pixel.

void MImageGetCMapEntry (MIMAGE img, int i, int *pr, int *pg, int *pb)
 Returns the R-G-B values of a colormap entry in the image.

void MImageSetCMapEntry (MIMAGE img, int i, int r, int g, int b)
 Sets the R-G-B values of an entry in the image colormap.

void MImageSetMask (MIMAGE dst, MIMAGE mask)
 Enables masked drawing for the 'dst' image.

void MImageMerge (MIMAGE dst, MIMAGE src, int xo, int yo, int transparent)
 Copies the image 'src' over 'dst' starting at offset 'xo','yo'.

void MImageComputeBackgroundRGB (MIMAGE img, int *pr, int *pg, int *pb)
void MImageSetMaskByCMapIndex (MIMAGE img, int id)
void MImageSetMaskByPixel (MIMAGE img, int x, int y)
void MImageSetMaskByRGB (MIMAGE img, int r, int g, int b)
void MDrawText (MOBJECT p, int x, int y, int w, int h, const char *text, MTFont font, MTColor fgc, 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 MDrawBGText (MOBJECT p, int x, int y, int w, int h, const char *text, MTFont font, MTColor bgc, MTColor fgc, int align)
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)
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)
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 MDrawPoint (MOBJECT p, int x, int y, MTColor col)
void MDrawLine (MOBJECT p, int x1, int y1, int x2, int y2, MTColor col)
void MDrawPolyline (MOBJECT p, MPOINT *points, int n, MTColor col)
void MDrawFilledPolyline (MOBJECT p, MPOINT *points, int n, MTColor col)
void MDrawBox (MOBJECT p, int x, int y, int w, int h, MTColor bgc)
void MDrawFilledBox (MOBJECT p, int x, int y, int w, int h, MTColor bgc)
void MDrawCircle (MOBJECT p, int x, int y, int r, MTColor col)
void MDrawFilledCircle (MOBJECT p, int x, int y, int r, MTColor col)
void MDrawArc (MOBJECT p, int x, int y, int r, int a1, int a2, MTColor col)
void MDrawFilledArc (MOBJECT p, int x, int y, int r, int a1, int a2, MTColor c)
void MDrawImage (MOBJECT p, MIMAGE gi, int pm_x, int pm_y, int w, int h, int x, int y)
void MDrawWindow (MOBJECT o)
void MDrawShadow (MOBJECT o)
void MDrawSubShadow (MOBJECT o, int x, int y, int w, int h, MTColor tsc, MTColor bsc, int thick)
void MDrawBorder (MOBJECT o, int x, int y, int w, int h, MTColor col, int thick)
void MDrawXorLine (MOBJECT p, int x1, int y1, int x2, int y2)
void MDrawXorBox (MOBJECT p, int x, int y, int w, int h)
char * MObjectGetText (MOBJECT obj, char *text)
void MObjectSetText (MOBJECT obj, const char *text)
char * MObjectGetName (MOBJECT obj)
void MObjectSetName (MOBJECT obj, const char *name)
void * MObjectGetUserData (MOBJECT obj)
void MObjectSetUserData (MOBJECT obj, void *ud)
int MObjectType (MOBJECT obj)
MOBJECT MObjectParent (MOBJECT obj)
void MObjectEnableOptions (MOBJECT obj, const char *name, CARD32 mask)
void MObjectSaveOptions (MOBJECT obj)
CARD32 MObjectGetEnabledOptions (MOBJECT obj)
void MObjectSetPopupHelp (MOBJECT obj, const char *str, int delay, int duration)
void MObjectSetLabelHelp (MOBJECT obj, const char *str, MOBJECT label)
void MObjectChangePopupHelpText (MOBJECT obj, const char *str)
void MObjectChangeLabelHelpText (MOBJECT obj, const char *str)
MOBJECT MObjectGetVScrollBar (MOBJECT obj)
 Retrieve the vertical scrollbar object of the object itself or its nearest ScrolledForm parent.

MOBJECT MObjectGetHScrollBar (MOBJECT obj)
 Retrieve the horizontal scrollbar object of the object itself or its nearest ScrolledForm parent.

void MObjectSetColor (MOBJECT obj, MTColor bgc, MTColor fgc)
 Sets the desired object foreground and background colors.

MTColor MObjectBackgroundColor (MOBJECT obj)
 Returns the desired object background color.

MTColor MObjectForegroundColor (MOBJECT obj)
 Returns the object's foreground color.

void MObjectSetBackgroundRGB (MOBJECT obj, int r, int g, int b)
void MObjectSetForegroundRGB (MOBJECT obj, int r, int g, int b)
void MObjectSetBackgroundColor (MOBJECT obj, MTColor bgc)
 Sets the desired object background colors.

void MObjectSetForegroundColor (MOBJECT obj, MTColor fgc)
 Sets the desired object foreground color.

void MObjectSetBGColorFromParent (MOBJECT obj, int true_false, int percentage)
 Enables/disables getting the object background color from the parent object.

void MObjectSetFGColorFromParent (MOBJECT obj, int true_false)
 Enables/disables getting the object foreground color from the parent object.

MTFont MObjectGetFont (MOBJECT obj)
void MObjectSetFont (MOBJECT obj, MTFont font, int resize)
void MObjectGetShadow (MOBJECT obj, int *type, int *in, int *out)
void MObjectSetShadow (MOBJECT obj, int type, int in, int out)
void MObjectSetTransparency (MOBJECT obj, CARD8 level)
CARD8 MObjectGetTransparency (MOBJECT obj)
void MObjectSetSolid (MOBJECT obj)
void MObjectSetTransparent (MOBJECT obj)
void MObjectSetBackgroundImage (MOBJECT obj, MIMAGE img, int mode)
void MObjectSetBackgroundImageFile (MOBJECT obj, const char *fname, int mode)
MIMAGE MObjectGetBackgroundImage (MOBJECT obj)
void MObjectSetColorFromBackgroundImage (MOBJECT obj)
void MObjectSetBGImageMaskByCMapIndex (MOBJECT obj, int id)
void MObjectSetBGImageMaskByPixel (MOBJECT obj, int x, int y)
void MObjectSetBGImageMaskByRGB (MOBJECT obj, int r, int g, int b)
int MObjectUsesFGColorFromParent (MOBJECT obj)
int MObjectUsesBGColorFromParent (MOBJECT obj, int *percentage_ret)
int MObjectGetWidth (MOBJECT obj)
int MObjectGetHeight (MOBJECT obj)
int MObjectGetCompositeWidth (MOBJECT obj)
int MObjectGetCompositeHeight (MOBJECT obj)
int MObjectGetX (MOBJECT obj)
int MObjectGetY (MOBJECT obj)
void MObjectSetSize (MOBJECT obj, int w, int h)
void MObjectSetMinSize (MOBJECT obj, int w, int h)
 Sets the object's minimum size.

void MObjectSetWidth (MOBJECT obj, int w)
void MObjectSetHeight (MOBJECT obj, int h)
void MObjectSetCompositeSize (MOBJECT obj, int w, int h)
void MObjectSetCompositeWidth (MOBJECT obj, int w)
void MObjectSetCompositeHeight (MOBJECT obj, int h)
void MObjectSetPosition (MOBJECT obj, int x, int y)
void MObjectSetX (MOBJECT obj, int x)
void MObjectSetY (MOBJECT obj, int y)
void MObjectSetAttachment (MOBJECT obj, int top, int bot, int left, int rig)
void MObjectSetOffset (MOBJECT obj, int t_o, int b_o, int l_o, int r_o)
void MObjectAlign (MOBJECT obj, int h_align, int v_align)
void MObjectSetUnsensitive (MOBJECT obj)
void MObjectSetSensitive (MOBJECT obj)
void MObjectSetSensitivity (MOBJECT obj, int status)
int MObjectGetSensitivity (MOBJECT obj)
void MObjectSetUnselectable (MOBJECT obj)
void MObjectSetSelectable (MOBJECT obj)
void MObjectSetResize (MOBJECT obj, int resize_w, int resize_h)
void MObjectSetCursor (MOBJECT obj, MTCursor cursor)
void MObjectSetAutoScrollWhenSelected (MOBJECT obj, int TrueFalse)
 Automatic scrolling when selected.

void MObjectRedraw (MOBJECT obj)
void MObjectMap (MOBJECT obj)
void MObjectUnmap (MOBJECT obj)
void MObjectResize (MOBJECT obj, int w, int h)
void MObjectDestroy (MOBJECT obj)
void MDispatchObjEvent (MOBJECT p, MEvent *pe)
void MObjectAddEventNotifyCallback (MOBJECT obj, OBJ_EVENT_CB cb, CARD32 event_mask, void *a_data)
void MObjectAddDestroyCallback (MOBJECT obj, MGUI_CB cb, void *a_data)
void MObjectRemoveEventNotifyCallback (MOBJECT obj, OBJ_EVENT_CB cb, void *a_data)
void MObjectRemoveDestroyCallback (MOBJECT obj, MGUI_CB cb, void *a_data)
void MInsertObject (MOBJECT parent, MOBJECT obj, MOBJECT where, int resize)
void MDeleteObject (MOBJECT obj, int resize)
void MReparentObject (MOBJECT parent, MOBJECT obj, MOBJECT where)
void MSelectObject (MOBJECT f)
void MSelectNextBrother (MOBJECT f)
void MSelectPreviousBrother (MOBJECT f)
void MSelectNextCousin (MOBJECT p)
void MSelectPreviousCousin (MOBJECT p)
void MTopAttach (MOBJECT child, int att_type, int off, MOBJECT obj)
void MBottomAttach (MOBJECT child, int att_type, int off, MOBJECT obj)
void MRightAttach (MOBJECT child, int att_type, int off, MOBJECT obj)
void MLeftAttach (MOBJECT child, int att_type, int off, MOBJECT obj)
MOBJECT MCreatePixmapFromData (MOBJECT parent, MIMAGE data)
MOBJECT MCreatePixmapFromFile (MOBJECT parent, const char *fname)
void MPixmapSetImage (MOBJECT pixmap, MIMAGE gi)
void MPixmapSetImageFile (MOBJECT pixmap, const char *fname)
MIMAGE MPixmapGetImage (MOBJECT pixmap)
MOBJECT MCreateShell (const char *title, int flags)
MOBJECT MObjectShell (MOBJECT obj)
Window MShellGetWindow (MOBJECT s)
void MShellDestroy (MOBJECT obj)
void MShellSetTitle (MOBJECT obj, const char *title)
void MShellGetTitle (MOBJECT obj, char *title)
void MShellRealize (MOBJECT obj)
void MShellRealizeXY (MOBJECT obj, int x, int y)
void MShellRealizeXYWH (MOBJECT obj, int x, int y, int w, int h)
void MShellUnrealize (MOBJECT obj)
void MShellSetWMCloseCallback (MOBJECT p, WM_CLOSE_CB cb, void *a_data)
void MShellRaise (MOBJECT obj)
void MShellConfigure (MOBJECT obj, int x, int y, int w, int h)
MOBJECT MCreatePosForm (MOBJECT parent)
MOBJECT MCreateRowForm (MOBJECT parent)
MOBJECT MCreateColForm (MOBJECT parent)
MOBJECT MCreatePagedPosForm (MOBJECT parent, int npage)
MOBJECT MCreatePagedRowForm (MOBJECT parent, int npage)
MOBJECT MCreatePagedColForm (MOBJECT parent, int npage)
MOBJECT MCreatePagedPosFormExt (MOBJECT parent, int npage)
MOBJECT MCreatePagedRowFormExt (MOBJECT parent, int npage)
MOBJECT MCreatePagedColFormExt (MOBJECT parent, int npage)
MOBJECT MCreateTabbedPosForm (MOBJECT parent, int npage, MTFont f)
MOBJECT MCreateTabbedRowForm (MOBJECT parent, int npage, MTFont f)
MOBJECT MCreateTabbedColForm (MOBJECT parent, int npage, MTFont f)
MOBJECT MCreateScrolledPosForm (MOBJECT parent, int clip_w, int clip_h)
MOBJECT MCreateScrolledRowForm (MOBJECT parent, int clip_w, int clip_h)
MOBJECT MCreateScrolledColForm (MOBJECT parent, int clip_w, int clip_h)
MOBJECT MCreateClippedPosForm (MOBJECT parent, int clip_w, int clip_h)
MOBJECT MCreateClippedRowForm (MOBJECT parent, int clip_w, int clip_h)
MOBJECT MCreateClippedColForm (MOBJECT parent, int clip_w, int clip_h)
void MFormSetSpacing (MOBJECT p, int offset)
void MFormSetChildSelectCallback (MOBJECT p, OBJ_VALUE_CB cb, void *data)
void MScrolledFormSetIncr (MOBJECT obj, int h_inc, int v_inc)
MOBJECT MScrolledFormGetVScrollBar (MOBJECT obj)
MOBJECT MScrolledFormGetHScrollBar (MOBJECT obj)
void MScrolledFormSetSliderColor (MOBJECT p, MTColor color)
void MScrolledFormSetSliderColorShift (MOBJECT p, int percentage)
MOBJECT MGetSelectedObject (MOBJECT f)
int MSelectFirstChild (MOBJECT f)
int MSelectLastChild (MOBJECT f)
void MFormSetPrefAtt (MOBJECT p, int pref_att)
void MFormSetFocusWrap (MOBJECT f, int true_false)
void MFormSetFocusHighlight (MOBJECT f, int true_false)
void MFormFocusLink (MOBJECT obj1, MOBJECT obj2)
void MPagedFormSetActivePage (MOBJECT form, int page)
int MPagedFormGetActivePage (MOBJECT form)
void MPagedFormDisablePageKeys (MOBJECT form)
void MPagedFormEnablePageKeys (MOBJECT form)
void MPagedFormSetNPages (MOBJECT form, int n_pages)
void MPagedFormSetActivePageCallback (MOBJECT p, OBJ_VALUE_CB cb, void *data)
void MFormSetClipX (MOBJECT obj, int clip_x)
void MFormSetClipY (MOBJECT obj, int clip_y)
int MFormGetClipX (MOBJECT obj)
int MFormGetClipY (MOBJECT obj)
void MFormAddKeyCallback (MOBJECT shell, int key, OBJ_VALUE_CB cb, void *ad)
MOBJECT MFormGetFirstChild (MOBJECT form)
MOBJECT MFormGetNextChild (MOBJECT form)
int MFormGetNChildren (MOBJECT form)
void MFormEnableSmartDrawing (MOBJECT form)
 Enables the no-flickering object drawing on all children.

void MFormDisableSmartDrawing (MOBJECT form)
 Disables the no-flickering object drawing on all children.

MOBJECT MCreateTableForm (MOBJECT parent, int n_cols)
MOBJECT MCreateScrolledTableForm (MOBJECT parent, int n_cols, int clip_w, int clip_h, int head_rows, int head_cols)
void MTableFormShowGrid (MOBJECT form)
void MTableFormHideGrid (MOBJECT form)
void MTableFormSetRowHeight (MOBJECT form, int row, int h)
void MTableFormSetColWidth (MOBJECT form, int col, int w)
void MTableFormSetColFont (MOBJECT form, int col, MTFont f)
void MTableFormSetColAlign (MOBJECT form, int col, int al)
void MTableFormSetRowAlign (MOBJECT form, int row, int al)
void MTableFormSetColBackgroundRGB (MOBJECT form, int col, int r, int g, int b)
void MTableFormSetColForegroundRGB (MOBJECT form, int col, int r, int g, int b)
void MTableFormSetCellText (MOBJECT form, int x, int y, const char *text)
void MTableFormGetCellText (MOBJECT form, int x, int y, char *text)
void MTableFormSetCellFont (MOBJECT form, int x, int y, MTFont f)
void MTableFormSetCellAlign (MOBJECT form, int x, int y, int h_al, int v_al)
void MTableFormSetCellBackgroundRGB (MOBJECT form, int x, int y, int r, int g, int b)
void MTableFormSetCellForegroundRGB (MOBJECT form, int x, int y, int r, int g, int b)
MOBJECT MTableFormGetCellObject (MOBJECT form, int x, int y)
void MTableFormSetNCol (MOBJECT form, int nc)
int MTableFormGetNCol (MOBJECT form)
void MTableFormDeleteRow (MOBJECT form, int row)
void MTableFormDeleteDataRows (MOBJECT form)
void MTabbedFormSetTabText (MOBJECT form, int page, const char *buff)
void MTabbedFormGetTabText (MOBJECT form, int page, char *buff)
MOBJECT MCreateDrawArea (MOBJECT parent, int width, int height)
void MDrawAreaSetExposeCallback (MOBJECT obj, OBJ_EVENT_CB cb, void *ad)
void MDrawAreaSetInputCallback (MOBJECT obj, OBJ_EVENT_CB cb, void *ad)
void MDrawAreaSetResizeCallback (MOBJECT obj, DRAWAREA_PREF_CB cb, void *ad)
MOBJECT MCreateFormattedText (MOBJECT par, const char *text, int clip_w, MTFont f)
MOBJECT MCreateScrolledFormattedText (MOBJECT par, const char *text, int clip_w, int clip_h, MTFont f)
void MFormattedTextSetMargin (MOBJECT obj, int w_m, int h_m)
void MFormattedTextSetHSpacing (MOBJECT obj, int h_s)
void MFormattedTextSetTabSize (MOBJECT obj, int ts)
MOBJECT MCreateLabel (MOBJECT parent, const char *text, MTFont font)
void MLabelSetMargin (MOBJECT p, int wm, int hm)
void MLabelSetHSpacing (MOBJECT p, int hs)
void MLabelSetAlignment (MOBJECT p, int align)
const char * MLabelValue (MOBJECT label)
MOBJECT MCreateDrawnPButton (MOBJECT parent, MIMAGE pn, MIMAGE pa, MIMAGE pu)
MOBJECT MCreateDrawnPButtonExt (MOBJECT parent, MIMAGE pn, MIMAGE pa, MIMAGE pu, MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on)
MOBJECT MCreateImagePButton (MOBJECT parent, const char *npf, const char *apf, const char *upf)
MOBJECT MCreateImagePButtonExt (MOBJECT parent, const char *npf, const char *apf, const char *upf, const char *non, const char *aon, const char *uon)
MOBJECT MCreateDrawnTextPButton (MOBJECT parent, const char *text, MTFont font, MIMAGE pn, MIMAGE pa, MIMAGE pu)
MOBJECT MCreateDrawnTextPButtonExt (MOBJECT parent, const char *text, MTFont font, MIMAGE pn, MIMAGE pa, MIMAGE pu, MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on)
MOBJECT MCreateImageTextPButton (MOBJECT parent, const char *text, MTFont font, const char *npf, const char *apf, const char *upf)
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)
MOBJECT MCreatePButton (MOBJECT parent, const char *text, MTFont font)
void MPButtonSetCallback (MOBJECT button, MGUI_CB cb, void *data)
void MPButtonSetRepeatDelay (MOBJECT button, int first, int repeat)
void MPButtonSetMargin (MOBJECT p, int wm, int hm)
void MPButtonSetHSpacing (MOBJECT p, int hs)
void MPButtonSetAlignment (MOBJECT p, int align)
void MPButtonSetImage (MOBJECT obj, const char *npf, const char *apf, const char *upf)
MOBJECT MCreateDrawnRButton (MOBJECT parent, MIMAGE np, MIMAGE ap, MIMAGE up)
MOBJECT MCreateDrawnRButtonExt (MOBJECT parent, MIMAGE pn, MIMAGE pa, MIMAGE pu, MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on)
MOBJECT MCreateImageRButton (MOBJECT parent, const char *npf, const char *apf, const char *upf)
MOBJECT MCreateImageRButtonExt (MOBJECT parent, const char *npf, const char *apf, const char *upf, const char *non, const char *aon, const char *uon)
MOBJECT MCreateDrawnTextRButton (MOBJECT parent, const char *text, MTFont font, MIMAGE np, MIMAGE ap, MIMAGE up)
MOBJECT MCreateDrawnTextRButtonExt (MOBJECT parent, const char *text, MTFont font, MIMAGE pn, MIMAGE pa, MIMAGE pu, MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on)
MOBJECT MCreateImageTextRButton (MOBJECT parent, const char *text, MTFont font, const char *npf, const char *apf, const char *upf)
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)
MOBJECT MCreateRButton (MOBJECT parent, const char *text, MTFont font)
void MRButtonActivate (MOBJECT o)
void MRButtonDeactivate (MOBJECT o)
void MRButtonSetCallback (MOBJECT button, OBJ_VALUE_CB cb, void *data)
int MRButtonGetActivationStatus (MOBJECT o)
void MRButtonSetImage (MOBJECT obj, const char *npf, const char *apf, const char *upf)
MOBJECT MCreateDrawnTButton (MOBJECT parent, MIMAGE np, MIMAGE ap, MIMAGE up)
MOBJECT MCreateDrawnTButtonExt (MOBJECT parent, MIMAGE pn, MIMAGE pa, MIMAGE pu, MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on)
MOBJECT MCreateImageTButton (MOBJECT parent, const char *npf, const char *apf, const char *upf)
MOBJECT MCreateImageTButtonExt (MOBJECT parent, const char *npf, const char *apf, const char *upf, const char *non, const char *aon, const char *uon)
MOBJECT MCreateDrawnTextTButton (MOBJECT parent, const char *text, MTFont font, MIMAGE np, MIMAGE ap, MIMAGE up)
MOBJECT MCreateDrawnTextTButtonExt (MOBJECT parent, const char *text, MTFont font, MIMAGE pn, MIMAGE pa, MIMAGE pu, MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on)
MOBJECT MCreateImageTextTButton (MOBJECT parent, const char *text, MTFont font, const char *npf, const char *apf, const char *upf)
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)
MOBJECT MCreateTButton (MOBJECT parent, const char *text, MTFont font)
void MTButtonActivate (MOBJECT o)
void MTButtonDeactivate (MOBJECT o)
void MTButtonSetCallback (MOBJECT button, OBJ_VALUE_CB cb, void *data)
void MTButtonSetActivationStatus (MOBJECT o, int status)
int MTButtonGetActivationStatus (MOBJECT o)
void MTButtonSetImage (MOBJECT obj, const char *npf, const char *apf, const char *upf)
MOBJECT MCreateStatusBar (MOBJECT parent, const char *text, int max, MTFont font)
void MStatusBarSetMax (MOBJECT p, int max)
void MStatusBarSetWidth (MOBJECT p, int width)
void MStatusBarSetPos (MOBJECT p, int pos)
void MStatusBarSetSliderColor (MOBJECT p, MTColor col)
void MStatusBarSetSliderRGB (MOBJECT p, int r, int g, int b)
MOBJECT MCreateScrollBar (MOBJECT parent, int type, long n, long max)
void MScrollBarSetMax (MOBJECT p, long max)
void MScrollBarSetPos (MOBJECT p, long pos)
void MScrollBarSetN (MOBJECT p, long n)
void MScrollBarSetIncr (MOBJECT p, int incr)
void MScrollBarSetPosCallback (MOBJECT p, OBJ_VALUE_CB cb, void *data)
void MScrollBarSetValues (MOBJECT p, long max, long n, long pos)
long MScrollBarGetMax (MOBJECT p)
long MScrollBarGetPos (MOBJECT p)
long MScrollBarGetN (MOBJECT p)
void MScrollBarSetSliderColor (MOBJECT p, MTColor color)
void MScrollBarSetSliderColorShift (MOBJECT p, int percentage)
MOBJECT MCreateSText (MOBJECT parent, const char *text, MTFont font, int nrow, int ncol)
MOBJECT MCreateSTextClip (MOBJECT parent, NEW_BLOCK_CB nb, void *nbd, MTFont font, int nrow, int ncol, int xc, long xn)
MOBJECT MCreateSFile (MOBJECT parent, const char *fname, MTFont font, int nrow, int ncol)
MOBJECT MCreateSList (MOBJECT parent, MTFont font, int row_len, int nrow, int ncol)
MOBJECT MCreateSListMultiSel (MOBJECT parent, MTFont font, int row_len, int nrow, int ncol)
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)
MOBJECT MCreateSListSkip (MOBJECT parent, NEW_BLOCK_CB nb, void *nbd, ITEM_SEEK_CB is, void *isd, MTFont font, int nrow, int ncol, int xc)
MOBJECT MCreateEditList (MOBJECT parent, MTFont font, EL_TEMPLATE *elt, int ne, int nrow, int ncol)
LIST_ACTMSListGetFirstItem (MOBJECT p)
LIST_ACTMSListGetFirstSelectedItem (MOBJECT p)
LIST_ACTMSListGetNextItem (MOBJECT p)
LIST_ACTMSListGetNextSelectedItem (MOBJECT p)
LIST_ACTMSListGetFirstUnselectedItem (MOBJECT p)
LIST_ACTMSListGetNextUnselectedItem (MOBJECT p)
long MSListGetNItem (MOBJECT p)
void MSListSelectItem (MOBJECT p, const char *item)
void MSListDeselectItem (MOBJECT p, const char *item)
void MSListSelectElement (MOBJECT p, long n)
void MSListDeselectElement (MOBJECT p, long n)
void MSListClear (MOBJECT p)
int MSListAddItem (MOBJECT p, const char *item, void *data)
int MSListDelItem (MOBJECT p, const char *item)
int MSListAddElement (MOBJECT p, long n, const char *item, void *data)
int MSListDelElement (MOBJECT p, long n)
void MSListChangeItem (MOBJECT p, const char *old, const char *new_item, void *u_data)
void MSListChangeElement (MOBJECT p, long n, const char *new_item, void *u_data)
LIST_ACTMSListGetItem (MOBJECT p, const char *item)
LIST_ACTMSListGetElement (MOBJECT p, long n)
LIST_ACTMSListGetSelected (MOBJECT p)
void MSListSetCallback (MOBJECT obj, LIST_ACT_CB cb, void *data)
void MSListSetPickCallback (MOBJECT obj, LIST_ACT_CB cb, void *value)
void MSListSetSelectionCallback (MOBJECT obj, LIST_SEL_CB cb, void *data)
void MSListSetSortCallback (MOBJECT obj, STRCMP_CB cb)
void MSListFreeze (MOBJECT obj)
void MSListThaw (MOBJECT obj)
void MSListEnableItemMotion (MOBJECT p)
void MSListDisableMultiSel (MOBJECT obj)
void MSListDisableItemMotion (MOBJECT obj)
void MSListSetHighLightColors (MOBJECT obj, MTColor bgc, MTColor fgc)
int MSListGetItemCheckStatus (MOBJECT p, const char *item)
void MSListSetItemCheckStatus (MOBJECT p, const char *item, int status)
void MSListReset (MOBJECT p)
void MSListEnableMultiSel (MOBJECT obj)
MOBJECT MSListGetVScrollBar (MOBJECT p)
MOBJECT MSListGetHScrollBar (MOBJECT p)
void MSListSetHighLightFGColor (MOBJECT obj, MTColor fgc)
void MSListSetSliderColorShift (MOBJECT p, int percentage)
void MSBLSetHead (MOBJECT obj, const char *text)
void MSBLGetHead (MOBJECT obj, char *buff)
void MSBLHeadSetColor (MOBJECT obj, MTColor bgc, MTColor fgc)
void MSBLHeadSetBackgroundImage (MOBJECT obj, MIMAGE img, int mode)
void MSTextSetString (MOBJECT p, const char *text)
void MSFileSetFile (MOBJECT obj, const char *fname)
void MSBLSetHMargin (MOBJECT p, int hm)
int MEditListAddItem (MOBJECT p, char **argv, void *u_data)
void MEditListChangeElement (MOBJECT p, long n, char **new_ele, void *data)
void MEditListDelElement (MOBJECT p, long n)
void MEditListSeekItem (MOBJECT p, char **argv, long *pos, void **u_data)
void MEditListGetItemField (MOBJECT el, const char *item, int ii, char *buff)
int MEditListAddItemFromEdits (MOBJECT p, void *u_data)
void MEditListGetEditText (MOBJECT p, int n, char *buff)
void MEditListSetEditText (MOBJECT p, int n, const char *buff)
MOBJECT MCreateClippedEdit (MOBJECT parent, const char *text, int len, int clip_len, MTFont font)
MOBJECT MCreateEdit (MOBJECT parent, const char *text, int len, MTFont font)
MOBJECT MCreateClippedHiddenEdit (MOBJECT parent, const char *text, int len, int clip_len, MTFont font, char shown_char)
MOBJECT MCreateHiddenEdit (MOBJECT parent, const char *text, int len, MTFont font, char shown_char)
MOBJECT MCreateSpinEdit (MOBJECT parent, const char *text, short len, short clip_len, short font, OBJ_VALUE_CB cb, void *cd)
void MEditSetMargin (MOBJECT edit, int w_margin, int h_margin)
void MEditSetFilter (MOBJECT edit, int filter, const char *extra_chars)
MOBJECT MCreateClippedMLEdit (MOBJECT parent, const char *text, int width, int height, MTFont font)
MOBJECT MCreateScrolledMLEdit (MOBJECT parent, const char *text, int width, int height, MTFont font)
void MEditChangeText (MOBJECT edit, int off, int len, const char *new_t, int chg_len)
void MEditGetSubString (MOBJECT edit, int start, int end, char *str)
int MEditFindSubStringForward (MOBJECT edit, int off, const char *str, int icase)
int MEditFindSubStringBackward (MOBJECT edit, int off, const char *str, int icase)
void MEditSetSelection (MOBJECT edit, int start, int end)
void MEditGetSelection (MOBJECT edit, int *pstart, int *pend)
void MEditSetCursorPos (MOBJECT edit, int pos)
int MEditGetCursorPos (MOBJECT edit)
void MEditSetCursorXY (MOBJECT edit, int x, int y)
void MEditGetCursorXY (MOBJECT edit, int *px, int *py)
void MEditSetAutoIndent (MOBJECT edit, int on_off)
void MEditSetTabSize (MOBJECT edit, int size)
void MEditSetClipWindow (MOBJECT edit, int clip_w, int clip_h)
void MEditSetCursorPosCallback (MOBJECT edit, EDIT_CURS_CB cb, void *data)
void MEditSetTextExt (MOBJECT edit, const char *text, int validated, int notify)
void MEditSetActCallback (MOBJECT edit, OBJ_STRING_CB cb, void *data)
void MEditSetValCallback (MOBJECT edit, EDIT_VAL_CB cb, void *data)
void MEditSetValueChangeCallback (MOBJECT edit, EDIT_CHANGE_CB cb, void *data)
void MEditSetNewValueCallback (MOBJECT edit, OBJ_STRING_CB cb, void *data)
void MEditSetHotKeyCallback (MOBJECT edit, int key, MGUI_CB cb, void *data)
void MEditSetValidatedColors (MOBJECT edit, MTColor bg_color, MTColor fg_color)
void MEditSetNotValidatedColors (MOBJECT edit, MTColor bgc, MTColor fgc)
void MEditSetValidationStatus (MOBJECT edit, int validated)
void MEditSetReplace (MOBJECT edit)
int MIsEditValidated (MOBJECT p)
int MEditGetFilter (MOBJECT p)
const char * MEditValue (MOBJECT edit)
void MEditHide (MOBJECT edit, char shown_char)
void MEditUnhide (MOBJECT edit)
void MSpinEditSetCallback (MOBJECT spinedit, OBJ_VALUE_CB cb, void *data)
void MSpinEditSetSpinRange (MOBJECT edit, int smin, int smax)
void MEditDisableEditing (MOBJECT edit)
void MEditEnableEditing (MOBJECT edit)
MOBJECT MScrolledEditGetVScrollBar (MOBJECT p)
MOBJECT MScrolledEditGetHScrollBar (MOBJECT p)
void MScrolledEditSetSliderColor (MOBJECT p, MTColor color)
void MScrolledEditSetSliderColorShift (MOBJECT p, int percentage)
MOBJECT MCreateOptionEdit (MOBJECT parent, const char *text, int len, int clip_len, int nrow, MTFont font)
MOBJECT MOptionEditGetList (MOBJECT ce)
void MOptionEditSetListCallback (MOBJECT obj, LIST_ACT_CB cb, void *data)
MOBJECT MCreateMenuBar (MOBJECT parent, MTFont font)
MOBJECT MCreateMenu (MOBJECT menu, const char *text)
MOBJECT MCreateSubMenu (MENU_ITEM item)
MOBJECT MCreatePopupMenu (MTFont font)
void MDestroyMenu (MOBJECT menu)
MENU_ITEM MMenuAddItemObsolete (MOBJECT pd, const char *item, MGUI_CB cb, void *ad)
MENU_ITEM MMenuAddItem (MOBJECT pd, const char *item, MENU_ITEM_CB cb, void *ad)
MENU_ITEM MMenuAddRadioItem (MOBJECT pd, const char *item, MENU_ITEM_CB cb, void *ad)
MENU_ITEM MMenuAddToggleItem (MOBJECT pd, const char *item, MENU_ITEM_CB cb, void *ad)
MENU_ITEM MMenuAddSeparator (MOBJECT pd)
void MPopupMenu (MOBJECT pm, int x, int y)
void MMenuSetTitleText (MOBJECT pd, const char *text)
void MMenuItemSetText (MENU_ITEM item, const char *text)
void MMenuItemSetAccel (MENU_ITEM item, int acc, const char *at)
void MMenuItemSetSensitive (MENU_ITEM item)
void MMenuItemSetUnsensitive (MENU_ITEM item)
void MMenuItemSetSelectCB (MOBJECT p, MGUI_CB cb, void *ad)
void MMenuBarSetAcc (MOBJECT menu, int acc)
const char * MMenuItemGetText (MENU_ITEM item)
const char * MMenuGetTitleText (MOBJECT obj)
int MMenuItemSetCheckStatus (MENU_ITEM item, int TrueFalse)
int MMenuItemGetCheckStatus (MENU_ITEM item)
int MMenuItemToggleCheckStatus (MENU_ITEM item)
MOBJECT MMenuItemGetMenu (MENU_ITEM item)
void MMenuSetHighLightColors (MOBJECT obj, MTColor bgc, MTColor fgc)
void MMenuBarSetHighLightColors (MOBJECT obj, MTColor bgc, MTColor fgc)
void MMenuBarSetHighLightFGColor (MOBJECT obj, MTColor fgc)
void MMenuSetHighLightFGColor (MOBJECT obj, MTColor fgc)
MOBJECT MCreateTree (MOBJECT parent, MTFont font, int width, int height, int n_types)
 Create an empty MTree widget.

MTNODE MTreeCreateNode (MOBJECT tree, MTNODE parent, CARD16 type, CARD16 flags, const char *text, void *ud)
 Adds a node to the MTree.

void MTreeDestroyNode (MTNODE node, int notify)
 Destroys a node and all its contained nodes.

void MTreeDestroyNodeContainee (MTNODE node, int notify)
 Destroys all contained nodes, but not the node itself.

void MTreeOpenNode (MTNODE node, int notify)
 Opens a node making its children available.

void MTreeCloseNode (MTNODE node, int notify)
 Closes a node making its children unavailable.

void MTreeSelectNode (MTNODE node, int notify)
 Selects a node (passing it the input focus).

void MTreeSetOpenCallback (MOBJECT tree, MTREE_NODE_CB cb, void *ud)
 Sets the node open callback at Tree level (same callback for all nodes).

void MTreeSetCloseCallback (MOBJECT tree, MTREE_NODE_CB cb, void *ud)
 Sets the node close callback at Tree level (same callback for all nodes).

void MTreeSetSelectCallback (MOBJECT tree, MTREE_NODE_CB cb, void *ud)
 Sets the node select callback at Tree level (same callback for all nodes).

void MTreeSetDestroyCallback (MOBJECT tree, MTREE_NODE_CB cb, void *ud)
 Sets the node close callback at Tree level (same callback for all nodes).

void MTreeSetImagesByName (MOBJECT tree, int type, const char *norm, const char *open, const char *sel)
 Sets the images to be associated to a given node type.

void MTreeSetImagesByData (MOBJECT tree, int type, MIMAGE norm, MIMAGE open, MIMAGE sel)
 Sets the images to be associated to a give node type.

void MTreeSetHighLightColors (MOBJECT tree, MTColor bgc, MTColor fgc)
 Sets the text foreground and background colors to be used to highlight a selected node.

void MTreeSetHighLightFGColor (MOBJECT tree, MTColor fgc)
 Sets the text foreground color to be used to highlight a selected node.

void MTreeSetLineColor (MOBJECT tree, MTColor color)
 Sets the color to be used to draw node connecting lines.

MOBJECT MTreeGetVScrollBar (MOBJECT tree)
 Returns the widget identifier of the vertical scrollbar in an MTree object.

MOBJECT MTreeGetHScrollBar (MOBJECT tree)
 Returns the widget identifier of the horizontal scrollbar in an MTree object.

void MTreeSetSliderColor (MOBJECT tree, MTColor color)
 Sets the color of the sliders in the scrollbars of an MTree object.

void MTreeSetSliderColorShift (MOBJECT tree, int percentage)
 Sets the color of the sliders in the scrollbars of an MTree object as a percentage of their normal color.

MTNODE MTreeGetSelectedNode (MOBJECT tree)
 Returns the identifier of the currently selected node.

MTNODE MTreeGetFirstNode (MOBJECT tree)
 Returns the identifier of the first node in an MTree object.

MTNODE MTreeNodeGetNext (MTNODE node)
 Returns the identifier of the node following the one specified as argument.

MTNODE MTreeNodeGetFirstChild (MTNODE node)
 Returns the identifier of the first node contained inside the one specified as argument.

MTNODE MTreeNodeGetParent (MTNODE node)
 Returns the identifier of the parent node of the one specified as argument.

char * MTreeNodeGetPath (MTNODE node, char separator, char *buff)
 Creates a path composed by concatenating the name of all nodes starting from the root up to the node specified as argument.

void MTreeNodeSetImages (MTNODE node, MIMAGE norm, MIMAGE open, MIMAGE sel)
 Sets the images to be associated to a specific node.

void MTreeNodeSetText (MTNODE node, const char *text)
 Changes the text associated to a node.

char * MTreeNodeGetText (MTNODE node, char *text)
 Retrieves the text associated to a node.

void MTreeNodeSetUserData (MTNODE node, void *ud)
 Sets the user data associated to a node.

void * MTreeNodeGetUserData (MTNODE node)
 Retrieves the value of the user data for node callbacks.

MOBJECT MTreeNodeGetMTree (MTNODE node)
 Retrieves the MTree container for a node.

CARD16 MTreeNodeGetType (MTNODE node)
 Retrieves the type of the specified node.

void MTreeNodeSetOpenCallback (MTNODE node, MTREE_NODE_CB cb, void *ud)
 Sets the node open callback at local level (callback applies to this node only).

void MTreeNodeSetCloseCallback (MTNODE node, MTREE_NODE_CB cb, void *ud)
 Sets the node close callback at local level (callback applies to this node only).

void MTreeNodeSetSelectCallback (MTNODE node, MTREE_NODE_CB cb, void *ud)
 Sets the node select callback at local level (callback applies to this node only).

void MTreeNodeSetDestroyCallback (MTNODE node, MTREE_NODE_CB cb, void *ud)
 Sets the node destroy callback at local level (callback applies to this node only).

MOBJECT MCreateSplitter (MOBJECT parent)
 Creates a Splitter object.

TIMEOUT_ID MAddTimeout (CARD32 tmout, TIMEOUT_CB cb, void *ud)
void MRemoveTimeout (TIMEOUT_ID id)
void MCallAllTimeoutCallbacks (void)
void MRefreshTimeout (TIMEOUT_ID *pid, CARD32 msec, TIMEOUT_CB cb, void *ud)
void MClearTimeout (TIMEOUT_ID *pid)
void MCallExpiredTimeoutCallbacks (void)


Function Documentation

void MButtonChangeImageFiles MOBJECT    obj,
const char *    npf,
const char *    apf,
const char *    upf,
const char *    npfo,
const char *    apfo,
const char *    upfo
 

void MButtonSetAccelerator MOBJECT    button,
int    key
 

void MButtonSetImageMaskByCMapIndex MOBJECT    obj,
int    id
 

void MButtonSetImageMaskByPixel MOBJECT    obj,
int    x,
int    y
 

void MButtonSetImageMaskByRGB MOBJECT    obj,
int    r,
int    g,
int    b
 

void MButtonSetOnMouseOverForegroundColor MOBJECT    button,
MTColor    cc
 

void MButtonSetOnMouseOverForegroundRGB MOBJECT    button,
int    r,
int    g,
int    b
 

void MButtonSetShadowOnMouseOver MOBJECT    obj,
int    thick
 

void MButtonSetTextVsImageAlignment MOBJECT    button,
CARD8    align
 

void MButtonUnsetOnMouseOverForeground MOBJECT    obj
 

void MButtonUnsetShadowOnMouseOver MOBJECT    obj
 

MTCursor MCreateCursor MIMAGE    bits,
int    xs,
int    ys
 

MIMAGE MDrawnButtonChangeArmedImage MOBJECT    button,
MIMAGE    new_img
 

MIMAGE MDrawnButtonChangeArmedOnImage MOBJECT    button,
MIMAGE    new_img
 

MIMAGE MDrawnButtonChangeNormalImage MOBJECT    button,
MIMAGE    new_img
 

MIMAGE MDrawnButtonChangeNormalOnImage MOBJECT    button,
MIMAGE    new_img
 

MIMAGE MDrawnButtonChangeUnsensitiveImage MOBJECT    button,
MIMAGE    new_img
 

MIMAGE MDrawnButtonChangeUnsensitiveOnImage MOBJECT    button,
MIMAGE    new_img
 


Generated on Sun Jun 29 13:03:07 2003 for MGui API by doxygen1.3-rc2