#ifndef BWIDGETS_ALIGNED_LAYOUT_HPP #define BWIDGETS_ALIGNED_LAYOUT_HPP #include namespace bwidgets { class AlignedLayout final : public Layout { private: void _update_layout(const SDL_Rect&) noexcept override; public: enum struct Alignment { HORIZONTAL, VERTICAL } alignment; AlignedLayout(Alignment align) : alignment(align) {} [[nodiscard]] auto size() const noexcept -> Size override; }; } #endif