Skip to content

Renderer

ReturnNameDescription
voidrenderTreeRecursively renders widget tree into buffer.
voidrenderOverlaysRenders all overlays on top of the main tree.
voidpresentOptimized terminal presentation with diff-based updates.
voidresizeResize internal buffers to match terminal size.

void renderTree(core::Widget & root, Buffer & buf)

Recursively renders widget tree into buffer.


void renderOverlays(Buffer & buf)

Renders all overlays on top of the main tree.


void present(const Buffer & buf, Terminal & terminal)

Optimized terminal presentation with diff-based updates.


void resize(int width, int height)

Resize internal buffers to match terminal size.

ReturnNameDescription
BufferpreviousBuffer
core::ColorlastFg
core::ColorlastBg
boollastBold
boollastUnderline

Buffer previousBuffer {0, 0}

core::Color lastFg {255, 255, 255}

core::Color lastBg {0, 0, 0}

bool lastBold = false

bool lastUnderline = false
ReturnNameDescription
voidrenderWidget

void renderWidget(core::Widget & widget, Buffer & buf)