Retry only for https protocol
[elinks.git] / src / document / format.h
blob1c824f432988e73f5949b061e93e9456213605fa
1 #ifndef EL__DOCUMENT_FORMAT_H
2 #define EL__DOCUMENT_FORMAT_H
4 #include "util/color.h"
6 struct document_options;
7 struct screen_char;
10 enum text_style_format {
11 AT_BOLD = 1,
12 AT_ITALIC = 2,
13 AT_UNDERLINE = 4,
14 AT_FIXED = 8,
15 AT_GRAPHICS = 16,
16 AT_PREFORMATTED = 32,
18 /* AT_NO_ENTITIES means the parser has already expanded
19 * entities and numeric character references, so the put_chars
20 * function of the renderer must not do that again. */
21 AT_NO_ENTITIES = 64,
24 struct text_style_color {
25 color_T foreground;
26 color_T background;
29 struct text_style {
30 enum text_style_format attr;
31 struct text_style_color color;
34 #define INIT_TEXT_STYLE(attr, fg, bg) { attr, {fg, bg}}
36 void get_screen_char_template(struct screen_char *template_, struct document_options *options, struct text_style style);
38 #endif