ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
ui_popup_t Struct Reference

When code needs to work with ui popup, it keeps title, lines, line_count, footer here instead of scattering it across globals. Initialization establishes the handles and sizes; teardown must release any allocation, lock, thread, or callback context recorded in those fields. More...

#include <include/ascii-chat/ui/popup.h>

Data Fields

const char * title
const char *const * lines
size_t line_count
const char * footer
int minimum_width
int top_margin

Detailed Description

When code needs to work with ui popup, it keeps title, lines, line_count, footer here instead of scattering it across globals. Initialization establishes the handles and sizes; teardown must release any allocation, lock, thread, or callback context recorded in those fields.

A compact modal drawn over an already-rendered terminal frame.

Definition at line 23 of file popup.h.

Field Documentation

◆ footer

const char* ui_popup_t::footer

Definition at line 27 of file popup.h.

Referenced by ui_popup_render().

◆ line_count

size_t ui_popup_t::line_count

Definition at line 26 of file popup.h.

Referenced by ui_popup_render().

◆ lines

const char* const* ui_popup_t::lines

Definition at line 25 of file popup.h.

Referenced by ui_popup_render().

◆ minimum_width

int ui_popup_t::minimum_width

Definition at line 28 of file popup.h.

Referenced by ui_popup_render().

◆ title

const char* ui_popup_t::title

Definition at line 24 of file popup.h.

Referenced by ui_popup_render().

◆ top_margin

int ui_popup_t::top_margin

Definition at line 29 of file popup.h.

Referenced by ui_popup_render().


The documentation for this struct was generated from the following file: