Add support for password for input element. (#158)

This fixes:
https://github.com/ArthurSonzogni/FTXUI/issues/139

CC:@Creapermann
This commit is contained in:
Arthur Sonzogni
2021-07-17 10:36:50 +02:00
committed by GitHub
parent 5ee4ec40de
commit b3a333b417
5 changed files with 61 additions and 19 deletions

View File

@@ -50,6 +50,9 @@ struct InputOption {
/// Called when the user presses enter.
std::function<void()> on_enter = [] {};
/// Obscure the input content using '*'.
bool password = false;
Ref<int> cursor_position = 0;
};

View File

@@ -45,9 +45,7 @@ struct Pixel {
/// @brief Define how the Screen's dimensions should look like.
/// @ingroup screen
struct Dimension {
/// coucou
static Dimension Fixed(int);
/// @brief coucou
static Dimension Fit(Element&);
static Dimension Full();