22#include <proto/exec.h>
23#include <proto/graphics.h>
24#include <proto/intuition.h>
25#include <proto/utility.h>
27#include <proto/application.h>
29#include <libraries/gadtools.h>
30#include <exec/types.h>
31#include <intuition/classusr.h>
32#include <graphics/gfxbase.h>
34#include <proto/window.h>
35#include <proto/layout.h>
36#include <proto/button.h>
37#include <proto/clicktab.h>
38#include <proto/label.h>
39#include <proto/string.h>
40#include <proto/checkbox.h>
41#include <proto/radiobutton.h>
42#include <proto/getscreenmode.h>
43#include <proto/getfile.h>
44#include <proto/chooser.h>
45#include <proto/integer.h>
46#include <proto/getfont.h>
47#include <classes/window.h>
48#include <images/label.h>
49#include <gadgets/button.h>
50#include <gadgets/clicktab.h>
51#include <gadgets/string.h>
52#include <gadgets/checkbox.h>
53#include <gadgets/radiobutton.h>
54#include <gadgets/getscreenmode.h>
55#include <gadgets/getfile.h>
56#include <gadgets/chooser.h>
57#include <gadgets/integer.h>
58#include <gadgets/getfont.h>
59#include <reaction/reaction.h>
60#include <reaction/reaction_macros.h>
214#define OPTS_LAST LAB_OPTS_LAST
215#define OPTS_MAX_TABS 10
216#define OPTS_MAX_SCREEN 4
217#define OPTS_MAX_THEMEPAGE 3
218#define OPTS_MAX_PROXY 5
219#define OPTS_MAX_NATIVEBM 4
220#define OPTS_MAX_DITHER 4
274 node = AllocClickTabNode(TNA_Text, array[i], TNA_Number, i, TAG_DONE);
277 node = AllocChooserNode(CNA_Text, array[i], TAG_DONE);
281 node = AllocRadioButtonNode(0, RBNA_Labels, array[i], TAG_DONE);
288 }
while (array[i] != 0);
296 if(IsListEmpty((
struct List *)list))
return;
297 node =
GetHead((
struct List *)list);
305 FreeClickTabNode(node);
308 FreeChooserNode(node);
311 FreeRadioButtonNode(node);
317 }
while((node = nnode));
331#ifdef WITH_PDF_EXPORT
527 uint16 screenoptsselected;
528 ULONG screenmodeid = 0;
530 BOOL screenmodedisabled = FALSE, screennamedisabled = FALSE;
531 BOOL proxyhostdisabled = TRUE, proxyauthdisabled = TRUE, proxybypassdisabled = FALSE;
532 BOOL disableanims, acceptlangdisabled = FALSE;
533 BOOL scaleselected =
nsoption_bool(scale_quality), scaledisabled = FALSE;
534 BOOL ditherdisable = TRUE;
535 BOOL download_notify_disabled = FALSE, tab_always_show_disabled = FALSE;
536 BOOL ptr_disable = FALSE;
539 struct TextAttr fontsans, fontserif, fontmono, fontcursive, fontfantasy;
549 if(
LIB_IS_AT_LEAST((
struct Library *)IntuitionBase, 53, 42)) ptr_disable = TRUE;
558 screenoptsselected = 1;
559 screennamedisabled = TRUE;
560 screenmodedisabled = TRUE;
564 screenoptsselected = 2;
565 screenmodedisabled = TRUE;
570 screenoptsselected = 0;
571 screennamedisabled = TRUE;
581 ditherdisable = FALSE;
591 proxyauthdisabled = FALSE;
593 proxyhostdisabled = FALSE;
597 proxybypassdisabled = TRUE;
602 disableanims = FALSE;
610 acceptlangdisabled = TRUE;
612 acceptlangdisabled = FALSE;
614 if(GfxBase->LibNode.lib_Version < 53)
616 scaledisabled = TRUE;
617 scaleselected = FALSE;
620 if(ApplicationBase->lib_Version < 53)
623 download_notify_disabled = TRUE;
627 if(ClickTabBase->lib_Version < 53) {
628 tab_always_show_disabled = TRUE;
637 fontsans.ta_Style = 0;
638 fontserif.ta_Style = 0;
639 fontmono.ta_Style = 0;
640 fontcursive.ta_Style = 0;
641 fontfantasy.ta_Style = 0;
643 fontsans.ta_YSize = 0;
644 fontserif.ta_YSize = 0;
645 fontmono.ta_YSize = 0;
646 fontcursive.ta_YSize = 0;
647 fontfantasy.ta_YSize = 0;
649 fontsans.ta_Flags = 0;
650 fontserif.ta_Flags = 0;
651 fontmono.ta_Flags = 0;
652 fontcursive.ta_Flags = 0;
653 fontfantasy.ta_Flags = 0;
658 if(
gow == NULL)
return;
666 WA_DepthGadget, TRUE,
668 WA_CloseGadget, TRUE,
669 WA_SizeGadget, FALSE,
673 WINDOW_IconifyGadget, FALSE,
674 WINDOW_Position, WPOS_CENTERSCREEN,
675 WA_IDCMP, IDCMP_GADGETUP | IDCMP_CLOSEWINDOW,
691 LAYOUT_SpaceOuter, TRUE,
692 LAYOUT_BevelStyle, BVS_GROUP,
697 STRINGA_TextVal, homepage_url_lc,
721 CHILD_WeightedHeight, 0,
724 LAYOUT_SpaceOuter, TRUE,
725 LAYOUT_BevelStyle, BVS_GROUP,
735 LAYOUT_SpaceOuter, TRUE,
736 LAYOUT_BevelStyle, BVS_GROUP,
741 GA_Disabled, acceptlangdisabled,
756 LAYOUT_SpaceOuter, TRUE,
757 LAYOUT_BevelStyle, BVS_GROUP,
760 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
766 INTEGER_Maximum, 366,
767 INTEGER_Arrows, TRUE,
769 CHILD_WeightedWidth, 0,
774 CHILD_WeightedWidth, 0,
780 LAYOUT_SpaceOuter, TRUE,
781 LAYOUT_BevelStyle, BVS_GROUP,
791 CHILD_WeightedHeight, 0,
793 LAYOUT_SpaceOuter, TRUE,
794 LAYOUT_BevelStyle, BVS_GROUP,
809 CHILD_WeightedHeight, 0,
811 CHILD_WeightedHeight, 0,
819 LAYOUT_SpaceOuter, TRUE,
820 LAYOUT_BevelStyle, BVS_GROUP,
831 RADIOBUTTON_Selected, screenoptsselected,
833 CHILD_WeightedWidth,0,
838 GA_Disabled,screenmodedisabled,
839 GETSCREENMODE_DisplayID,screenmodeid,
840 GETSCREENMODE_MinDepth, 0,
841 GETSCREENMODE_MaxDepth, 32,
846 GA_Disabled,screennamedisabled,
851 CHILD_WeightedHeight,0,
854 CHILD_WeightedHeight,0,
856 LAYOUT_SpaceOuter, TRUE,
857 LAYOUT_BevelStyle, BVS_GROUP,
866 CHILD_WeightedHeight,0,
868 LAYOUT_SpaceOuter, TRUE,
869 LAYOUT_BevelStyle, BVS_GROUP,
875 GETFILE_DrawersOnly, TRUE,
876 GETFILE_ReadOnly, TRUE,
877 GETFILE_FullFileExpand, FALSE,
897 CHILD_WeightedHeight, 0,
899 LAYOUT_SpaceOuter, TRUE,
900 LAYOUT_BevelStyle, BVS_GROUP,
907 GA_Disabled, ptr_disable,
914 GA_Disabled, ptr_disable,
917 CHILD_WeightedHeight,0,
922 CHILD_WeightedHeight, 0,
930 LAYOUT_SpaceOuter, TRUE,
931 LAYOUT_BevelStyle, BVS_GROUP,
942 CHOOSER_Selected, proxytype,
951 GA_Disabled, proxyhostdisabled,
958 GA_Disabled, proxyhostdisabled,
961 INTEGER_Maximum, 65535,
962 INTEGER_Arrows, FALSE,
964 CHILD_WeightedWidth, 0,
969 CHILD_WeightedHeight, 0,
976 GA_Disabled, proxyauthdisabled,
986 GA_Disabled, proxyauthdisabled,
996 GA_Disabled, proxybypassdisabled,
998 STRINGA_BufferPos, 0,
1004 CHILD_WeightedHeight, 0,
1006 LAYOUT_SpaceOuter, TRUE,
1007 LAYOUT_BevelStyle, BVS_GROUP,
1014 INTEGER_Maximum, 99,
1015 INTEGER_Arrows, TRUE,
1017 CHILD_WeightedWidth, 0,
1026 INTEGER_Maximum, 99,
1027 INTEGER_Arrows, TRUE,
1029 CHILD_WeightedWidth, 0,
1036 INTEGER_Number,
nsoption_int(max_cached_fetch_handles),
1038 INTEGER_Maximum, 99,
1039 INTEGER_Arrows, TRUE,
1041 CHILD_WeightedWidth, 0,
1046 CHILD_WeightedHeight, 0,
1048 CHILD_WeightedHeight, 0,
1056 LAYOUT_SpaceOuter, TRUE,
1057 LAYOUT_BevelStyle, BVS_GROUP,
1062 CHOOSER_PopUp, TRUE,
1076 GA_Disabled, ditherdisable,
1077 CHOOSER_PopUp, TRUE,
1090 GA_Disabled, scaledisabled,
1093 GA_Selected, scaleselected,
1096 CHILD_WeightedHeight, 0,
1098 LAYOUT_SpaceOuter, TRUE,
1099 LAYOUT_BevelStyle, BVS_GROUP,
1105 GA_Selected, disableanims,
1108 CHILD_WeightedHeight, 0,
1110 LAYOUT_SpaceOuter, TRUE,
1111 LAYOUT_BevelStyle, BVS_GROUP,
1114 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1119 INTEGER_Minimum, 20,
1120 INTEGER_Maximum, 200,
1121 INTEGER_Arrows, TRUE,
1124 CHILD_WeightedWidth, 0,
1133 CHILD_WeightedHeight, 0,
1135 CHILD_WeightedHeight, 0,
1143 LAYOUT_SpaceOuter, TRUE,
1144 LAYOUT_BevelStyle, BVS_GROUP,
1149 GETFONT_TextAttr, &fontsans,
1159 GETFONT_TextAttr, &fontserif,
1169 GETFONT_TextAttr, &fontmono,
1172 GETFONT_FixedWidthOnly, TRUE,
1180 GETFONT_TextAttr, &fontcursive,
1190 GETFONT_TextAttr, &fontfantasy,
1200 CHOOSER_PopUp, TRUE,
1212 CHILD_WeightedHeight, 0,
1215 LAYOUT_SpaceOuter, TRUE,
1216 LAYOUT_BevelStyle, BVS_GROUP,
1219 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1225 INTEGER_Maximum, 99,
1226 INTEGER_Arrows, TRUE,
1228 CHILD_WeightedWidth, 0,
1237 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1243 INTEGER_Maximum, 99,
1244 INTEGER_Arrows, TRUE,
1246 CHILD_WeightedWidth, 0,
1256 LAYOUT_SpaceOuter, TRUE,
1257 LAYOUT_BevelStyle, BVS_GROUP,
1278 CHILD_WeightedHeight, 0,
1280 CHILD_WeightedHeight, 0,
1288 LAYOUT_SpaceOuter, TRUE,
1289 LAYOUT_BevelStyle, BVS_GROUP,
1292 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1296 INTEGER_Number,
nsoption_int(memory_cache_size) / 1048576,
1298 INTEGER_Maximum, 2048,
1299 INTEGER_Arrows, TRUE,
1301 CHILD_WeightedWidth, 0,
1310 CHILD_WeightedHeight, 0,
1312 LAYOUT_SpaceOuter, TRUE,
1313 LAYOUT_BevelStyle, BVS_GROUP,
1316 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1322 INTEGER_Maximum, 4096,
1323 INTEGER_Arrows, TRUE,
1325 CHILD_WeightedWidth, 0,
1334 CHILD_WeightedHeight, 0,
1336 CHILD_WeightedHeight, 0,
1345 LAYOUT_SpaceOuter, TRUE,
1346 LAYOUT_BevelStyle, BVS_GROUP,
1371 GA_Disabled, tab_always_show_disabled,
1382 CHILD_WeightedHeight, 0,
1390 LAYOUT_SpaceOuter, TRUE,
1391 LAYOUT_BevelStyle, BVS_GROUP,
1404 GA_Disabled, download_notify_disabled,
1416 GETFILE_DrawersOnly, TRUE,
1417 GETFILE_ReadOnly, TRUE,
1418 GETFILE_FullFileExpand, FALSE,
1424 CHILD_WeightedHeight, 0,
1427 LAYOUT_SpaceOuter, TRUE,
1428 LAYOUT_BevelStyle, BVS_GROUP,
1452 CHILD_WeightedHeight, 0,
1454 CHILD_WeightedHeight, 0,
1457 LAYOUT_SpaceOuter, TRUE,
1458 LAYOUT_BevelStyle, BVS_GROUP,
1467 CHILD_WeightedHeight, 0,
1469 LAYOUT_SpaceOuter, TRUE,
1470 LAYOUT_BevelStyle, BVS_GROUP,
1475 CHOOSER_PopUp, TRUE,
1478 CHOOSER_MaxLabels, 40,
1484 CHILD_WeightedHeight, 0,
1486 CHILD_WeightedHeight, 0,
1488 LAYOUT_BevelStyle, BVS_GROUP,
1490 LAYOUT_SpaceOuter, TRUE,
1511 CHILD_WeightedHeight, 0,
1514 CHILD_WeightedHeight, 0,
1519#ifdef WITH_PDF_EXPORT
1523 LAYOUT_SpaceOuter, TRUE,
1524 LAYOUT_BevelStyle, BVS_GROUP,
1527 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1533 INTEGER_Maximum, 99,
1534 INTEGER_Arrows, TRUE,
1536 CHILD_WeightedWidth, 0,
1545 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1551 INTEGER_Maximum, 99,
1552 INTEGER_Arrows, TRUE,
1554 CHILD_WeightedWidth, 0,
1563 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1569 INTEGER_Maximum, 99,
1570 INTEGER_Arrows, TRUE,
1572 CHILD_WeightedWidth, 0,
1581 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1587 INTEGER_Maximum, 99,
1588 INTEGER_Arrows, TRUE,
1590 CHILD_WeightedWidth, 0,
1599 CHILD_WeightedHeight, 0,
1601 LAYOUT_SpaceOuter, TRUE,
1602 LAYOUT_BevelStyle, BVS_GROUP,
1605 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1611 INTEGER_Maximum, 100,
1612 INTEGER_Arrows, TRUE,
1614 CHILD_WeightedWidth, 0,
1623 CHILD_WeightedHeight, 0,
1625 LAYOUT_SpaceOuter, TRUE,
1626 LAYOUT_BevelStyle, BVS_GROUP,
1647 CHILD_WeightedHeight, 0,
1649 LAYOUT_SpaceOuter, TRUE,
1650 LAYOUT_BevelStyle, BVS_GROUP,
1666 CHILD_WeightedHeight, 0,
1668 CHILD_WeightedHeight, 0,
1702 struct TextAttr *tattr;
1704 bool rescan_fonts =
false;
1705 bool old_tab_always_show;
1790 char *modeid = malloc(20);
1791 sprintf(modeid,
"0x%lx",
id);
1796 if ((data == TRUE) && (
nsoption_bool(window_simple_refresh) ==
false)) {
1799 }
else if ((data == FALSE) && (
nsoption_bool(window_simple_refresh) ==
true)) {
1879 tattr = (
struct TextAttr *)data;
1881 if((dot = strrchr(tattr->ta_Name,
'.'))) *dot =
'\0';
1885 tattr = (
struct TextAttr *)data;
1887 if((dot = strrchr(tattr->ta_Name,
'.'))) *dot =
'\0';
1891 tattr = (
struct TextAttr *)data;
1893 if((dot = strrchr(tattr->ta_Name,
'.'))) *dot =
'\0';
1897 tattr = (
struct TextAttr *)data;
1899 if((dot = strrchr(tattr->ta_Name,
'.'))) *dot =
'\0';
1903 tattr = (
struct TextAttr *)data;
1905 if((dot = strrchr(tattr->ta_Name,
'.'))) *dot =
'\0';
1928 if((
nsoption_bool(bitmap_fonts) ==
true) && (data ==
false)) {
2050#ifdef WITH_PDF_EXPORT
2097 if(rescan_fonts ==
true) {
2128 switch(
result & WMHI_CLASSMASK)
2130 case WMHI_CLOSEWINDOW:
2135 case WMHI_GADGETHELP:
2136 if((
result & WMHI_GADGETMASK) == 0) {
2146 switch(
result & WMHI_GADGETMASK)
2165 gow->
win,NULL,STRINGA_TextVal,NETSURF_HOMEPAGE,
2171 gow->
win, NULL, STRINGA_TextVal,
2177 gow->
win, NULL, STRINGA_TextVal,
2178 "about:blank", TAG_DONE);
2183 gow->
win, NULL, GA_Disabled, code, TAG_DONE);
2188 gow->
win, NULL, STRINGA_TextVal,
text, TAG_DONE);
2199 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2201 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2206 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2208 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2213 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2215 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2236 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2238 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2241 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2243 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2245 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2249 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2251 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2254 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2256 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2258 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2264 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2266 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2269 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2271 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2273 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2308 gow->
win, NULL, GA_Disabled, code, TAG_DONE);
2329 list = malloc(
sizeof(
struct List));
2337 node = AllocChooserNode(CNA_Text, name, TAG_DONE);
2338 AddTail(list, node);
2349 if(websearchlist == NULL)
return;
2350 if(IsListEmpty(websearchlist))
return;
2351 node =
GetHead(websearchlist);
2356 FreeChooserNode(node);
2357 }
while((node = nnode));
2359 free(websearchlist);
struct Screen * ami_gui_get_screen(void)
Get a pointer to the screen NetSurf is running on.
nserror ami_gui_win_list_add(void *win, int type, const struct ami_win_event_table *table)
Add a window to the NetSurf window list (to enable event processing)
struct gui_window * ami_gui_get_active_gw(void)
Get a pointer to the gui_window which NetSurf considers to be the current/active one.
STRPTR ami_gui_get_screen_title(void)
Get the string for NetSurf's screen titlebar.
STRPTR ami_locale_langs(int *codeset)
void ami_gui_win_list_remove(void *win)
Remove a window from the NetSurf window list.
struct browser_window * ami_gui_get_browser_window(struct gui_window *gw)
Get browser window from gui_window.
void ami_gui_tabs_toggle_all(void)
struct MsgPort * ami_gui_get_shared_msgport(void)
Get shared message port.
void ami_help_open(ULONG node, struct Screen *screen)
bool ami_plot_screen_is_palettemapped(void)
void ami_update_pointer(struct Window *win, gui_pointer_shape shape)
Browser window creation and manipulation interface.
struct nsurl * browser_window_access_url(const struct browser_window *bw)
Access a browser window's URL.
ssize_t search_web_iterate_providers(ssize_t from, const char **name)
Iterate the search providers, returning their names.
nserror search_web_select_provider(int selection)
Change the currently selected web search provider.
void ami_font_finiscanner(void)
void ami_font_initscanner(bool force, bool save)
void ami_font_savescanner(void)
void ami_file_req_free(void)
void ami_file_req_init(void)
void ami_font_setdevicedpi(int id)
nserror ami_nsoption_write(void)
void ami_utf8_free(char *ptr)
char * ami_to_utf8_easy(const char *string)
char * ami_utf8_easy(const char *string)
static char * download_dir
Current download directory.
@ GID_OPTS_STARTUP_NO_WIN
@ GID_OPTS_FONT_ANTIALIASING
@ GID_OPTS_HOMEPAGE_CURRENT
@ GID_OPTS_HOMEPAGE_DEFAULT
@ GID_OPTS_EXPORT_PASSWORD
@ GID_OPTS_EXPORT_NOIMAGES
@ GID_OPTS_EXPORT_COMPRESS
@ GID_OPTS_HOMEPAGE_BLANK
static CONST_STRPTR ditheropts[OPTS_MAX_DITHER]
@ GRP_OPTS_CONTENTBLOCKING
@ GRP_OPTS_CONTENTLANGUAGE
static CONST_STRPTR proxyopts[OPTS_MAX_PROXY]
static void ami_gui_opts_array_to_list(struct List *list, const char *array[], int type)
static CONST_STRPTR tabs[OPTS_MAX_TABS]
static void ami_gui_opts_close(void *w)
#define OPTS_MAX_THEMEPAGE
static STRPTR screenopts[OPTS_MAX_SCREEN]
static struct ami_gui_opts_window * gow
static void ami_gui_opts_free(struct ami_gui_opts_window *gow)
void ami_gui_opts_websearch_free(struct List *websearchlist)
struct List * ami_gui_opts_websearch(void)
static void ami_gui_opts_use(bool save)
static BOOL ami_gui_opts_event(void *w)
static void ami_gui_opts_setup(struct ami_gui_opts_window *gow)
static CONST_STRPTR nativebmopts[OPTS_MAX_NATIVEBM]
static CONST_STRPTR pagethemeopts[OPTS_MAX_THEMEPAGE]
static const struct ami_win_event_table ami_guiopts_table
static CONST_STRPTR gadlab[OPTS_LAST]
static void ami_gui_opts_free_list(struct List *list, int type)
static struct List * websearch_list
#define OPTS_MAX_NATIVEBM
static CONST_STRPTR fontopts[6]
void ami_gui_opts_open(void)
Interface to platform-specific graphical user interface window operations.
const char * messages_get(const char *key)
Fast lookup of a message by key from the standard Messages hash.
Localised message support (interface).
NetSurf URL handling (interface).
const char * nsurl_access(const nsurl *url)
Access a NetSurf URL object as a string.
char * ASPrintf(const char *fmt,...)
struct Node * GetHead(struct List *list)
ULONG RefreshSetGadgetAttrs(struct Gadget *g, struct Window *w, struct Requester *r, Tag tag1,...)
struct Node * GetSucc(struct Node *node)
#define LIB_IS_AT_LEAST(B, V, R)
#define GETFONT_ScalableOnly
@ PLOT_FONT_FAMILY_SANS_SERIF
core web search facilities interface.
Interface to utility string handling.
Object * objects[GID_OPTS_LAST]
struct List proxyoptslist
struct List nativebmoptslist
struct List pagethemeoptslist
struct List ditheroptslist
struct ami_generic_window w
struct List screenoptslist
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_bool(OPTION, VALUE)
set a boolean option in the default table
#define nsoption_set_charp(OPTION, VALUE)
set string option in default table
#define nsoption_uint(OPTION)
Get the value of an unsigned integer option.
@ OPTION_HTTP_PROXY_AUTH_NONE
@ OPTION_HTTP_PROXY_AUTH_NTLM
@ OPTION_HTTP_PROXY_AUTH_BASIC
#define nsoption_bool(OPTION)
Get the value of a boolean option.
#define nsoption_set_uint(OPTION, VALUE)
set an unsigned integer option in the default table
static nserror text(const struct redraw_context *ctx, const struct plot_font_style *fstyle, int x, int y, const char *text, size_t length)
Text plotting.