mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-23 03:10:01 +08:00
nit: Remove useless ';' and ',' (#606)
Taken out of: https://github.com/ArthurSonzogni/FTXUI/pull/600 Co-authored-by: LostInCompilation <12819635+LostInCompilation@users.noreply.github.com>
This commit is contained in:
parent
0b57be9c49
commit
422c30cd34
@ -28,7 +28,7 @@ Component Dropdown(ConstStringListRef entries, int* selected) {
|
|||||||
}
|
}
|
||||||
return hbox({prefix, t});
|
return hbox({prefix, t});
|
||||||
};
|
};
|
||||||
checkbox_ = Checkbox(&title_, &show_, option),
|
checkbox_ = Checkbox(&title_, &show_, option);
|
||||||
radiobox_ = Radiobox(entries_, selected_);
|
radiobox_ = Radiobox(entries_, selected_);
|
||||||
|
|
||||||
Add(Container::Vertical({
|
Add(Container::Vertical({
|
||||||
|
@ -93,7 +93,7 @@ class ResizableSplitBase : public ComponentBase {
|
|||||||
options_->back->Render() | xflex,
|
options_->back->Render() | xflex,
|
||||||
}) |
|
}) |
|
||||||
reflect(box_);
|
reflect(box_);
|
||||||
};
|
}
|
||||||
|
|
||||||
Element RenderRight() {
|
Element RenderRight() {
|
||||||
return hbox({
|
return hbox({
|
||||||
@ -103,7 +103,7 @@ class ResizableSplitBase : public ComponentBase {
|
|||||||
size(WIDTH, EQUAL, options_->main_size()),
|
size(WIDTH, EQUAL, options_->main_size()),
|
||||||
}) |
|
}) |
|
||||||
reflect(box_);
|
reflect(box_);
|
||||||
};
|
}
|
||||||
|
|
||||||
Element RenderTop() {
|
Element RenderTop() {
|
||||||
return vbox({
|
return vbox({
|
||||||
@ -113,7 +113,7 @@ class ResizableSplitBase : public ComponentBase {
|
|||||||
options_->back->Render() | yflex,
|
options_->back->Render() | yflex,
|
||||||
}) |
|
}) |
|
||||||
reflect(box_);
|
reflect(box_);
|
||||||
};
|
}
|
||||||
|
|
||||||
Element RenderBottom() {
|
Element RenderBottom() {
|
||||||
return vbox({
|
return vbox({
|
||||||
@ -123,7 +123,7 @@ class ResizableSplitBase : public ComponentBase {
|
|||||||
size(HEIGHT, EQUAL, options_->main_size()),
|
size(HEIGHT, EQUAL, options_->main_size()),
|
||||||
}) |
|
}) |
|
||||||
reflect(box_);
|
reflect(box_);
|
||||||
};
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ref<ResizableSplitOption> options_;
|
Ref<ResizableSplitOption> options_;
|
||||||
|
@ -27,7 +27,7 @@ class Select : public Node {
|
|||||||
selected_box.x_max = requirement_.min_x - 1;
|
selected_box.x_max = requirement_.min_x - 1;
|
||||||
selected_box.y_max = requirement_.min_y - 1;
|
selected_box.y_max = requirement_.min_y - 1;
|
||||||
requirement_.selection = Requirement::SELECTED;
|
requirement_.selection = Requirement::SELECTED;
|
||||||
};
|
}
|
||||||
|
|
||||||
void SetBox(Box box) override {
|
void SetBox(Box box) override {
|
||||||
Node::SetBox(box);
|
Node::SetBox(box);
|
||||||
@ -48,7 +48,7 @@ class Focus : public Select {
|
|||||||
void ComputeRequirement() override {
|
void ComputeRequirement() override {
|
||||||
Select::ComputeRequirement();
|
Select::ComputeRequirement();
|
||||||
requirement_.selection = Requirement::FOCUSED;
|
requirement_.selection = Requirement::FOCUSED;
|
||||||
};
|
}
|
||||||
|
|
||||||
void Render(Screen& screen) override {
|
void Render(Screen& screen) override {
|
||||||
Select::Render(screen);
|
Select::Render(screen);
|
||||||
|
@ -64,7 +64,7 @@ Element vscroll_indicator(Element child) {
|
|||||||
screen.PixelAt(x, y) = Pixel();
|
screen.PixelAt(x, y) = Pixel();
|
||||||
screen.PixelAt(x, y).character = c;
|
screen.PixelAt(x, y).character = c;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
return std::make_shared<Impl>(std::move(child));
|
return std::make_shared<Impl>(std::move(child));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user