Add option for input.

This commit is contained in:
ArthurSonzogni
2021-07-08 00:01:42 +02:00
committed by Arthur Sonzogni
parent 2b7daf061f
commit 33b3d1c7ab
5 changed files with 33 additions and 22 deletions

View File

@@ -30,7 +30,9 @@ Component Button(ConstStringRef label,
Component Checkbox(ConstStringRef label,
bool* checked,
ConstRef<CheckboxOption> option = {});
Component Input(StringRef content, ConstStringRef placeholder);
Component Input(StringRef content,
ConstStringRef placeholder,
ConstRef<InputOption> option = {});
Component Menu(const std::vector<std::wstring>* entries,
int* selected_,
ConstRef<MenuOption> = {});