5 Struct N_GUI_SUGGEST_SINK
gullradriel edited this page 2026-10-09 00:55:18 +02:00

N_GUI_SUGGEST_SINK

handle textarea key input. More...

Public Attributes

Name
N_GUI_TEXTAREA_DATA * td
the field being completed

Detailed Description

struct N_GUI_SUGGEST_SINK;

handle textarea key input.

what a suggestion provider writes its answers into.

Returns 1 if the event was consumed, 0 if it should be passed through (e.g. ENTER in single-line mode falls through to button keybinds).

what n_gui_suggest_add() writes through. The widget's own data, behind a handle, so a provider can add entries and can do nothing else.

Opaque on purpose: the widget owns the storage, decides how much of it there is, and stops taking entries when it is full, so a provider cannot overrun anything by answering generously.

Public Attributes Documentation

variable td

N_GUI_TEXTAREA_DATA * td;

the field being completed