54 [[nodiscard]]
int width() const noexcept;
57 [[nodiscard]]
int height() const noexcept;
void clear() override
Clears the internal screen buffer.
FtxuiRenderer & operator=(const FtxuiRenderer &)=delete
FtxuiRenderer(int width=120, int height=40)
Constructs renderer with given terminal dimensions.
int height() const noexcept
Screen height configured at construction.
FtxuiRenderer(FtxuiRenderer &&) noexcept
std::unique_ptr< Impl > impl_
~FtxuiRenderer() override
Destroys renderer.
Result< void > render(const TuiSnapshot &snapshot) override
Renders snapshot to the internal screen buffer.
FtxuiRenderer(const FtxuiRenderer &)=delete
const std::string & lastRendered() const noexcept
Returns the last rendered screen as a plain string.
bool hasContent() const noexcept
Returns whether the buffer currently holds rendered content.
int width() const noexcept
Screen width configured at construction.
Renderer contract for painting a full TUI snapshot.
A result type that holds either a success value of type T or an ErrorCode.
Backend-agnostic renderer contract for TUI MVC view boundary.
Top-level immutable model snapshot consumed by TUI controller/views.