Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3584 sourcerer 1
/*
2
 * Copyright 2008, 2010 Daniel Silverstone 
3
 *
4
 * This file is part of NetSurf, http://www.netsurf-browser.org/
5
 *
6
 * NetSurf is free software; you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation; version 2 of the License.
9
 *
10
 * NetSurf is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program.  If not, see .
17
 */
18
 
19
#ifndef _NETSURF_DESKTOP_OPTIONS_INCLUDING_
20
#error "Frontend options header cannot be included directly"
21
#endif
22
 
23
#ifndef _NETSURF_FRAMEBUFFER_OPTIONS_H_
24
#define _NETSURF_FRAMEBUFFER_OPTIONS_H_
25
 
26
#define NSOPTION_EXTRA_DEFINE						\
27
	/* surface options */						\
28
	int fb_depth;							\
29
	int fb_refresh;							\
30
	char *fb_device;						\
31
	char *fb_input_devpath;						\
32
	char *fb_input_glob;						\
33
									\
34
	/* toolkit options */						\
35
	int fb_furniture_size; /**< toolkit furniture size */		\
36
	int fb_toolbar_size; /**< toolbar furniture size */		\
37
	char *fb_toolbar_layout; /**< toolbar layout */			\
38
	bool fb_osk; /**< enable on screen keyboard */			\
39
									\
40
	/* font options */						\
41
	bool fb_font_monochrome; /**< render font monochrome */		\
42
	int fb_font_cachesize; /**< size of font glyph cache in kilobytes. */ \
43
									\
44
	char *fb_face_sans_serif; /**< default sans face */		\
45
	char *fb_face_sans_serif_bold; /**< bold sans face */		\
46
	char *fb_face_sans_serif_italic; /**< bold sans face */		\
47
	char *fb_face_sans_serif_italic_bold; /**< bold sans face */	\
48
									\
49
	char *fb_face_serif; /**< serif face */				\
50
	char *fb_face_serif_bold; /**< bold serif face */		\
51
									\
52
	char *fb_face_monospace; /**< monospace face */			\
53
	char *fb_face_monospace_bold; /**< bold monospace face */	\
54
									\
55
	char *fb_face_cursive; /**< cursive face */			\
56
	char *fb_face_fantasy /**< fantasy face */
57
 
58
#define NSOPTION_EXTRA_DEFAULTS				\
59
	.fb_depth = 32,					\
60
	.fb_refresh = 70,				\
61
	.fb_device = NULL,				\
62
	.fb_input_devpath = NULL,			\
63
	.fb_input_glob = NULL,				\
64
	.fb_furniture_size = 18,			\
65
	.fb_toolbar_size = 30,				\
66
	.fb_toolbar_layout = NULL,				\
67
	.fb_osk = false,				\
68
	.fb_font_monochrome = false,			\
69
	.fb_font_cachesize = 2048,			\
70
	.fb_face_sans_serif = NULL,			\
71
	.fb_face_sans_serif_bold = NULL,		\
72
	.fb_face_sans_serif_italic = NULL,		\
73
	.fb_face_sans_serif_italic_bold = NULL,		\
74
	.fb_face_serif = NULL,				\
75
	.fb_face_serif_bold = NULL,			\
76
	.fb_face_monospace = NULL,			\
77
	.fb_face_monospace_bold = NULL,			\
78
	.fb_face_cursive = NULL,			\
79
	.fb_face_fantasy = NULL
80
 
81
#define NSOPTION_EXTRA_TABLE						\
82
	{ "fb_depth", OPTION_INTEGER, &nsoptions.fb_depth },		\
83
	{ "fb_refresh", OPTION_INTEGER, &nsoptions.fb_refresh },	\
84
	{ "fb_device", OPTION_STRING, &nsoptions.fb_device },		\
85
	{ "fb_input_devpath", OPTION_STRING, &nsoptions.fb_input_devpath }, \
86
	{ "fb_input_glob", OPTION_STRING, &nsoptions.fb_input_glob },	\
87
	{ "fb_furniture_size", OPTION_INTEGER, &nsoptions.fb_furniture_size }, \
88
	{ "fb_toolbar_size", OPTION_INTEGER, &nsoptions.fb_toolbar_size }, \
89
	{ "fb_toolbar_layout", OPTION_STRING, &nsoptions.fb_toolbar_layout }, \
90
	{ "fb_osk", OPTION_BOOL, &nsoptions.fb_osk },			\
91
	{ "fb_font_monochrome", OPTION_BOOL, &nsoptions.fb_font_monochrome }, \
92
	{ "fb_font_cachesize", OPTION_INTEGER, &nsoptions.fb_font_cachesize }, \
93
	{ "fb_face_sans_serif", OPTION_STRING, &nsoptions.fb_face_sans_serif }, \
94
	{ "fb_face_sans_serif_bold", OPTION_STRING, &nsoptions.fb_face_sans_serif_bold }, \
95
	{ "fb_face_sans_serif_italic", OPTION_STRING, &nsoptions.fb_face_sans_serif_italic }, \
96
	{ "fb_face_sans_serif_italic_bold", OPTION_STRING, &nsoptions.fb_face_sans_serif_italic_bold }, \
97
	{ "fb_face_serif", OPTION_STRING, &nsoptions.fb_face_serif },	\
98
	{ "fb_serif_bold", OPTION_STRING, &nsoptions.fb_face_serif_bold }, \
99
	{ "fb_face_monospace", OPTION_STRING, &nsoptions.fb_face_monospace }, \
100
	{ "fb_face_monospace_bold", OPTION_STRING, &nsoptions.fb_face_monospace_bold }, \
101
	{ "fb_face_cursive", OPTION_STRING, &nsoptions.fb_face_cursive }, \
102
	{ "fb_face_fantasy", OPTION_STRING, &nsoptions.fb_face_fantasy }
103
 
104
#endif
105
 
106
/*
107
 * Local Variables:
108
 * c-basic-offset:8
109
 * End:
110
 */