mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-29 16:39:34 +08:00
Add Blink. Refactor examples.
This commit is contained in:
20
tutorial.md
20
tutorial.md
@@ -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
|
||||
|
Reference in New Issue
Block a user