Feature: strikethrough and underlinedDouble decorator. (#561)

This resolves:
https://github.com/ArthurSonzogni/FTXUI/issues/560
This commit is contained in:
Arthur Sonzogni
2023-01-22 11:02:27 +01:00
committed by GitHub
parent 350dcac032
commit 6fe8310321
13 changed files with 172 additions and 13 deletions

View File

@@ -83,7 +83,9 @@ Element bold(Element);
Element dim(Element);
Element inverted(Element);
Element underlined(Element);
Element underlinedDouble(Element);
Element blink(Element);
Element strikethrough(Element);
Decorator color(Color);
Decorator bgcolor(Color);
Element color(Color, Element);

View File

@@ -30,6 +30,8 @@ struct Pixel {
bool dim : 1;
bool inverted : 1;
bool underlined : 1;
bool underlined_double : 1;
bool strikethrough : 1;
bool automerge : 1;
Pixel()
@@ -38,6 +40,8 @@ struct Pixel {
dim(false),
inverted(false),
underlined(false),
underlined_double(false),
strikethrough(false),
automerge(false) {}
};