Add Blink. Refactor examples.

This commit is contained in:
Arthur Sonzogni
2019-01-02 22:33:59 +01:00
parent 20eaeae4c3
commit 13e04176a4
32 changed files with 122 additions and 116 deletions

View File

@@ -25,6 +25,7 @@ It declares the following set of elements:
Element vbox(Children);
Element hbox(Children);
Element flex();
Element flex(Element);
// --- Widget --
Element text(std::wstring text);
@@ -33,24 +34,28 @@ Element gauge(float ratio);
Element frame(Child);
Element frame(Child title, Child content);
// -- Decorator (Style) ---
// -- Style ---
Element bold(Element);
Element dim(Element);
Element inverted(Element);
Element underlined(Element);
Element color(Color,Element);
Element bgcolor(Element);
Element blink(Element);
Element color(Color, Element);
Element bgcolor(Color, Element);
// --- Decorator ---
// --- Util ---
Element hcenter(Element);
Element vcenter(Element);
Element center(Element);
Element flex(Element);
// --- Util ---
Element nothing(Element element);
~~~
### Style
A terminal console can usually display colored text and colored background.
The text can also have different effects: bold, dim, underlined, inverted.
The text can also have different effects: bold, dim, underlined, inverted,
blink.
~~~cpp
Element bold(Element);
@@ -164,5 +169,8 @@ frame(gauge(0.5))
## Components.
### Input
TODO(arthursonzogni): Add Video
### Menu
TODO(arthursonzogni): Add Video
### Toggle.
TODO(arthursonzogni): Add video