GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
Functions
gp_widget_frame.h File Reference

A frame widget. More...

Go to the source code of this file.

Functions

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.
 

Detailed Description

A frame widget.

Definition in file gp_widget_frame.h.

Function Documentation

◆ 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
labelA frame label.
tattrA text attribute monospace/bold/large etc.
childFrame 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
selfA frame widget.
childA 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
labelA frame label.
titleNew title.