File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -27,3 +27,17 @@ Hides the cursor.
2727
2828Clears the screen. Useful when not enabling an alt screen (which will be cleared
2929by default).
30+
31+ ## ` full_screen ` function
32+
33+ As a convenience it's possible to call ` TuiBackend::full_screen() ` .
34+ This is the same as writing:
35+ ``` rust
36+ let mut backend = Self :: builder ()
37+ . enable_alt_screen ()
38+ . enable_raw_mode ()
39+ . hide_cursor ()
40+ . finish ()
41+ . unwrap ();
42+ backend . finalize ();
43+ ```
Original file line number Diff line number Diff line change @@ -70,6 +70,20 @@ text greetings[to_int(true)]
7070
7171Will output: "Hi".
7272
73+ ## ` to_float(arg) `
74+
75+ Try to convert any value to a floating point number.
76+
77+ Boolean ` true ` will convert to ` 1.0 ` , and ` false ` will convert to ` 0.0 ` .
78+
79+ ### Example
80+
81+ ```
82+ text to_float(123)
83+ ```
84+
85+ Will output: "123".
86+
7387## ` round(number, decimal_count=0) `
7488
7589Round a floating point value.
You can’t perform that action at this time.
0 commit comments