Add option to have button without border. (#101)

This commit is contained in:
Arthur Sonzogni
2021-05-18 17:49:53 +02:00
committed by GitHub
parent ab9d6feaa5
commit 7b88656e25
4 changed files with 17 additions and 9 deletions

View File

@@ -22,7 +22,9 @@ std::shared_ptr<T> Make(Args&&... args) {
return std::make_shared<T>(args...);
}
Component Button(ConstStringRef label, std::function<void()> on_click);
Component Button(ConstStringRef label,
std::function<void()> on_click,
bool border = true);
Component Checkbox(ConstStringRef label, bool* checked);
Component Input(StringRef content, ConstStringRef placeholder);
Component Menu(const std::vector<std::wstring>* entries, int* selected_);