Functions | |
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) |
|
This function emits a beep sound using the system specific's default sound. Under Windows it calls 'MessageBeep(MB_ICONASTERISK)'. Under Unix X-Window it calls 'XBell(display, 100)'. Under any other console systems (DOS and Linux) it puts the bell character to the console. |
|
Returns the height of the character 'ch' using the font 'font'.
|
|
Returns the width of the character 'ch' using the font 'font'.
|
|
This function enables the running application to open the Character Browser dialog via <Ctrl+Shift+F10> for special input in Edit objects.
|
|
Displays a modal prompt window for a file name selection. It allows the program to block its flow, waiting for the user input a file name. Uses the MTree object to display the directory structure in a graphic form.
|
|
Displays a modal prompt window for a file name selection. It allows the program to block its flow, waiting for the user input a file name.
|
|
|
|
Returns the program's current directory. An ending directory separator character is included in the returned path ('/' under Unix, '\' under DOS/Windows). The drive letter and the ':' characters are also included at the beginning of the path under DOS/Windows.
|
|
Retrieves the R-G-B components of the background color used in the FileSelection dialog.
|
|
Retrieves the R-G-B components of the foreground color used in the InputPrompt dialog.
|
|
Retrieves the fonts used in the InputPrompt and TextPrompt dialogs for message text, edit and buttons.
|
|
Retrieves the R-G-B components of the background color used in the InputPrompt dialog.
|
|
Returns the status of the keyboard modifier keys (Alt, Control, Shift). The returned integer contains a bit mask of the currently pressed modifier keys. You can test each key by bitwise and-ing the returned value with the following macros (defined in mguidef.h): AltMask, ControlMask, ShiftMask. |
|
Retrieves the R-G-B components of the foreground color used in the Message dialog.
|
|
Retrieves the fonts used in the Message dialog for message text and buttons.
|
|
Retrieves the R-G-B components of the background color used in the Message dialog.
|
|
Returns the number of colors in the display. Possible values are: 16, 256, 32K, 64K and 16M. They correspond to: 4, 8, 15, 16 and 24 planes. |
|
Returns the number of color planes in the display. Possible values are: 4, 8, 15, 16 and 24. They correspond to: 16, 256, 32K, 64K and 16M colors. |
|
Returns the screen height in pixel units.
|
|
Returns the screen width in pixel units.
|
|
Returns a pointer to the MGUISYS directory. The MGUISYS directory is searched at startup by the MGUI init code that runs before calling the application code: MGUIMain(). This directory contains MGUI bitmaps (as scrollbar arrows), MGUI fonts for console systems (DOS and Linux console), MGUI resource files. |
|
Displays a modal prompt window for a single line text input. This dialog window allows the program to block its flow, waiting for the user input a single line text.
|
|
Displays a modal message window. This dialog window allows the program to block its flow until the user selects one of the push buttons provided. The buttons are specified using a NULL terminated list of string pointers. At least one button must be specified, so, the argument 'btn1' describes the text of the first button and 'btn2' could be the NULL pointer or a pointer to string for the text of the second button.
|
|
This function returns True if the calling program runs in 16 or 256 colors video mode. When running in PaletteMode it's possible to create color animation by changing the RGB values in the colormap cells. |
|
|
|
|
|
|
|
Sets the R-G-B components of the background color of the FileSelection dialog.
|
|
Changes the text displayed in the labels and buttons in the FileSelection dialog. To reset a value to its default, pass the NULL pointer to the corresponding parameter.
|
|
Sets the R-G-B components of the foreground color of the InputPrompt dialog.
|
|
Sets the font for the message text, edit field and buttons in the InputPrompt and TextPrompt dialogs.
|
|
Sets the R-G-B components of the background color of the InputPrompt dialog.
|
|
Sets the R-G-B components of the foreground color of the Message dialog.
|
|
Sets the message text and buttons' fonts in the Message dialog.
|
|
Sets the R-G-B components of the background color of the Message dialog.
|
|
Prints an ascii text file in the system printer. The print dialog is displayed under Windows. The file is printed in background under DOS, provided that the program periodically gives control to one of the event loop functions.
|
|
Prints a temporary ascii text file in the system printer. The file is removed as the printing is done. The print dialog is displayed under Windows. The file is printed in background under DOS, provided that the program periodically gives control to one of the event loop functions.
|
|
Returns the x position (in pixels) of the character at a given position in a string array. This function actually converts the position of a character in a string from array index 'i' to x position in pixels using the font 'font'.
|
|
Returns the height of the string 'text' using the font 'font'.
|
|
Returns the width of the first 'n' characters in the string 'text' using the font 'font'.
|
|
Displays a modal prompt window for a multi line text input. This dialog window allows the program to block its flow, waiting for the user input a multi line text. The arguments 'w' and 'h' specify the width and height of the Edit field object in character units.
|
|
Returns the width of the null terminated string 'text' using the font 'font'.
|
|
|
|
|
|
|