3#include "terminalpp/core.hpp"
4#include "terminalpp/element.hpp"
5#include "terminalpp/rectangle.hpp"
11template <
typename TwoDimensionalContainer>
14 tdc[terminalpp::coordinate_type{}][terminalpp::coordinate_type{}]
15 } -> std::convertible_to<terminalpp::element>;
22void for_each_in_region(
25 std::invocable<element &, coordinate_type, coordinate_type>
auto &&callable)
27 for (
auto row = region.
origin_.y_;
31 for (
auto column = region.
origin_.x_;
35 callable(container[column][row], column, row);
Definition for_each_in_region.hpp:12
A class that represents a rectangle in space.
Definition rectangle.hpp:15
terminalpp::extent size_
The size (amount the rectangle extends right and down) of the rectangle.
Definition rectangle.hpp:45
terminalpp::point origin_
The origin (top-left point) of the rectangle.
Definition rectangle.hpp:41