mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-28 16:29:34 +08:00
Add documentation for options.
This commit is contained in:

committed by
Arthur Sonzogni

parent
fac373494d
commit
f53dc139e9
@@ -57,9 +57,9 @@ CheckboxBase::CheckboxBase(ConstStringRef label,
|
||||
|
||||
Element CheckboxBase::Render() {
|
||||
bool is_focused = Focused();
|
||||
auto style = is_focused ? option_->focused_style : option_->unfocused_style;
|
||||
auto style = is_focused ? option_->style_focused : option_->style_unfocused;
|
||||
auto focus_management = is_focused ? focus : *state_ ? select : nothing;
|
||||
return hbox(text(*state_ ? option_->checked : option_->unchecked),
|
||||
return hbox(text(*state_ ? option_->style_checked : option_->style_unchecked),
|
||||
text(*label_) | style | focus_management) |
|
||||
reflect(box_);
|
||||
}
|
||||
|
Reference in New Issue
Block a user