36#define FONT_SANS_FIELD 3
37#define FONT_SANS_MENU 4
38#define FONT_SERIF_FIELD 6
39#define FONT_SERIF_MENU 7
40#define FONT_MONOSPACE_FIELD 9
41#define FONT_MONOSPACE_MENU 10
42#define FONT_CURSIVE_FIELD 12
43#define FONT_CURSIVE_MENU 13
44#define FONT_FANTASY_FIELD 15
45#define FONT_FANTASY_MENU 16
46#define FONT_DEFAULT_FIELD 18
47#define FONT_DEFAULT_MENU 19
48#define FONT_DEFAULT_SIZE 23
49#define FONT_DEFAULT_DEC 24
50#define FONT_DEFAULT_INC 25
51#define FONT_MINIMUM_SIZE 28
52#define FONT_MINIMUM_DEC 29
53#define FONT_MINIMUM_INC 30
54#define FONT_DEFAULT_BUTTON 32
55#define FONT_CANCEL_BUTTON 33
56#define FONT_OK_BUTTON 34
171 for (i = 0; i != 5; i++) {
202 for (i = 0; i < 5; i++) {
#define FONT_DEFAULT_MENU
#define FONT_MONOSPACE_MENU
#define FONT_FANTASY_MENU
#define FONT_DEFAULT_SIZE
#define FONT_DEFAULT_BUTTON
static void ro_gui_options_fonts_default(wimp_pointer *pointer)
#define FONT_CURSIVE_FIELD
#define FONT_MONOSPACE_FIELD
bool ro_gui_options_fonts_initialise(wimp_w w)
static bool ro_gui_options_fonts_ok(wimp_w w)
#define FONT_CURSIVE_MENU
static wimp_menu * default_menu
#define FONT_MINIMUM_SIZE
static const char * font_names[PLOT_FONT_FAMILY_COUNT]
#define FONT_CANCEL_BUTTON
static bool ro_gui_options_fonts_init_menu(void)
#define FONT_DEFAULT_FIELD
#define FONT_FANTASY_FIELD
void ro_gui_save_options(void)
Save the current options.
const char * nsfont_fallback_font(void)
Retrieve the fallback font name.
bool nsfont_exists(const char *font_family)
Check if a font family is available.
const char * messages_get(const char *key)
Fast lookup of a message by key from the standard Messages hash.
Localised message support (interface).
plotter style interfaces, generic styles and style colour helpers.
@ PLOT_FONT_FAMILY_COUNT
Number of generic families.
nserror ro_warn_user(const char *warning, const char *detail)
Display a warning for a serious problem (eg memory exhaustion).
Option reading and saving interface.
#define nsoption_charp(OPTION)
Get the value of a string option.
#define nsoption_int(OPTION)
Get the value of an integer option.
#define nsoption_set_int(OPTION, VALUE)
set an integer option in the default table
#define nsoption_set_charp(OPTION, VALUE)
set string option in default table
void ro_gui_set_icon_string(wimp_w w, wimp_i i, const char *text, bool is_utf8)
Set the contents of a text or sprite icon to a string.
int ro_gui_get_icon_decimal(wimp_w w, wimp_i i, int decimal_places)
Get the contents of an icon as a number.
const char * ro_gui_get_icon_string(wimp_w w, wimp_i i)
Read the contents of a text or sprite icon.
void ro_gui_set_icon_decimal(wimp_w w, wimp_i i, int value, int decimal_places)
Set the contents of an icon to a number.
General RISC OS WIMP/OS library functions (interface).
bool ro_gui_wimp_event_register_numeric_field(wimp_w w, wimp_i i, wimp_i up, wimp_i down, int min, int max, int stepping, int decimal_places)
Register a numeric field to be automatically handled.
bool ro_gui_wimp_event_set_help_prefix(wimp_w w, const char *help_prefix)
Set the associated help prefix for a given window.
bool ro_gui_wimp_event_register_menu_gright(wimp_w w, wimp_i i, wimp_i gright, wimp_menu *menu)
Register an icon menu to be automatically handled.
bool ro_gui_wimp_event_register_cancel(wimp_w w, wimp_i i)
Register a function to be called for the Cancel action on a window.
bool ro_gui_wimp_event_memorise(wimp_w w)
Memorises the current state of any registered components in a window.
bool ro_gui_wimp_event_register_ok(wimp_w w, wimp_i i, bool(*callback)(wimp_w w))
Register a function to be called for the OK action on a window.
bool ro_gui_wimp_event_register_button(wimp_w w, wimp_i i, void(*callback)(wimp_pointer *pointer))
Register a function to be called when a particular button is pressed.
Automated RISC OS WIMP event handling (interface).