Misc Utility


MGetKeyboardState
Returns the status of the keyboard modifier keys (Alt, Control, Shift)
MBeep
This function emits a beep sound using the system specific's default sound
MGetSysDir
Returns a pointer to the MGUISYS directory
MPaletteMode
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
MGetNPlanes
Returns the number of color planes in the display
MGetNColors
Returns the number of colors in the display
MBlackColor
Returns the color id of the black color
MWhiteColor
Returns the color id of the white color
MTextCharX
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'
MCharHeight
Returns the height of the character 'ch' using the font 'font'
MTextWidth
Returns the width of the null terminated string 'text' using the font 'font'
MTextNWidth
Returns the width of the first 'n' characters in the string 'text' using the font 'font'
MCharWidth
Returns the width of the character 'ch' using the font 'font'
MGetDefaultBackgroundRGB
Retrieves the R-G-B components of the default background color
MSetDefaultBackgroundRGB
Sets the R-G-B components of the default background color
MGetDefaultForegroundRGB
Retrieves the R-G-B components of the default foreground color
MSetDefaultForegroundRGB
Sets the R-G-B components of the default foreground color
MAllocDefaultBackgroundColor
Allocates a shared color having the R-G-B components of the default background color
MMessageDialog
Displays a modal message window
MInputPrompt
Displays a modal prompt window for a single line text input
MTextPrompt
Displays a modal prompt window for a multi line text input
MFileSelection
Displays a modal prompt window for a file name selection
MGetCurrentDirectory
Returns the program's current directory
MSetInputPromptRGB
Sets the R-G-B components of the background color of the InputPrompt dialog
MSetMessageDialogRGB
Sets the R-G-B components of the background color of the Message dialog
MSetFileSelectionRGB
Sets the R-G-B components of the background color of the FileSelection dialog
MGetInputPromptRGB
Retrieves the R-G-B components of the background color used in the InputPrompt dialog
MGetMessageDialogRGB
Retrieves the R-G-B components of the background color used in the Message dialog
MGetFileSelectionRGB
Retrieves the R-G-B components of the background color used in the FileSelection dialog
MSetFileSelectionTextStrings
Changes the text displayed in the labels and buttons in the FileSelection dialog
MSpoolFile
Prints an ascii text file in the system printer
MSpoolTempFile
Prints a temporary ascii text file in the system printer
This group includes general purpose functions.

alphabetic index hierarchy of classes


MGUI Copyright 1996-2000 Vincenzo Morello

generated by doc++