1 #ifndef BLOBS_UI_PANEL_HPP_
2 #define BLOBS_UI_PANEL_HPP_
21 using Children_t = std::vector<std::unique_ptr<Widget>>;
28 // panel takes ownership
31 Panel *Reserve(int n) { widgets.reserve(n); return this; }
32 const Children_t &Children() const noexcept { return widgets; }
34 Panel *Background(const glm::vec4 &);
35 Panel *Padding(const glm::vec2 &);
36 Panel *Spacing(float);
37 Panel *Direction(Dir);
39 glm::vec2 Size() override;
41 void Draw(app::Assets &, graphics::Viewport &) noexcept override;