Aller au contenu
Bienvenue sur la nouvelle documentation de CppUtils !
Area::Area(const Container::Size2<>& size, const Viewport& viewport = {{0, 0}, {0, 0}});

virtual Area::~Area() noexcept override;

template <std::derived_from< Widget > T>
auto Area::addWidget(this auto&& self [[clang::lifetimebound, msvc::lifetimebound]], std::unique_ptr<T> widget) -> T&;

auto Area::setViewport(const Viewport& viewport) noexcept -> void;

[[nodiscard]] auto Area::getSize() const noexcept -> Container::Size2<> override;

[[nodiscard]] auto Area::getViewport(this auto&& self [[clang::lifetimebound, msvc::lifetimebound]]) noexcept -> decltype(auto);

[[nodiscard]] auto Area::getWritableView(this auto&& self [[clang::lifetimebound, msvc::lifetimebound]], std::optional<Viewport> viewport = std::nullopt) -> WritableAreaView;

auto Area::draw(WritableAreaView& view) noexcept -> void override;

auto Area::onMouseEvent(const Mouse::Event& event) -> bool override;

[[nodiscard]] auto Area::getBuffer(this auto&& self [[clang::lifetimebound, msvc::lifetimebound]]) noexcept -> decltype(auto);