Renderer
Renderer
Section titled “Renderer”Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
void | renderTree | Recursively renders widget tree into buffer. |
void | renderOverlays | Renders all overlays on top of the main tree. |
void | present | Optimized terminal presentation with diff-based updates. |
void | resize | Resize internal buffers to match terminal size. |
renderTree
Section titled “renderTree”void renderTree(core::Widget & root, Buffer & buf)Recursively renders widget tree into buffer.
renderOverlays
Section titled “renderOverlays”void renderOverlays(Buffer & buf)Renders all overlays on top of the main tree.
present
Section titled “present”void present(const Buffer & buf, Terminal & terminal)Optimized terminal presentation with diff-based updates.
resize
Section titled “resize”void resize(int width, int height)Resize internal buffers to match terminal size.
Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
Buffer | previousBuffer | |
core::Color | lastFg | |
core::Color | lastBg | |
bool | lastBold | |
bool | lastUnderline |
previousBuffer
Section titled “previousBuffer”Buffer previousBuffer {0, 0}lastFg
Section titled “lastFg”core::Color lastFg {255, 255, 255}lastBg
Section titled “lastBg”core::Color lastBg {0, 0, 0}lastBold
Section titled “lastBold”bool lastBold = falselastUnderline
Section titled “lastUnderline”bool lastUnderline = falsePrivate Methods
Section titled “Private Methods”| Return | Name | Description |
|---|---|---|
void | renderWidget |
renderWidget
Section titled “renderWidget”void renderWidget(core::Widget & widget, Buffer & buf)