Backport Pasky's changes concerning text_style-related stuff.
[elinks.git] / src / document / format.h
blobc38d96d818d0cdfefd9a1e0ecf1e8293c47ad85b
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,
19 struct text_style {
20 enum text_style_format attr;
21 color_T fg;
22 color_T bg;
25 void get_screen_char_template(struct screen_char *template, struct document_options *options, struct text_style style);
27 #endif