31 Impl(
Element child,
float x,
float y)
34 void ComputeRequirement()
override {
35 NodeDecorator::ComputeRequirement();
36 requirement_.selection = Requirement::Selection::NORMAL;
38 Box& box = requirement_.selected_box;
39 box.
x_min = requirement_.min_x * x_;
40 box.
y_min = requirement_.min_y * y_;
41 box.
x_max = requirement_.min_x * x_;
42 box.
y_max = requirement_.min_y * y_;
51 return std::make_shared<Impl>(std::move(child), x, y);