A graphics mode and theme selector
This module implements a dialog to select and possibly change the graphics mode an theme.
When a graphics mode/theme is selected the window sends a MX_GFXSEL_OK event to the parent window. The window can get information about the selected graphics mode and theme using the mx_gfxsel_info() function. The information can also be modified by the parent window. If the parent window does not reply to the MX_GFXSEL_OK event (or replies with 0), then the graphics mode/theme gets changed. (../include/depui/gfxsel.h)
Pressing the OK button sends a MX_GFXSEL_OK event to the parent window and immediatly destroys the graphics mode window. (../include/depui/gfxsel.c)
Pressing the APPLY button sends a MX_GFXSEL_OK event to the parent window. (../include/depui/gfxsel.c)
Part of the depui library.
MX_GFXSEL
Graphics mode selector
# define mx_gfxsel(id)
Create a graphics mode and theme selector.
MX_GFXSEL_INFO
Graphics mode selector information
When a graphics mode has been selected by the dialog a MX_GFXSEL_OK event is sent to the parent window. Then mx_gfxsel_info() can be called to get information about the graphics mode selected. A pointer to this type is returned. (../include/depui/gfxsel.h)
void mx_gfxsel_handler(MX_WIN* win)
Pressing the OK button sends a MX_GFXSEL_OK event to the parent window and immediatly destroys the graphics mode window. (../include/depui/gfxsel.c)
Pressing the APPLY button sends a MX_GFXSEL_OK event to the parent window. (../include/depui/gfxsel.c)
MX_GFXSEL* mx_gfxselwin(MX_GFXSEL* sel, size_t size, MX_HANDLER handler, int theid)
mx_text_set(&sel->_res, "Resolution", -1, 0); (../include/depui/gfxsel.c)
mx_text_set(&sel->_depth, "Depth", -1, 0); (../include/depui/gfxsel.c)
mx_text_set(&sel->_driver, "Driver", -1, 0); (../include/depui/gfxsel.c)
MX_GFXSEL_INFO* mx_gfxsel_info(const int idnum)
When handling a MX_GFXSEL_OK event this function can be called to get information about the graphics mode selected. (../include/depui/gfxsel.c)
This function should only be called while handling a MX_GFXSEL_OK event. (../include/depui/gfxsel.c)
The specified id number must match the one of the gfxsel selector. (../include/depui/gfxsel.c)
Generated by MXDOC 2.2 on Sun Feb 4 15:16:27 2007