Besides EZ_ConfigureWidget
, there are a few user convenience
routines that can be used to set specific attributes of a widget.
void EZ_SetWidgetPosition(EZ_Widget *widget, int x, int y)
This function sets the location of a widget. For most applications, one should leave the location of EZ widgets to the geometry manager.
void EZ_SetWidgetWidth(EZ_Widget *widget, int width)
This function sets the width of a widget.
void EZ_SetWidgetHeight(EZ_Widget *widget, int height)
This function sets the height of a widget.
Although setting the location and the dimension of a widget
is seldom necessary. There are situations where using these
attributes can be very handy, as demonstrated in the following
example.