mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-16 08:04:21 +08:00
Add support for password for input element. (#158)
This fixes: https://github.com/ArthurSonzogni/FTXUI/issues/139 CC:@Creapermann
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user