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 a frame child
gp_widget *gp_widget_frame_put(gp_widget *self, gp_widget *child);

Returns old frame child.

Table 1. Frame JSON attributes
Attribute Type Default Description

label

string

Frame label

tattr

tattr

NULL

Text attribute, e.g. bold.

widget

Frame child widget

Table 2. Frame widget events
Widget event value Description