Skip to content
Welcome to the new CppUtils documentation!
explicit Layout::Layout( const CppUtils::Container::Size2<>& size = {0, 0}, Direction direction = Direction::Column, JustifyContent justifyContent = JustifyContent::Start, AlignItems alignItems = AlignItems::Start);
Layout::~Layout() noexcept override;
template <std::derived_from< Element > T>
auto Layout::addWidget(this auto&& self [[clang::lifetimebound, msvc::lifetimebound]], std::unique_ptr<T> widget) -> T&;
auto Layout::setDirection(this auto&& self, Direction direction) noexcept -> decltype(auto);
[[nodiscard]] auto Layout::getDirection() const noexcept -> Direction;
auto Layout::setJustifyContent(this auto&& self, JustifyContent justifyContent) noexcept -> decltype(auto);
[[nodiscard]] auto Layout::getJustifyContent() const noexcept -> JustifyContent;
auto Layout::setAlignItems(this auto&& self, AlignItems alignItems) noexcept -> decltype(auto);
[[nodiscard]] auto Layout::getAlignItems() const noexcept -> AlignItems;
auto Layout::onMouseEvent(const Mouse::Event& event) -> bool override;
auto Layout::draw(WritableAreaView& view) noexcept -> void override;