GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
Functions to disable and enable widgets. More...
#include <widgets/gp_widget_types.h>
Go to the source code of this file.
Functions | |
void | gp_widget_disable (gp_widget *self) |
Disables widget and all its subwidgets. | |
void | gp_widget_enable (gp_widget *self) |
Enables widget and all its subwidgets. | |
void | gp_widget_disabled_set (gp_widget *self, bool disabled) |
Sets disabled/enabled widget state. | |
bool | gp_widget_disabled_get (gp_widget *self) |
Returns true if widget is disabled. | |
Functions to disable and enable widgets.
Disabled widgets are widgets that does not react to user input and are "grayed out" in the GUI. Once widget is disabled all its subwidgets are disabled as well.
Definition in file gp_widget_disable.h.
void gp_widget_disable | ( | gp_widget * | self | ) |
Disables widget and all its subwidgets.
A disabled widget does not process any input events and is "grayed out".
self | A widget to disable. |
bool gp_widget_disabled_get | ( | gp_widget * | self | ) |
Returns true if widget is disabled.
Note that this function returns true only if particular widget is disabled explicitly. It will return false for child widgets that are disabled because of parent widgets have been disabled.
self | A widget. |
void gp_widget_disabled_set | ( | gp_widget * | self, |
bool | disabled | ||
) |
Sets disabled/enabled widget state.
A disabled widget does not process any input events and is "grayed out".
self | A widget. |
disabled | True to disable widget false to enable it. |
void gp_widget_enable | ( | gp_widget * | self | ) |
Enables widget and all its subwidgets.
Enables a widget that has been disabled previously.
self | A widget to enable. |