![]() |
Contur 2
Educational OS kernel simulator
|
FTXUI off-screen renderer implementing IRenderer. More...
#include <ftxui_renderer.h>
Public Member Functions | |
| FtxuiRenderer (int width=120, int height=40) | |
| Constructs renderer with given terminal dimensions. | |
| ~FtxuiRenderer () override | |
| Destroys renderer. | |
| FtxuiRenderer (const FtxuiRenderer &)=delete | |
| FtxuiRenderer & | operator= (const FtxuiRenderer &)=delete |
| FtxuiRenderer (FtxuiRenderer &&) noexcept | |
| FtxuiRenderer & | operator= (FtxuiRenderer &&) noexcept |
| Result< void > | render (const TuiSnapshot &snapshot) override |
| Renders snapshot to the internal screen buffer. | |
| void | clear () override |
| Clears the internal screen buffer. | |
| 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. | |
| int | height () const noexcept |
| Screen height configured at construction. | |
| Public Member Functions inherited from contur::IRenderer | |
| virtual | ~IRenderer ()=default |
| Virtual destructor for interface-safe polymorphic cleanup. | |
Private Attributes | |
| std::unique_ptr< Impl > | impl_ |
FTXUI off-screen renderer implementing IRenderer.
Renders a TuiSnapshot to an in-memory buffer using the FTXUI DOM API. Consumers can retrieve the rendered text via lastRendered().
Definition at line 24 of file ftxui_renderer.h.
|
explicit |
Constructs renderer with given terminal dimensions.
References height(), and width().
Referenced by FtxuiRenderer(), FtxuiRenderer(), operator=(), and operator=().
|
override |
Destroys renderer.
|
delete |
References FtxuiRenderer().
|
noexcept |
References FtxuiRenderer().
|
overridevirtual |
Clears the internal screen buffer.
Implements contur::IRenderer.
References clear().
Referenced by clear().
|
nodiscardnoexcept |
Returns whether the buffer currently holds rendered content.
References hasContent().
Referenced by hasContent().
|
nodiscardnoexcept |
Screen height configured at construction.
References height().
Referenced by FtxuiRenderer(), and height().
|
nodiscardnoexcept |
Returns the last rendered screen as a plain string.
References lastRendered().
Referenced by lastRendered().
|
delete |
References FtxuiRenderer().
|
noexcept |
References FtxuiRenderer().
|
nodiscardoverridevirtual |
Renders snapshot to the internal screen buffer.
Implements contur::IRenderer.
References render().
Referenced by render().
|
nodiscardnoexcept |
Screen width configured at construction.
References width().
Referenced by FtxuiRenderer(), and width().
|
private |
Definition at line 61 of file ftxui_renderer.h.