A frame widget.
More...
Go to the source code of this file.
|
gp_widget * | gp_widget_frame_new (const char *title, gp_widget_tattr tattr, gp_widget *child) |
| Allocates and initializes a new frame widget.
|
|
void | gp_widget_frame_title_set (gp_widget *self, const char *title) |
| Sets a frame title.
|
|
gp_widget * | gp_widget_frame_put (gp_widget *self, gp_widget *child) |
| Puts a child widget into a frame widget.
|
|
A frame widget.
Definition in file gp_widget_frame.h.
◆ gp_widget_frame_new()
gp_widget * gp_widget_frame_new |
( |
const char * |
title, |
|
|
gp_widget_tattr |
tattr, |
|
|
gp_widget * |
child |
|
) |
| |
Allocates and initializes a new frame widget.
- Parameters
-
label | A frame label. |
tattr | A text attribute monospace/bold/large etc. |
child | Frame widget child widget. |
- Returns
- A frame widget.
◆ gp_widget_frame_put()
gp_widget * gp_widget_frame_put |
( |
gp_widget * |
self, |
|
|
gp_widget * |
child |
|
) |
| |
Puts a child widget into a frame widget.
- Parameters
-
self | A frame widget. |
child | A child widget. |
- Returns
- Returns previous frame widget child or NULL if frame had no child.
◆ gp_widget_frame_title_set()
void gp_widget_frame_title_set |
( |
gp_widget * |
self, |
|
|
const char * |
title |
|
) |
| |
Sets a frame title.
- Parameters
-
label | A frame label. |
title | New title. |