A font selector and loader
This module implements a font selector dialog. (../include/depui/fontsel.h)
Part of the depui library.
MX_FONTSEL
A font seletion window
# define mx_fontsel(id)
Create a font selector window
This macro creates a font selector with the specified id number. (../include/depui/fontsel.h)
void mx_fontsel_refresh(MX_FONTSEL* fsel)
This function refreshes a font selector dialog with the currently available fonts. This function should be called after creating the font selector and before it gets displayed or gets an MX_GEOMETRY event. (../include/depui/fontsel.c)
MX_FONTSEL* mx_fontselwin(MX_FONTSEL* fsel, size_t size, MX_HANDLER handler, int theid)
mx_text_set(&fsel->_fonts, "fonts", -1, 0); (../include/depui/fontsel.c)
MX_GUIFONT* mx_fontsel_info(const int idnum)
Font selection information
When a font has been chosen from a font selector dialog the a MX_FONTSEL_OK event is sent to the parent window. This function can be called when handling that event to determine the font selected. (../include/depui/fontsel.c)
This function should only be called when handling an MX_FONTSEL_event. (../include/depui/fontsel.c)
The sepcified id number has to match the one with the selected font. (../include/depui/fontsel.c)
Generated by MXDOC 2.2 on Sun Feb 4 15:16:27 2007