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

Function GUI_Mouse_Hide_InWidget

src/gui/gui.c:4066–4077  ·  view source on GitHub ↗

* Hide the mouse when it is inside the specified widget. Works with * #GUI_Mouse_Show_InWidget(), which only calls #GUI_Mouse_Show() when * mouse was really hidden. * @param widgetIndex The index of the widget to check on. */

Source from the content-addressed store, hash-verified

4064 * @param widgetIndex The index of the widget to check on.
4065 */
4066void GUI_Mouse_Hide_InWidget(uint16 widgetIndex)
4067{
4068 uint16 left, top;
4069 uint16 width, height;
4070
4071 left = g_widgetProperties[widgetIndex].xBase << 3;
4072 top = g_widgetProperties[widgetIndex].yBase;
4073 width = g_widgetProperties[widgetIndex].width << 3;
4074 height = g_widgetProperties[widgetIndex].height;
4075
4076 GUI_Mouse_Hide_InRegion(left, top, left + width - 1, top + height - 1);
4077}
4078
4079/**
4080 * Draws a chess-pattern filled rectangle.

Callers 8

GUI_DisplayTextFunction · 0.85
GUI_DrawCreditsFunction · 0.85
GUI_DrawScreenFunction · 0.85
GUI_Widget_Viewport_DrawFunction · 0.85
GUI_Mentat_LoopFunction · 0.85
GUI_Security_ShowFunction · 0.85

Calls 1

GUI_Mouse_Hide_InRegionFunction · 0.85

Tested by

no test coverage detected