GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
An overlay widget. More...
Go to the source code of this file.
Functions | |
gp_widget * | gp_widget_overlay_new (unsigned int stack_size) |
Allocates new overlay widget. | |
void | gp_widget_overlay_hide (gp_widget *self, unsigned int stack_pos) |
Hides a widget in overlay stack. | |
void | gp_widget_overlay_show (gp_widget *self, unsigned int stack_pos) |
Shows a widget in overlay stack. | |
unsigned int | gp_widget_overlay_stack_size (gp_widget *self) |
Returns the widget overlay stack size. | |
int | gp_widget_overlay_stack_pos_by_child (gp_widget *self, gp_widget *child, unsigned int *stack_pos) |
Returns widget overlay stack position by child widget pointer. | |
gp_widget * | gp_widget_overlay_put (gp_widget *self, unsigned int stack_pos, gp_widget *child) |
Puts a widget on stack_pos into an overlay. | |
An overlay widget.
Overlay widget is a widget that allows widgets to be stack on the top of each other. The main use for this widget are all kinds of floating menus/dialogs etc.
Definition in file gp_widget_overlay.h.
void gp_widget_overlay_hide | ( | gp_widget * | self, |
unsigned int | stack_pos | ||
) |
Hides a widget in overlay stack.
self | An overlay widget. |
stack_pos | Position of a widget to hide. |
gp_widget * gp_widget_overlay_new | ( | unsigned int | stack_size | ) |
Allocates new overlay widget.
stack_size | Initial size for the overlay stack size. |
Puts a widget on stack_pos into an overlay.
self | An overlay widget. |
stack_pos | Position of the stack to add to. |
child | A widget to be put into the stack. |
void gp_widget_overlay_show | ( | gp_widget * | self, |
unsigned int | stack_pos | ||
) |
Shows a widget in overlay stack.
self | An overlay widget. |
stack_pos | Position of a widget to hide. |
int gp_widget_overlay_stack_pos_by_child | ( | gp_widget * | self, |
gp_widget * | child, | ||
unsigned int * | stack_pos | ||
) |
Returns widget overlay stack position by child widget pointer.
self | An overlay widget. |
child | An overlay widget child widget. |
stack_pos | A variable to store the stack position to. |
unsigned int gp_widget_overlay_stack_size | ( | gp_widget * | self | ) |
Returns the widget overlay stack size.
self | An overlay widget. |
return | Stack size. |