Navigation C API Pages Python bindings Applications

Frame widget

Frame is a widget that visually groups a set of widgets.

A frame widget

Frame widget

Frame attributes can be accessed as widget->frame.

Frame widget constructor
gp_widget *gp_widget_frame_new(const char *label, gp_widget_tattr tattr, gp_widget *child);
Sets frame child
gp_widget *gp_widget_frame_put(gp_widget *self, gp_widget *child);

Returns old frame child.

Sets frame title
void gp_widget_frame_title_set(gp_widget *self, const char *title);
Table 1. Frame JSON attributes
Attribute Type Default Description

title

string

Frame title

tattr

tattr

"bold"

Text attribute, e.g. bold.

widget

Frame child widget

Table 2. Frame widget events
Widget event value Description