MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Widget_SetAndPaintCurrentWidget

Function Widget_SetAndPaintCurrentWidget

src/gui/widget.c:973–980  ·  view source on GitHub ↗

* Select a widget as current widget and draw its exterior. * @param index %Widget number to select. * @return Index of the previous selected widget. */

Source from the content-addressed store, hash-verified

971 * @return Index of the previous selected widget.
972 */
973uint16 Widget_SetAndPaintCurrentWidget(uint16 index)
974{
975 index = Widget_SetCurrentWidget(index);
976
977 Widget_PaintCurrentWidget();
978
979 return index;
980}
981
982/**
983 * Draw the exterior of the currently selected widget.

Callers 4

GUI_HallOfFame_ShowFunction · 0.85
GUI_Mentat_DrawFunction · 0.85
GUI_Mentat_ShowFunction · 0.85
GUI_Mentat_DisplayFunction · 0.85

Calls 2

Widget_SetCurrentWidgetFunction · 0.85

Tested by

no test coverage detected