mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
09cf904814
It partially includes changes made in following commits: document/html: struct text_attrib_style -> struct text_style commite133941206
document: struct format_attr -> struct text_style_format commit070d335796
document: Unify text style -> screen attribute handling commitb66d2bec67
document: Move text_style-related stuff to dedicated format.* commitdb9431465f
29 lines
477 B
C
29 lines
477 B
C
#ifndef EL__DOCUMENT_FORMAT_H
|
|
#define EL__DOCUMENT_FORMAT_H
|
|
|
|
#include "util/color.h"
|
|
|
|
struct document_options;
|
|
struct screen_char;
|
|
|
|
|
|
enum text_style_format {
|
|
AT_BOLD = 1,
|
|
AT_ITALIC = 2,
|
|
AT_UNDERLINE = 4,
|
|
AT_FIXED = 8,
|
|
AT_GRAPHICS = 16,
|
|
AT_PREFORMATTED = 32,
|
|
};
|
|
|
|
struct text_style {
|
|
enum text_style_format attr;
|
|
color_T fg;
|
|
color_T bg;
|
|
};
|
|
|
|
void get_screen_char_template(struct screen_char *template, struct document_options *options, struct text_style style);
|
|
|
|
#endif
|
|
|